chchen commited on
Commit
918c244
1 Parent(s): 37d7ee5

End of training

Browse files
README.md CHANGED
@@ -3,9 +3,10 @@ base_model: meta-llama/Llama-3.1-8B-Instruct
3
  library_name: peft
4
  license: llama3.1
5
  tags:
 
 
6
  - trl
7
  - dpo
8
- - llama-factory
9
  - generated_from_trainer
10
  model-index:
11
  - name: Llama-3.1-8B-Instruct-SAA
@@ -17,7 +18,19 @@ should probably proofread and complete it, then remove this comment. -->
17
 
18
  # Llama-3.1-8B-Instruct-SAA
19
 
20
- This model is a fine-tuned version of [meta-llama/Llama-3.1-8B-Instruct](https://huggingface.co/meta-llama/Llama-3.1-8B-Instruct) on an unknown dataset.
 
 
 
 
 
 
 
 
 
 
 
 
21
 
22
  ## Model description
23
 
 
3
  library_name: peft
4
  license: llama3.1
5
  tags:
6
+ - llama-factory
7
+ - lora
8
  - trl
9
  - dpo
 
10
  - generated_from_trainer
11
  model-index:
12
  - name: Llama-3.1-8B-Instruct-SAA
 
18
 
19
  # Llama-3.1-8B-Instruct-SAA
20
 
21
+ This model is a fine-tuned version of [meta-llama/Llama-3.1-8B-Instruct](https://huggingface.co/meta-llama/Llama-3.1-8B-Instruct) on the bct_non_cot_dpo_1000 dataset.
22
+ It achieves the following results on the evaluation set:
23
+ - Loss: 0.2005
24
+ - Rewards/chosen: -0.0159
25
+ - Rewards/rejected: -0.0611
26
+ - Rewards/accuracies: 0.8300
27
+ - Rewards/margins: 0.0452
28
+ - Logps/rejected: -0.6110
29
+ - Logps/chosen: -0.1590
30
+ - Logits/rejected: -0.4566
31
+ - Logits/chosen: -0.3865
32
+ - Sft Loss: 0.0178
33
+ - Odds Ratio Loss: 1.8274
34
 
35
  ## Model description
36
 
all_results.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.986666666666667,
3
+ "eval_logits/chosen": -0.3865179717540741,
4
+ "eval_logits/rejected": -0.45662835240364075,
5
+ "eval_logps/chosen": -0.15898314118385315,
6
+ "eval_logps/rejected": -0.6109744310379028,
7
+ "eval_loss": 0.20052169263362885,
8
+ "eval_odds_ratio_loss": 1.8274307250976562,
9
+ "eval_rewards/accuracies": 0.8299999833106995,
10
+ "eval_rewards/chosen": -0.015898313373327255,
11
+ "eval_rewards/margins": 0.045199137181043625,
12
+ "eval_rewards/rejected": -0.06109744682908058,
13
+ "eval_runtime": 3.8864,
14
+ "eval_samples_per_second": 25.73,
15
+ "eval_sft_loss": 0.01777861826121807,
16
+ "eval_steps_per_second": 12.865,
17
+ "total_flos": 2.94774302048256e+16,
18
+ "train_loss": 0.703327341448693,
19
+ "train_runtime": 380.828,
20
+ "train_samples_per_second": 7.09,
21
+ "train_steps_per_second": 0.441
22
+ }
eval_results.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.986666666666667,
3
+ "eval_logits/chosen": -0.3865179717540741,
4
+ "eval_logits/rejected": -0.45662835240364075,
5
+ "eval_logps/chosen": -0.15898314118385315,
6
+ "eval_logps/rejected": -0.6109744310379028,
7
+ "eval_loss": 0.20052169263362885,
8
+ "eval_odds_ratio_loss": 1.8274307250976562,
9
+ "eval_rewards/accuracies": 0.8299999833106995,
10
+ "eval_rewards/chosen": -0.015898313373327255,
11
+ "eval_rewards/margins": 0.045199137181043625,
12
+ "eval_rewards/rejected": -0.06109744682908058,
13
+ "eval_runtime": 3.8864,
14
+ "eval_samples_per_second": 25.73,
15
+ "eval_sft_loss": 0.01777861826121807,
16
+ "eval_steps_per_second": 12.865
17
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.986666666666667,
3
+ "total_flos": 2.94774302048256e+16,
4
+ "train_loss": 0.703327341448693,
5
+ "train_runtime": 380.828,
6
+ "train_samples_per_second": 7.09,
7
+ "train_steps_per_second": 0.441
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,314 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 2.986666666666667,
5
+ "eval_steps": 500,
6
+ "global_step": 168,
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.17777777777777778,
13
+ "grad_norm": 7.277172565460205,
14
+ "learning_rate": 2.9411764705882355e-06,
15
+ "logits/chosen": -0.4413936734199524,
16
+ "logits/rejected": -0.5268994569778442,
17
+ "logps/chosen": -1.6909767389297485,
18
+ "logps/rejected": -2.157106876373291,
19
+ "loss": 1.742,
20
+ "odds_ratio_loss": 15.103334426879883,
21
+ "rewards/accuracies": 0.78125,
22
+ "rewards/chosen": -0.1690976917743683,
23
+ "rewards/margins": 0.046613018959760666,
24
+ "rewards/rejected": -0.21571068465709686,
25
+ "sft_loss": 0.2316340208053589,
26
+ "step": 10
27
+ },
28
+ {
29
+ "epoch": 0.35555555555555557,
30
+ "grad_norm": 6.993782043457031,
31
+ "learning_rate": 4.995131923687488e-06,
32
+ "logits/chosen": -0.4119906425476074,
33
+ "logits/rejected": -0.48687878251075745,
34
+ "logps/chosen": -1.74609375,
35
+ "logps/rejected": -2.23624849319458,
36
+ "loss": 1.7977,
37
+ "odds_ratio_loss": 15.667881965637207,
38
+ "rewards/accuracies": 0.8125,
39
+ "rewards/chosen": -0.17460939288139343,
40
+ "rewards/margins": 0.04901544004678726,
41
+ "rewards/rejected": -0.22362485527992249,
42
+ "sft_loss": 0.23094086349010468,
43
+ "step": 20
44
+ },
45
+ {
46
+ "epoch": 0.5333333333333333,
47
+ "grad_norm": 7.126066207885742,
48
+ "learning_rate": 4.90911473983908e-06,
49
+ "logits/chosen": -0.3993254601955414,
50
+ "logits/rejected": -0.47226476669311523,
51
+ "logps/chosen": -1.6316206455230713,
52
+ "logps/rejected": -2.0731987953186035,
53
+ "loss": 1.685,
54
+ "odds_ratio_loss": 14.636944770812988,
55
+ "rewards/accuracies": 0.8062499761581421,
56
+ "rewards/chosen": -0.16316203773021698,
57
+ "rewards/margins": 0.044157832860946655,
58
+ "rewards/rejected": -0.20731988549232483,
59
+ "sft_loss": 0.22126968204975128,
60
+ "step": 30
61
+ },
62
+ {
63
+ "epoch": 0.7111111111111111,
64
+ "grad_norm": 6.876996040344238,
65
+ "learning_rate": 4.71919261421297e-06,
66
+ "logits/chosen": -0.4370671212673187,
67
+ "logits/rejected": -0.5137215852737427,
68
+ "logps/chosen": -1.3095628023147583,
69
+ "logps/rejected": -1.8373353481292725,
70
+ "loss": 1.3576,
71
+ "odds_ratio_loss": 11.971807479858398,
72
+ "rewards/accuracies": 0.831250011920929,
73
+ "rewards/chosen": -0.13095629215240479,
74
+ "rewards/margins": 0.052777260541915894,
75
+ "rewards/rejected": -0.18373355269432068,
76
+ "sft_loss": 0.16043850779533386,
77
+ "step": 40
78
+ },
79
+ {
80
+ "epoch": 0.8888888888888888,
81
+ "grad_norm": 3.4186394214630127,
82
+ "learning_rate": 4.43355687413747e-06,
83
+ "logits/chosen": -0.4473581910133362,
84
+ "logits/rejected": -0.5121863484382629,
85
+ "logps/chosen": -1.047701120376587,
86
+ "logps/rejected": -1.479405164718628,
87
+ "loss": 1.0996,
88
+ "odds_ratio_loss": 9.729310989379883,
89
+ "rewards/accuracies": 0.7562500238418579,
90
+ "rewards/chosen": -0.10477012395858765,
91
+ "rewards/margins": 0.04317039996385574,
92
+ "rewards/rejected": -0.1479405164718628,
93
+ "sft_loss": 0.12663736939430237,
94
+ "step": 50
95
+ },
96
+ {
97
+ "epoch": 1.0666666666666667,
98
+ "grad_norm": 4.834543704986572,
99
+ "learning_rate": 4.064526968101844e-06,
100
+ "logits/chosen": -0.39888542890548706,
101
+ "logits/rejected": -0.4785118103027344,
102
+ "logps/chosen": -0.7870318293571472,
103
+ "logps/rejected": -1.2147241830825806,
104
+ "loss": 0.8362,
105
+ "odds_ratio_loss": 7.4531731605529785,
106
+ "rewards/accuracies": 0.768750011920929,
107
+ "rewards/chosen": -0.07870318740606308,
108
+ "rewards/margins": 0.04276924580335617,
109
+ "rewards/rejected": -0.12147243320941925,
110
+ "sft_loss": 0.09090302884578705,
111
+ "step": 60
112
+ },
113
+ {
114
+ "epoch": 1.2444444444444445,
115
+ "grad_norm": 2.8773512840270996,
116
+ "learning_rate": 3.6280191288478437e-06,
117
+ "logits/chosen": -0.4217619299888611,
118
+ "logits/rejected": -0.49851852655410767,
119
+ "logps/chosen": -0.5581613779067993,
120
+ "logps/rejected": -1.076547384262085,
121
+ "loss": 0.5998,
122
+ "odds_ratio_loss": 5.396755695343018,
123
+ "rewards/accuracies": 0.8374999761581421,
124
+ "rewards/chosen": -0.05581614375114441,
125
+ "rewards/margins": 0.051838599145412445,
126
+ "rewards/rejected": -0.10765473544597626,
127
+ "sft_loss": 0.06012673303484917,
128
+ "step": 70
129
+ },
130
+ {
131
+ "epoch": 1.4222222222222223,
132
+ "grad_norm": 2.8275744915008545,
133
+ "learning_rate": 3.142859907420615e-06,
134
+ "logits/chosen": -0.39267396926879883,
135
+ "logits/rejected": -0.46761494874954224,
136
+ "logps/chosen": -0.43946489691734314,
137
+ "logps/rejected": -0.9307826161384583,
138
+ "loss": 0.4834,
139
+ "odds_ratio_loss": 4.3501482009887695,
140
+ "rewards/accuracies": 0.831250011920929,
141
+ "rewards/chosen": -0.04394649341702461,
142
+ "rewards/margins": 0.049131762236356735,
143
+ "rewards/rejected": -0.09307824075222015,
144
+ "sft_loss": 0.04834695905447006,
145
+ "step": 80
146
+ },
147
+ {
148
+ "epoch": 1.6,
149
+ "grad_norm": 2.467008590698242,
150
+ "learning_rate": 2.629974185404951e-06,
151
+ "logits/chosen": -0.3878730535507202,
152
+ "logits/rejected": -0.4690762460231781,
153
+ "logps/chosen": -0.3482344150543213,
154
+ "logps/rejected": -0.9180346727371216,
155
+ "loss": 0.3918,
156
+ "odds_ratio_loss": 3.5334713459014893,
157
+ "rewards/accuracies": 0.800000011920929,
158
+ "rewards/chosen": -0.03482344001531601,
159
+ "rewards/margins": 0.05698002502322197,
160
+ "rewards/rejected": -0.09180346131324768,
161
+ "sft_loss": 0.03849966078996658,
162
+ "step": 90
163
+ },
164
+ {
165
+ "epoch": 1.7777777777777777,
166
+ "grad_norm": 2.4158785343170166,
167
+ "learning_rate": 2.1114826863194882e-06,
168
+ "logits/chosen": -0.3763123154640198,
169
+ "logits/rejected": -0.47139158844947815,
170
+ "logps/chosen": -0.27210018038749695,
171
+ "logps/rejected": -0.8651291728019714,
172
+ "loss": 0.3089,
173
+ "odds_ratio_loss": 2.8031647205352783,
174
+ "rewards/accuracies": 0.875,
175
+ "rewards/chosen": -0.027210021391510963,
176
+ "rewards/margins": 0.05930290371179581,
177
+ "rewards/rejected": -0.08651291579008102,
178
+ "sft_loss": 0.02853994630277157,
179
+ "step": 100
180
+ },
181
+ {
182
+ "epoch": 1.9555555555555557,
183
+ "grad_norm": 2.5559449195861816,
184
+ "learning_rate": 1.6097479104361328e-06,
185
+ "logits/chosen": -0.4010067880153656,
186
+ "logits/rejected": -0.4844478666782379,
187
+ "logps/chosen": -0.2540341019630432,
188
+ "logps/rejected": -0.6811193823814392,
189
+ "loss": 0.3004,
190
+ "odds_ratio_loss": 2.749537706375122,
191
+ "rewards/accuracies": 0.7749999761581421,
192
+ "rewards/chosen": -0.02540341392159462,
193
+ "rewards/margins": 0.04270853474736214,
194
+ "rewards/rejected": -0.06811194121837616,
195
+ "sft_loss": 0.025406217202544212,
196
+ "step": 110
197
+ },
198
+ {
199
+ "epoch": 2.1333333333333333,
200
+ "grad_norm": 2.1673660278320312,
201
+ "learning_rate": 1.1464096417858821e-06,
202
+ "logits/chosen": -0.3880887031555176,
203
+ "logits/rejected": -0.47383826971054077,
204
+ "logps/chosen": -0.17626990377902985,
205
+ "logps/rejected": -0.8207994699478149,
206
+ "loss": 0.2064,
207
+ "odds_ratio_loss": 1.8402626514434814,
208
+ "rewards/accuracies": 0.8500000238418579,
209
+ "rewards/chosen": -0.017626991495490074,
210
+ "rewards/margins": 0.06445295363664627,
211
+ "rewards/rejected": -0.0820799320936203,
212
+ "sft_loss": 0.022340241819620132,
213
+ "step": 120
214
+ },
215
+ {
216
+ "epoch": 2.311111111111111,
217
+ "grad_norm": 1.6694434881210327,
218
+ "learning_rate": 7.414516258630245e-07,
219
+ "logits/chosen": -0.4004104733467102,
220
+ "logits/rejected": -0.48559218645095825,
221
+ "logps/chosen": -0.18084414303302765,
222
+ "logps/rejected": -0.7277659177780151,
223
+ "loss": 0.2208,
224
+ "odds_ratio_loss": 1.993011474609375,
225
+ "rewards/accuracies": 0.8125,
226
+ "rewards/chosen": -0.018084412440657616,
227
+ "rewards/margins": 0.054692186415195465,
228
+ "rewards/rejected": -0.07277660071849823,
229
+ "sft_loss": 0.021496199071407318,
230
+ "step": 130
231
+ },
232
+ {
233
+ "epoch": 2.488888888888889,
234
+ "grad_norm": 2.6840009689331055,
235
+ "learning_rate": 4.123396721497977e-07,
236
+ "logits/chosen": -0.38309675455093384,
237
+ "logits/rejected": -0.4632611870765686,
238
+ "logps/chosen": -0.17778636515140533,
239
+ "logps/rejected": -0.7036616802215576,
240
+ "loss": 0.2182,
241
+ "odds_ratio_loss": 1.9652601480484009,
242
+ "rewards/accuracies": 0.831250011920929,
243
+ "rewards/chosen": -0.017778638750314713,
244
+ "rewards/margins": 0.052587538957595825,
245
+ "rewards/rejected": -0.07036618143320084,
246
+ "sft_loss": 0.021626269444823265,
247
+ "step": 140
248
+ },
249
+ {
250
+ "epoch": 2.6666666666666665,
251
+ "grad_norm": 2.5022149085998535,
252
+ "learning_rate": 1.7326835503629542e-07,
253
+ "logits/chosen": -0.41912952065467834,
254
+ "logits/rejected": -0.48157674074172974,
255
+ "logps/chosen": -0.1846485584974289,
256
+ "logps/rejected": -0.6781209707260132,
257
+ "loss": 0.2302,
258
+ "odds_ratio_loss": 2.0842204093933105,
259
+ "rewards/accuracies": 0.7875000238418579,
260
+ "rewards/chosen": -0.01846485398709774,
261
+ "rewards/margins": 0.04934724420309067,
262
+ "rewards/rejected": -0.06781210005283356,
263
+ "sft_loss": 0.02174842543900013,
264
+ "step": 150
265
+ },
266
+ {
267
+ "epoch": 2.8444444444444446,
268
+ "grad_norm": 2.2835490703582764,
269
+ "learning_rate": 3.4548802869627806e-08,
270
+ "logits/chosen": -0.3882659673690796,
271
+ "logits/rejected": -0.46682611107826233,
272
+ "logps/chosen": -0.15616735816001892,
273
+ "logps/rejected": -0.6447629332542419,
274
+ "loss": 0.193,
275
+ "odds_ratio_loss": 1.7490888833999634,
276
+ "rewards/accuracies": 0.8374999761581421,
277
+ "rewards/chosen": -0.015616737306118011,
278
+ "rewards/margins": 0.04885955527424812,
279
+ "rewards/rejected": -0.06447629630565643,
280
+ "sft_loss": 0.018099095672369003,
281
+ "step": 160
282
+ },
283
+ {
284
+ "epoch": 2.986666666666667,
285
+ "step": 168,
286
+ "total_flos": 2.94774302048256e+16,
287
+ "train_loss": 0.703327341448693,
288
+ "train_runtime": 380.828,
289
+ "train_samples_per_second": 7.09,
290
+ "train_steps_per_second": 0.441
291
+ }
292
+ ],
293
+ "logging_steps": 10,
294
+ "max_steps": 168,
295
+ "num_input_tokens_seen": 0,
296
+ "num_train_epochs": 3,
297
+ "save_steps": 500,
298
+ "stateful_callbacks": {
299
+ "TrainerControl": {
300
+ "args": {
301
+ "should_epoch_stop": false,
302
+ "should_evaluate": false,
303
+ "should_log": false,
304
+ "should_save": true,
305
+ "should_training_stop": true
306
+ },
307
+ "attributes": {}
308
+ }
309
+ },
310
+ "total_flos": 2.94774302048256e+16,
311
+ "train_batch_size": 2,
312
+ "trial_name": null,
313
+ "trial_params": null
314
+ }
training_loss.png ADDED
training_rewards_accuracies.png ADDED