Qin Liu commited on
Commit
3006891
1 Parent(s): 1306b09

Model save

Browse files
Files changed (4) hide show
  1. README.md +62 -0
  2. all_results.json +9 -0
  3. train_results.json +9 -0
  4. trainer_state.json +237 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: llama3
3
+ library_name: peft
4
+ tags:
5
+ - trl
6
+ - dpo
7
+ - generated_from_trainer
8
+ base_model: Jackie999/llama3-sudo-5epochs-tofu_full_sft
9
+ model-index:
10
+ - name: llama3-sudo-dpo-5epochs-forget10mix400-1sft-2lora
11
+ results: []
12
+ ---
13
+
14
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
+ should probably proofread and complete it, then remove this comment. -->
16
+
17
+ # llama3-sudo-dpo-5epochs-forget10mix400-1sft-2lora
18
+
19
+ This model is a fine-tuned version of [Jackie999/llama3-sudo-5epochs-tofu_full_sft](https://huggingface.co/Jackie999/llama3-sudo-5epochs-tofu_full_sft) on an unknown dataset.
20
+
21
+ ## Model description
22
+
23
+ More information needed
24
+
25
+ ## Intended uses & limitations
26
+
27
+ More information needed
28
+
29
+ ## Training and evaluation data
30
+
31
+ More information needed
32
+
33
+ ## Training procedure
34
+
35
+ ### Training hyperparameters
36
+
37
+ The following hyperparameters were used during training:
38
+ - learning_rate: 5e-06
39
+ - train_batch_size: 4
40
+ - eval_batch_size: 8
41
+ - seed: 42
42
+ - distributed_type: multi-GPU
43
+ - num_devices: 4
44
+ - gradient_accumulation_steps: 4
45
+ - total_train_batch_size: 64
46
+ - total_eval_batch_size: 32
47
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
48
+ - lr_scheduler_type: cosine
49
+ - lr_scheduler_warmup_ratio: 0.1
50
+ - num_epochs: 5
51
+
52
+ ### Training results
53
+
54
+
55
+
56
+ ### Framework versions
57
+
58
+ - PEFT 0.12.0
59
+ - Transformers 4.44.0
60
+ - Pytorch 2.1.2
61
+ - Datasets 3.0.0
62
+ - Tokenizers 0.19.1
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 5.0,
3
+ "total_flos": 0.0,
4
+ "train_loss": 0.46972908115386963,
5
+ "train_runtime": 2062.102,
6
+ "train_samples": 1600,
7
+ "train_samples_per_second": 3.88,
8
+ "train_steps_per_second": 0.061
9
+ }
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 5.0,
3
+ "total_flos": 0.0,
4
+ "train_loss": 0.46972908115386963,
5
+ "train_runtime": 2062.102,
6
+ "train_samples": 1600,
7
+ "train_samples_per_second": 3.88,
8
+ "train_steps_per_second": 0.061
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,237 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 5.0,
5
+ "eval_steps": 1000,
6
+ "global_step": 125,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 0.04,
13
+ "grad_norm": 0.4128397206827493,
14
+ "learning_rate": 3.846153846153847e-07,
15
+ "logits/chosen": -1.73323655128479,
16
+ "logits/rejected": -1.963712453842163,
17
+ "logps/chosen": -64.71795654296875,
18
+ "logps/rejected": -92.56527709960938,
19
+ "loss": 0.6931,
20
+ "rewards/accuracies": 0.0,
21
+ "rewards/chosen": 0.0,
22
+ "rewards/margins": 0.0,
23
+ "rewards/rejected": 0.0,
24
+ "step": 1
25
+ },
26
+ {
27
+ "epoch": 0.4,
28
+ "grad_norm": 0.35034784903451766,
29
+ "learning_rate": 3.846153846153847e-06,
30
+ "logits/chosen": -1.7505415678024292,
31
+ "logits/rejected": -1.915618658065796,
32
+ "logps/chosen": -63.550048828125,
33
+ "logps/rejected": -88.24057006835938,
34
+ "loss": 0.6913,
35
+ "rewards/accuracies": 0.5555555820465088,
36
+ "rewards/chosen": -0.0015819871332496405,
37
+ "rewards/margins": 0.0029085720889270306,
38
+ "rewards/rejected": -0.004490559455007315,
39
+ "step": 10
40
+ },
41
+ {
42
+ "epoch": 0.8,
43
+ "grad_norm": 0.3741999171763754,
44
+ "learning_rate": 4.9519632010080765e-06,
45
+ "logits/chosen": -1.7421376705169678,
46
+ "logits/rejected": -1.9737510681152344,
47
+ "logps/chosen": -64.17735290527344,
48
+ "logps/rejected": -103.7110366821289,
49
+ "loss": 0.6532,
50
+ "rewards/accuracies": 0.768750011920929,
51
+ "rewards/chosen": -0.03122868202626705,
52
+ "rewards/margins": 0.09635920822620392,
53
+ "rewards/rejected": -0.12758789956569672,
54
+ "step": 20
55
+ },
56
+ {
57
+ "epoch": 1.2,
58
+ "grad_norm": 0.21399782118300334,
59
+ "learning_rate": 4.721114089947181e-06,
60
+ "logits/chosen": -1.7182533740997314,
61
+ "logits/rejected": -1.9536464214324951,
62
+ "logps/chosen": -72.61327362060547,
63
+ "logps/rejected": -138.14871215820312,
64
+ "loss": 0.5782,
65
+ "rewards/accuracies": 0.7562500238418579,
66
+ "rewards/chosen": -0.10964199155569077,
67
+ "rewards/margins": 0.36830809712409973,
68
+ "rewards/rejected": -0.4779500961303711,
69
+ "step": 30
70
+ },
71
+ {
72
+ "epoch": 1.6,
73
+ "grad_norm": 0.20675592706765678,
74
+ "learning_rate": 4.316650805085068e-06,
75
+ "logits/chosen": -1.6047031879425049,
76
+ "logits/rejected": -1.9040508270263672,
77
+ "logps/chosen": -70.1319580078125,
78
+ "logps/rejected": -172.32015991210938,
79
+ "loss": 0.5474,
80
+ "rewards/accuracies": 0.8125,
81
+ "rewards/chosen": -0.12685254216194153,
82
+ "rewards/margins": 0.6549729108810425,
83
+ "rewards/rejected": -0.7818254828453064,
84
+ "step": 40
85
+ },
86
+ {
87
+ "epoch": 2.0,
88
+ "grad_norm": 0.32081236636733307,
89
+ "learning_rate": 3.770188363116324e-06,
90
+ "logits/chosen": -1.6701993942260742,
91
+ "logits/rejected": -1.8626493215560913,
92
+ "logps/chosen": -84.17461395263672,
93
+ "logps/rejected": -167.61410522460938,
94
+ "loss": 0.5244,
95
+ "rewards/accuracies": 0.71875,
96
+ "rewards/chosen": -0.21969938278198242,
97
+ "rewards/margins": 0.575901985168457,
98
+ "rewards/rejected": -0.7956013679504395,
99
+ "step": 50
100
+ },
101
+ {
102
+ "epoch": 2.4,
103
+ "grad_norm": 0.38597827976301535,
104
+ "learning_rate": 3.1244411954180677e-06,
105
+ "logits/chosen": -1.5896217823028564,
106
+ "logits/rejected": -1.8747373819351196,
107
+ "logps/chosen": -67.0400161743164,
108
+ "logps/rejected": -191.59365844726562,
109
+ "loss": 0.4726,
110
+ "rewards/accuracies": 0.8187500238418579,
111
+ "rewards/chosen": -0.08698524534702301,
112
+ "rewards/margins": 0.882093071937561,
113
+ "rewards/rejected": -0.9690783619880676,
114
+ "step": 60
115
+ },
116
+ {
117
+ "epoch": 2.8,
118
+ "grad_norm": 0.4702645263366345,
119
+ "learning_rate": 2.429884359310328e-06,
120
+ "logits/chosen": -1.572919249534607,
121
+ "logits/rejected": -1.7691805362701416,
122
+ "logps/chosen": -75.44322204589844,
123
+ "logps/rejected": -183.8511962890625,
124
+ "loss": 0.4811,
125
+ "rewards/accuracies": 0.7250000238418579,
126
+ "rewards/chosen": -0.12143620103597641,
127
+ "rewards/margins": 0.8210474252700806,
128
+ "rewards/rejected": -0.9424835443496704,
129
+ "step": 70
130
+ },
131
+ {
132
+ "epoch": 3.2,
133
+ "grad_norm": 0.35995082384074073,
134
+ "learning_rate": 1.7408081372259633e-06,
135
+ "logits/chosen": -1.540151834487915,
136
+ "logits/rejected": -1.7591164112091064,
137
+ "logps/chosen": -64.67158508300781,
138
+ "logps/rejected": -208.8355712890625,
139
+ "loss": 0.3772,
140
+ "rewards/accuracies": 0.762499988079071,
141
+ "rewards/chosen": -0.042745210230350494,
142
+ "rewards/margins": 1.1398416757583618,
143
+ "rewards/rejected": -1.182586908340454,
144
+ "step": 80
145
+ },
146
+ {
147
+ "epoch": 3.6,
148
+ "grad_norm": 0.3349159272932947,
149
+ "learning_rate": 1.1110744174509952e-06,
150
+ "logits/chosen": -1.5150226354599,
151
+ "logits/rejected": -1.7239547967910767,
152
+ "logps/chosen": -65.3616714477539,
153
+ "logps/rejected": -226.32937622070312,
154
+ "loss": 0.3725,
155
+ "rewards/accuracies": 0.731249988079071,
156
+ "rewards/chosen": -0.033232785761356354,
157
+ "rewards/margins": 1.3398171663284302,
158
+ "rewards/rejected": -1.3730499744415283,
159
+ "step": 90
160
+ },
161
+ {
162
+ "epoch": 4.0,
163
+ "grad_norm": 0.3777138278726997,
164
+ "learning_rate": 5.899065604459814e-07,
165
+ "logits/chosen": -1.5114853382110596,
166
+ "logits/rejected": -1.7169097661972046,
167
+ "logps/chosen": -61.861358642578125,
168
+ "logps/rejected": -252.6329345703125,
169
+ "loss": 0.3478,
170
+ "rewards/accuracies": 0.7562500238418579,
171
+ "rewards/chosen": 0.0013225942384451628,
172
+ "rewards/margins": 1.6115810871124268,
173
+ "rewards/rejected": -1.6102584600448608,
174
+ "step": 100
175
+ },
176
+ {
177
+ "epoch": 4.4,
178
+ "grad_norm": 0.31092930022093734,
179
+ "learning_rate": 2.1804183734670277e-07,
180
+ "logits/chosen": -1.5211278200149536,
181
+ "logits/rejected": -1.7239795923233032,
182
+ "logps/chosen": -63.83014678955078,
183
+ "logps/rejected": -241.92819213867188,
184
+ "loss": 0.3522,
185
+ "rewards/accuracies": 0.71875,
186
+ "rewards/chosen": -0.014286426827311516,
187
+ "rewards/margins": 1.5209068059921265,
188
+ "rewards/rejected": -1.5351933240890503,
189
+ "step": 110
190
+ },
191
+ {
192
+ "epoch": 4.8,
193
+ "grad_norm": 0.336920496075524,
194
+ "learning_rate": 2.454718665888589e-08,
195
+ "logits/chosen": -1.4646048545837402,
196
+ "logits/rejected": -1.6882946491241455,
197
+ "logps/chosen": -61.223609924316406,
198
+ "logps/rejected": -262.6458435058594,
199
+ "loss": 0.3387,
200
+ "rewards/accuracies": 0.7562500238418579,
201
+ "rewards/chosen": -0.0028733056969940662,
202
+ "rewards/margins": 1.7208553552627563,
203
+ "rewards/rejected": -1.7237287759780884,
204
+ "step": 120
205
+ },
206
+ {
207
+ "epoch": 5.0,
208
+ "step": 125,
209
+ "total_flos": 0.0,
210
+ "train_loss": 0.46972908115386963,
211
+ "train_runtime": 2062.102,
212
+ "train_samples_per_second": 3.88,
213
+ "train_steps_per_second": 0.061
214
+ }
215
+ ],
216
+ "logging_steps": 10,
217
+ "max_steps": 125,
218
+ "num_input_tokens_seen": 0,
219
+ "num_train_epochs": 5,
220
+ "save_steps": 1000,
221
+ "stateful_callbacks": {
222
+ "TrainerControl": {
223
+ "args": {
224
+ "should_epoch_stop": false,
225
+ "should_evaluate": false,
226
+ "should_log": false,
227
+ "should_save": true,
228
+ "should_training_stop": true
229
+ },
230
+ "attributes": {}
231
+ }
232
+ },
233
+ "total_flos": 0.0,
234
+ "train_batch_size": 4,
235
+ "trial_name": null,
236
+ "trial_params": null
237
+ }