bigheiniuJ commited on
Commit
4e3da8c
·
verified ·
1 Parent(s): e5e4554

Model save

Browse files
README.md ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: alignment-handbook/zephyr-7b-sft-full
3
+ library_name: transformers
4
+ model_name: zephyr-7b-dpo-full-prompt-extend-chosen-noshort
5
+ tags:
6
+ - generated_from_trainer
7
+ - trl
8
+ - dpo
9
+ licence: license
10
+ ---
11
+
12
+ # Model Card for zephyr-7b-dpo-full-prompt-extend-chosen-noshort
13
+
14
+ This model is a fine-tuned version of [alignment-handbook/zephyr-7b-sft-full](https://huggingface.co/alignment-handbook/zephyr-7b-sft-full).
15
+ It has been trained using [TRL](https://github.com/huggingface/trl).
16
+
17
+ ## Quick start
18
+
19
+ ```python
20
+ from transformers import pipeline
21
+
22
+ question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
23
+ generator = pipeline("text-generation", model="bigheiniuJ/zephyr-7b-dpo-full-prompt-extend-chosen-noshort", device="cuda")
24
+ output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
25
+ print(output["generated_text"])
26
+ ```
27
+
28
+ ## Training procedure
29
+
30
+
31
+
32
+ This model was trained with DPO, a method introduced in [Direct Preference Optimization: Your Language Model is Secretly a Reward Model](https://huggingface.co/papers/2305.18290).
33
+
34
+ ### Framework versions
35
+
36
+ - TRL: 0.12.1
37
+ - Transformers: 4.46.3
38
+ - Pytorch: 2.5.1
39
+ - Datasets: 2.21.0
40
+ - Tokenizers: 0.20.3
41
+
42
+ ## Citations
43
+
44
+ Cite DPO as:
45
+
46
+ ```bibtex
47
+ @inproceedings{rafailov2023direct,
48
+ title = {{Direct Preference Optimization: Your Language Model is Secretly a Reward Model}},
49
+ author = {Rafael Rafailov and Archit Sharma and Eric Mitchell and Christopher D. Manning and Stefano Ermon and Chelsea Finn},
50
+ year = 2023,
51
+ booktitle = {Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 - 16, 2023},
52
+ url = {http://papers.nips.cc/paper_files/paper/2023/hash/a85b405ed65c6477a4fe8302b5e06ce7-Abstract-Conference.html},
53
+ editor = {Alice Oh and Tristan Naumann and Amir Globerson and Kate Saenko and Moritz Hardt and Sergey Levine},
54
+ }
55
+ ```
56
+
57
+ Cite TRL as:
58
+
59
+ ```bibtex
60
+ @misc{vonwerra2022trl,
61
+ title = {{TRL: Transformer Reinforcement Learning}},
62
+ author = {Leandro von Werra and Younes Belkada and Lewis Tunstall and Edward Beeching and Tristan Thrush and Nathan Lambert and Shengyi Huang and Kashif Rasul and Quentin Gallouédec},
63
+ year = 2020,
64
+ journal = {GitHub repository},
65
+ publisher = {GitHub},
66
+ howpublished = {\url{https://github.com/huggingface/trl}}
67
+ }
68
+ ```
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "total_flos": 0.0,
4
+ "train_loss": 0.24929137409481544,
5
+ "train_runtime": 6934.4318,
6
+ "train_samples": 61134,
7
+ "train_samples_per_second": 8.816,
8
+ "train_steps_per_second": 0.069
9
+ }
generation_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "eos_token_id": 2,
5
+ "transformers_version": "4.46.3"
6
+ }
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "total_flos": 0.0,
4
+ "train_loss": 0.24929137409481544,
5
+ "train_runtime": 6934.4318,
6
+ "train_samples": 61134,
7
+ "train_samples_per_second": 8.816,
8
+ "train_steps_per_second": 0.069
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,762 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 1.0,
5
+ "eval_steps": 500,
6
+ "global_step": 478,
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.0020920502092050207,
13
+ "grad_norm": 9.145658071278367,
14
+ "learning_rate": 1.0416666666666666e-08,
15
+ "logits/chosen": -3.359375,
16
+ "logits/rejected": -3.3125,
17
+ "logps/chosen": -296.0,
18
+ "logps/rejected": -360.0,
19
+ "loss": 0.6914,
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.02092050209205021,
28
+ "grad_norm": 8.225376360663054,
29
+ "learning_rate": 1.0416666666666667e-07,
30
+ "logits/chosen": -3.171875,
31
+ "logits/rejected": -3.1875,
32
+ "logps/chosen": -264.0,
33
+ "logps/rejected": -238.0,
34
+ "loss": 0.6921,
35
+ "rewards/accuracies": 0.2222222238779068,
36
+ "rewards/chosen": -0.00013828277587890625,
37
+ "rewards/margins": -0.00023555755615234375,
38
+ "rewards/rejected": 9.5367431640625e-05,
39
+ "step": 10
40
+ },
41
+ {
42
+ "epoch": 0.04184100418410042,
43
+ "grad_norm": 8.65932241439787,
44
+ "learning_rate": 2.0833333333333333e-07,
45
+ "logits/chosen": -3.21875,
46
+ "logits/rejected": -3.21875,
47
+ "logps/chosen": -284.0,
48
+ "logps/rejected": -286.0,
49
+ "loss": 0.6912,
50
+ "rewards/accuracies": 0.40625,
51
+ "rewards/chosen": -0.00144195556640625,
52
+ "rewards/margins": 0.002532958984375,
53
+ "rewards/rejected": -0.00396728515625,
54
+ "step": 20
55
+ },
56
+ {
57
+ "epoch": 0.06276150627615062,
58
+ "grad_norm": 9.261024423353298,
59
+ "learning_rate": 3.1249999999999997e-07,
60
+ "logits/chosen": -3.25,
61
+ "logits/rejected": -3.21875,
62
+ "logps/chosen": -304.0,
63
+ "logps/rejected": -300.0,
64
+ "loss": 0.6839,
65
+ "rewards/accuracies": 0.6000000238418579,
66
+ "rewards/chosen": -0.0142822265625,
67
+ "rewards/margins": 0.0164794921875,
68
+ "rewards/rejected": -0.03076171875,
69
+ "step": 30
70
+ },
71
+ {
72
+ "epoch": 0.08368200836820083,
73
+ "grad_norm": 9.083749762988429,
74
+ "learning_rate": 4.1666666666666667e-07,
75
+ "logits/chosen": -3.09375,
76
+ "logits/rejected": -3.1875,
77
+ "logps/chosen": -272.0,
78
+ "logps/rejected": -268.0,
79
+ "loss": 0.6651,
80
+ "rewards/accuracies": 0.824999988079071,
81
+ "rewards/chosen": -0.062255859375,
82
+ "rewards/margins": 0.06689453125,
83
+ "rewards/rejected": -0.12890625,
84
+ "step": 40
85
+ },
86
+ {
87
+ "epoch": 0.10460251046025104,
88
+ "grad_norm": 10.315530273743185,
89
+ "learning_rate": 4.999733114418725e-07,
90
+ "logits/chosen": -3.109375,
91
+ "logits/rejected": -3.046875,
92
+ "logps/chosen": -292.0,
93
+ "logps/rejected": -320.0,
94
+ "loss": 0.623,
95
+ "rewards/accuracies": 0.7749999761581421,
96
+ "rewards/chosen": -0.0703125,
97
+ "rewards/margins": 0.1484375,
98
+ "rewards/rejected": -0.21875,
99
+ "step": 50
100
+ },
101
+ {
102
+ "epoch": 0.12552301255230125,
103
+ "grad_norm": 32.637232486926365,
104
+ "learning_rate": 4.990398100856366e-07,
105
+ "logits/chosen": -3.1875,
106
+ "logits/rejected": -3.140625,
107
+ "logps/chosen": -288.0,
108
+ "logps/rejected": -350.0,
109
+ "loss": 0.534,
110
+ "rewards/accuracies": 0.7875000238418579,
111
+ "rewards/chosen": -0.17578125,
112
+ "rewards/margins": 0.35546875,
113
+ "rewards/rejected": -0.53125,
114
+ "step": 60
115
+ },
116
+ {
117
+ "epoch": 0.14644351464435146,
118
+ "grad_norm": 33.95432910817625,
119
+ "learning_rate": 4.967775735898179e-07,
120
+ "logits/chosen": -2.984375,
121
+ "logits/rejected": -3.0,
122
+ "logps/chosen": -296.0,
123
+ "logps/rejected": -384.0,
124
+ "loss": 0.4391,
125
+ "rewards/accuracies": 0.875,
126
+ "rewards/chosen": -0.291015625,
127
+ "rewards/margins": 0.76171875,
128
+ "rewards/rejected": -1.0546875,
129
+ "step": 70
130
+ },
131
+ {
132
+ "epoch": 0.16736401673640167,
133
+ "grad_norm": 27.499411471447175,
134
+ "learning_rate": 4.931986719649298e-07,
135
+ "logits/chosen": -3.09375,
136
+ "logits/rejected": -3.0625,
137
+ "logps/chosen": -394.0,
138
+ "logps/rejected": -502.0,
139
+ "loss": 0.3199,
140
+ "rewards/accuracies": 0.8687499761581421,
141
+ "rewards/chosen": -0.6171875,
142
+ "rewards/margins": 1.4609375,
143
+ "rewards/rejected": -2.078125,
144
+ "step": 80
145
+ },
146
+ {
147
+ "epoch": 0.18828451882845187,
148
+ "grad_norm": 21.40354339116553,
149
+ "learning_rate": 4.883222001996351e-07,
150
+ "logits/chosen": -3.015625,
151
+ "logits/rejected": -2.96875,
152
+ "logps/chosen": -350.0,
153
+ "logps/rejected": -516.0,
154
+ "loss": 0.2745,
155
+ "rewards/accuracies": 0.90625,
156
+ "rewards/chosen": -0.83203125,
157
+ "rewards/margins": 1.8359375,
158
+ "rewards/rejected": -2.671875,
159
+ "step": 90
160
+ },
161
+ {
162
+ "epoch": 0.20920502092050208,
163
+ "grad_norm": 20.52359586677175,
164
+ "learning_rate": 4.821741763807186e-07,
165
+ "logits/chosen": -2.828125,
166
+ "logits/rejected": -2.859375,
167
+ "logps/chosen": -364.0,
168
+ "logps/rejected": -584.0,
169
+ "loss": 0.2701,
170
+ "rewards/accuracies": 0.9125000238418579,
171
+ "rewards/chosen": -0.95703125,
172
+ "rewards/margins": 2.28125,
173
+ "rewards/rejected": -3.234375,
174
+ "step": 100
175
+ },
176
+ {
177
+ "epoch": 0.2301255230125523,
178
+ "grad_norm": 30.593807304187447,
179
+ "learning_rate": 4.747874028753375e-07,
180
+ "logits/chosen": -2.859375,
181
+ "logits/rejected": -2.75,
182
+ "logps/chosen": -420.0,
183
+ "logps/rejected": -624.0,
184
+ "loss": 0.2621,
185
+ "rewards/accuracies": 0.875,
186
+ "rewards/chosen": -1.125,
187
+ "rewards/margins": 2.1875,
188
+ "rewards/rejected": -3.3125,
189
+ "step": 110
190
+ },
191
+ {
192
+ "epoch": 0.2510460251046025,
193
+ "grad_norm": 37.65365408858647,
194
+ "learning_rate": 4.662012913161997e-07,
195
+ "logits/chosen": -2.703125,
196
+ "logits/rejected": -2.625,
197
+ "logps/chosen": -396.0,
198
+ "logps/rejected": -616.0,
199
+ "loss": 0.2139,
200
+ "rewards/accuracies": 0.8999999761581421,
201
+ "rewards/chosen": -1.140625,
202
+ "rewards/margins": 2.328125,
203
+ "rewards/rejected": -3.46875,
204
+ "step": 120
205
+ },
206
+ {
207
+ "epoch": 0.2719665271966527,
208
+ "grad_norm": 35.99185396815652,
209
+ "learning_rate": 4.5646165232345103e-07,
210
+ "logits/chosen": -2.71875,
211
+ "logits/rejected": -2.609375,
212
+ "logps/chosen": -412.0,
213
+ "logps/rejected": -664.0,
214
+ "loss": 0.2198,
215
+ "rewards/accuracies": 0.925000011920929,
216
+ "rewards/chosen": -1.3359375,
217
+ "rewards/margins": 2.578125,
218
+ "rewards/rejected": -3.90625,
219
+ "step": 130
220
+ },
221
+ {
222
+ "epoch": 0.2928870292887029,
223
+ "grad_norm": 26.13817903104149,
224
+ "learning_rate": 4.456204510851956e-07,
225
+ "logits/chosen": -2.6875,
226
+ "logits/rejected": -2.625,
227
+ "logps/chosen": -440.0,
228
+ "logps/rejected": -700.0,
229
+ "loss": 0.2258,
230
+ "rewards/accuracies": 0.90625,
231
+ "rewards/chosen": -1.25,
232
+ "rewards/margins": 2.875,
233
+ "rewards/rejected": -4.125,
234
+ "step": 140
235
+ },
236
+ {
237
+ "epoch": 0.3138075313807531,
238
+ "grad_norm": 31.228558796234093,
239
+ "learning_rate": 4.337355301007335e-07,
240
+ "logits/chosen": -2.6875,
241
+ "logits/rejected": -2.515625,
242
+ "logps/chosen": -416.0,
243
+ "logps/rejected": -732.0,
244
+ "loss": 0.2131,
245
+ "rewards/accuracies": 0.956250011920929,
246
+ "rewards/chosen": -1.296875,
247
+ "rewards/margins": 3.203125,
248
+ "rewards/rejected": -4.5,
249
+ "step": 150
250
+ },
251
+ {
252
+ "epoch": 0.33472803347280333,
253
+ "grad_norm": 30.201619705797096,
254
+ "learning_rate": 4.2087030056579986e-07,
255
+ "logits/chosen": -2.65625,
256
+ "logits/rejected": -2.53125,
257
+ "logps/chosen": -394.0,
258
+ "logps/rejected": -712.0,
259
+ "loss": 0.19,
260
+ "rewards/accuracies": 0.862500011920929,
261
+ "rewards/chosen": -1.1796875,
262
+ "rewards/margins": 3.171875,
263
+ "rewards/rejected": -4.34375,
264
+ "step": 160
265
+ },
266
+ {
267
+ "epoch": 0.35564853556485354,
268
+ "grad_norm": 26.763640340828882,
269
+ "learning_rate": 4.070934040463998e-07,
270
+ "logits/chosen": -2.46875,
271
+ "logits/rejected": -2.359375,
272
+ "logps/chosen": -402.0,
273
+ "logps/rejected": -740.0,
274
+ "loss": 0.2061,
275
+ "rewards/accuracies": 0.90625,
276
+ "rewards/chosen": -1.4921875,
277
+ "rewards/margins": 3.3125,
278
+ "rewards/rejected": -4.8125,
279
+ "step": 170
280
+ },
281
+ {
282
+ "epoch": 0.37656903765690375,
283
+ "grad_norm": 28.727616900983932,
284
+ "learning_rate": 3.9247834624635404e-07,
285
+ "logits/chosen": -2.546875,
286
+ "logits/rejected": -2.46875,
287
+ "logps/chosen": -390.0,
288
+ "logps/rejected": -764.0,
289
+ "loss": 0.2096,
290
+ "rewards/accuracies": 0.9125000238418579,
291
+ "rewards/chosen": -1.3125,
292
+ "rewards/margins": 3.6875,
293
+ "rewards/rejected": -5.0,
294
+ "step": 180
295
+ },
296
+ {
297
+ "epoch": 0.39748953974895396,
298
+ "grad_norm": 19.39344848925985,
299
+ "learning_rate": 3.7710310482256523e-07,
300
+ "logits/chosen": -2.640625,
301
+ "logits/rejected": -2.453125,
302
+ "logps/chosen": -412.0,
303
+ "logps/rejected": -720.0,
304
+ "loss": 0.2038,
305
+ "rewards/accuracies": 0.918749988079071,
306
+ "rewards/chosen": -1.28125,
307
+ "rewards/margins": 3.0625,
308
+ "rewards/rejected": -4.34375,
309
+ "step": 190
310
+ },
311
+ {
312
+ "epoch": 0.41841004184100417,
313
+ "grad_norm": 32.55796809410975,
314
+ "learning_rate": 3.610497133404795e-07,
315
+ "logits/chosen": -2.46875,
316
+ "logits/rejected": -2.484375,
317
+ "logps/chosen": -392.0,
318
+ "logps/rejected": -756.0,
319
+ "loss": 0.196,
320
+ "rewards/accuracies": 0.8999999761581421,
321
+ "rewards/chosen": -1.2421875,
322
+ "rewards/margins": 3.53125,
323
+ "rewards/rejected": -4.78125,
324
+ "step": 200
325
+ },
326
+ {
327
+ "epoch": 0.4393305439330544,
328
+ "grad_norm": 29.973419334522905,
329
+ "learning_rate": 3.4440382358952115e-07,
330
+ "logits/chosen": -2.609375,
331
+ "logits/rejected": -2.421875,
332
+ "logps/chosen": -464.0,
333
+ "logps/rejected": -848.0,
334
+ "loss": 0.2005,
335
+ "rewards/accuracies": 0.90625,
336
+ "rewards/chosen": -1.640625,
337
+ "rewards/margins": 3.875,
338
+ "rewards/rejected": -5.5,
339
+ "step": 210
340
+ },
341
+ {
342
+ "epoch": 0.4602510460251046,
343
+ "grad_norm": 28.710262137906923,
344
+ "learning_rate": 3.272542485937368e-07,
345
+ "logits/chosen": -2.484375,
346
+ "logits/rejected": -2.453125,
347
+ "logps/chosen": -402.0,
348
+ "logps/rejected": -776.0,
349
+ "loss": 0.1869,
350
+ "rewards/accuracies": 0.8999999761581421,
351
+ "rewards/chosen": -1.390625,
352
+ "rewards/margins": 3.65625,
353
+ "rewards/rejected": -5.03125,
354
+ "step": 220
355
+ },
356
+ {
357
+ "epoch": 0.4811715481171548,
358
+ "grad_norm": 60.380748603406246,
359
+ "learning_rate": 3.096924887558854e-07,
360
+ "logits/chosen": -2.375,
361
+ "logits/rejected": -2.359375,
362
+ "logps/chosen": -400.0,
363
+ "logps/rejected": -804.0,
364
+ "loss": 0.1905,
365
+ "rewards/accuracies": 0.918749988079071,
366
+ "rewards/chosen": -1.5234375,
367
+ "rewards/margins": 4.0,
368
+ "rewards/rejected": -5.53125,
369
+ "step": 230
370
+ },
371
+ {
372
+ "epoch": 0.502092050209205,
373
+ "grad_norm": 31.98560347251394,
374
+ "learning_rate": 2.9181224366319943e-07,
375
+ "logits/chosen": -2.46875,
376
+ "logits/rejected": -2.265625,
377
+ "logps/chosen": -456.0,
378
+ "logps/rejected": -832.0,
379
+ "loss": 0.1961,
380
+ "rewards/accuracies": 0.875,
381
+ "rewards/chosen": -1.859375,
382
+ "rewards/margins": 3.84375,
383
+ "rewards/rejected": -5.6875,
384
+ "step": 240
385
+ },
386
+ {
387
+ "epoch": 0.5230125523012552,
388
+ "grad_norm": 26.951237850793813,
389
+ "learning_rate": 2.7370891215954565e-07,
390
+ "logits/chosen": -2.484375,
391
+ "logits/rejected": -2.265625,
392
+ "logps/chosen": -462.0,
393
+ "logps/rejected": -844.0,
394
+ "loss": 0.1536,
395
+ "rewards/accuracies": 0.9437500238418579,
396
+ "rewards/chosen": -1.5703125,
397
+ "rewards/margins": 4.125,
398
+ "rewards/rejected": -5.6875,
399
+ "step": 250
400
+ },
401
+ {
402
+ "epoch": 0.5439330543933054,
403
+ "grad_norm": 31.682901778430733,
404
+ "learning_rate": 2.55479083351317e-07,
405
+ "logits/chosen": -2.421875,
406
+ "logits/rejected": -2.203125,
407
+ "logps/chosen": -524.0,
408
+ "logps/rejected": -988.0,
409
+ "loss": 0.1713,
410
+ "rewards/accuracies": 0.9312499761581421,
411
+ "rewards/chosen": -2.28125,
412
+ "rewards/margins": 4.71875,
413
+ "rewards/rejected": -7.03125,
414
+ "step": 260
415
+ },
416
+ {
417
+ "epoch": 0.5648535564853556,
418
+ "grad_norm": 37.952603826080356,
419
+ "learning_rate": 2.3722002126275822e-07,
420
+ "logits/chosen": -2.375,
421
+ "logits/rejected": -2.21875,
422
+ "logps/chosen": -466.0,
423
+ "logps/rejected": -848.0,
424
+ "loss": 0.1822,
425
+ "rewards/accuracies": 0.893750011920929,
426
+ "rewards/chosen": -1.8671875,
427
+ "rewards/margins": 3.8125,
428
+ "rewards/rejected": -5.65625,
429
+ "step": 270
430
+ },
431
+ {
432
+ "epoch": 0.5857740585774058,
433
+ "grad_norm": 33.73231464126618,
434
+ "learning_rate": 2.19029145890313e-07,
435
+ "logits/chosen": -2.375,
436
+ "logits/rejected": -2.21875,
437
+ "logps/chosen": -408.0,
438
+ "logps/rejected": -816.0,
439
+ "loss": 0.1832,
440
+ "rewards/accuracies": 0.9312499761581421,
441
+ "rewards/chosen": -1.4140625,
442
+ "rewards/margins": 4.0,
443
+ "rewards/rejected": -5.40625,
444
+ "step": 280
445
+ },
446
+ {
447
+ "epoch": 0.606694560669456,
448
+ "grad_norm": 26.354844682908944,
449
+ "learning_rate": 2.0100351342479216e-07,
450
+ "logits/chosen": -2.5,
451
+ "logits/rejected": -2.3125,
452
+ "logps/chosen": -440.0,
453
+ "logps/rejected": -760.0,
454
+ "loss": 0.1894,
455
+ "rewards/accuracies": 0.8812500238418579,
456
+ "rewards/chosen": -1.8046875,
457
+ "rewards/margins": 3.328125,
458
+ "rewards/rejected": -5.125,
459
+ "step": 290
460
+ },
461
+ {
462
+ "epoch": 0.6276150627615062,
463
+ "grad_norm": 22.5573563238024,
464
+ "learning_rate": 1.8323929841460178e-07,
465
+ "logits/chosen": -2.515625,
466
+ "logits/rejected": -2.234375,
467
+ "logps/chosen": -438.0,
468
+ "logps/rejected": -852.0,
469
+ "loss": 0.1666,
470
+ "rewards/accuracies": 0.9312499761581421,
471
+ "rewards/chosen": -1.390625,
472
+ "rewards/margins": 4.40625,
473
+ "rewards/rejected": -5.8125,
474
+ "step": 300
475
+ },
476
+ {
477
+ "epoch": 0.6485355648535565,
478
+ "grad_norm": 39.53793068190583,
479
+ "learning_rate": 1.6583128063291573e-07,
480
+ "logits/chosen": -2.3125,
481
+ "logits/rejected": -2.21875,
482
+ "logps/chosen": -454.0,
483
+ "logps/rejected": -856.0,
484
+ "loss": 0.1671,
485
+ "rewards/accuracies": 0.9375,
486
+ "rewards/chosen": -1.5546875,
487
+ "rewards/margins": 4.3125,
488
+ "rewards/rejected": -5.875,
489
+ "step": 310
490
+ },
491
+ {
492
+ "epoch": 0.6694560669456067,
493
+ "grad_norm": 35.78221559654461,
494
+ "learning_rate": 1.488723393865766e-07,
495
+ "logits/chosen": -2.453125,
496
+ "logits/rejected": -2.140625,
497
+ "logps/chosen": -476.0,
498
+ "logps/rejected": -952.0,
499
+ "loss": 0.1683,
500
+ "rewards/accuracies": 0.918749988079071,
501
+ "rewards/chosen": -1.8046875,
502
+ "rewards/margins": 4.875,
503
+ "rewards/rejected": -6.6875,
504
+ "step": 320
505
+ },
506
+ {
507
+ "epoch": 0.6903765690376569,
508
+ "grad_norm": 22.677030349977123,
509
+ "learning_rate": 1.3245295796480788e-07,
510
+ "logits/chosen": -2.484375,
511
+ "logits/rejected": -2.21875,
512
+ "logps/chosen": -444.0,
513
+ "logps/rejected": -844.0,
514
+ "loss": 0.1831,
515
+ "rewards/accuracies": 0.9125000238418579,
516
+ "rewards/chosen": -1.7265625,
517
+ "rewards/margins": 4.03125,
518
+ "rewards/rejected": -5.78125,
519
+ "step": 330
520
+ },
521
+ {
522
+ "epoch": 0.7112970711297071,
523
+ "grad_norm": 38.64724110061085,
524
+ "learning_rate": 1.1666074087171627e-07,
525
+ "logits/chosen": -2.546875,
526
+ "logits/rejected": -2.3125,
527
+ "logps/chosen": -484.0,
528
+ "logps/rejected": -936.0,
529
+ "loss": 0.1595,
530
+ "rewards/accuracies": 0.9375,
531
+ "rewards/chosen": -1.84375,
532
+ "rewards/margins": 4.53125,
533
+ "rewards/rejected": -6.375,
534
+ "step": 340
535
+ },
536
+ {
537
+ "epoch": 0.7322175732217573,
538
+ "grad_norm": 31.433046366718926,
539
+ "learning_rate": 1.0157994641835734e-07,
540
+ "logits/chosen": -2.34375,
541
+ "logits/rejected": -2.125,
542
+ "logps/chosen": -442.0,
543
+ "logps/rejected": -896.0,
544
+ "loss": 0.1288,
545
+ "rewards/accuracies": 0.96875,
546
+ "rewards/chosen": -1.75,
547
+ "rewards/margins": 4.53125,
548
+ "rewards/rejected": -6.28125,
549
+ "step": 350
550
+ },
551
+ {
552
+ "epoch": 0.7531380753138075,
553
+ "grad_norm": 25.40116484053092,
554
+ "learning_rate": 8.729103716819111e-08,
555
+ "logits/chosen": -2.515625,
556
+ "logits/rejected": -2.140625,
557
+ "logps/chosen": -520.0,
558
+ "logps/rejected": -972.0,
559
+ "loss": 0.1427,
560
+ "rewards/accuracies": 0.956250011920929,
561
+ "rewards/chosen": -2.140625,
562
+ "rewards/margins": 4.65625,
563
+ "rewards/rejected": -6.8125,
564
+ "step": 360
565
+ },
566
+ {
567
+ "epoch": 0.7740585774058577,
568
+ "grad_norm": 48.591768244953315,
569
+ "learning_rate": 7.387025063449081e-08,
570
+ "logits/chosen": -2.328125,
571
+ "logits/rejected": -2.015625,
572
+ "logps/chosen": -478.0,
573
+ "logps/rejected": -924.0,
574
+ "loss": 0.1851,
575
+ "rewards/accuracies": 0.925000011920929,
576
+ "rewards/chosen": -2.0,
577
+ "rewards/margins": 4.8125,
578
+ "rewards/rejected": -6.8125,
579
+ "step": 370
580
+ },
581
+ {
582
+ "epoch": 0.7949790794979079,
583
+ "grad_norm": 22.613325771906077,
584
+ "learning_rate": 6.138919252022435e-08,
585
+ "logits/chosen": -2.234375,
586
+ "logits/rejected": -2.0,
587
+ "logps/chosen": -414.0,
588
+ "logps/rejected": -892.0,
589
+ "loss": 0.1637,
590
+ "rewards/accuracies": 0.9312499761581421,
591
+ "rewards/chosen": -1.6953125,
592
+ "rewards/margins": 4.5,
593
+ "rewards/rejected": -6.21875,
594
+ "step": 380
595
+ },
596
+ {
597
+ "epoch": 0.8158995815899581,
598
+ "grad_norm": 30.921763783465405,
599
+ "learning_rate": 4.991445467064689e-08,
600
+ "logits/chosen": -2.4375,
601
+ "logits/rejected": -2.125,
602
+ "logps/chosen": -496.0,
603
+ "logps/rejected": -944.0,
604
+ "loss": 0.1531,
605
+ "rewards/accuracies": 0.9312499761581421,
606
+ "rewards/chosen": -1.859375,
607
+ "rewards/margins": 4.625,
608
+ "rewards/rejected": -6.46875,
609
+ "step": 390
610
+ },
611
+ {
612
+ "epoch": 0.8368200836820083,
613
+ "grad_norm": 28.127290852155298,
614
+ "learning_rate": 3.9507259776993954e-08,
615
+ "logits/chosen": -2.375,
616
+ "logits/rejected": -2.125,
617
+ "logps/chosen": -452.0,
618
+ "logps/rejected": -960.0,
619
+ "loss": 0.1497,
620
+ "rewards/accuracies": 0.925000011920929,
621
+ "rewards/chosen": -1.7734375,
622
+ "rewards/margins": 4.96875,
623
+ "rewards/rejected": -6.75,
624
+ "step": 400
625
+ },
626
+ {
627
+ "epoch": 0.8577405857740585,
628
+ "grad_norm": 27.178847714931162,
629
+ "learning_rate": 3.022313472693447e-08,
630
+ "logits/chosen": -2.4375,
631
+ "logits/rejected": -2.15625,
632
+ "logps/chosen": -472.0,
633
+ "logps/rejected": -932.0,
634
+ "loss": 0.1588,
635
+ "rewards/accuracies": 0.9437500238418579,
636
+ "rewards/chosen": -1.7734375,
637
+ "rewards/margins": 4.90625,
638
+ "rewards/rejected": -6.6875,
639
+ "step": 410
640
+ },
641
+ {
642
+ "epoch": 0.8786610878661087,
643
+ "grad_norm": 26.395514423886947,
644
+ "learning_rate": 2.2111614344599684e-08,
645
+ "logits/chosen": -2.28125,
646
+ "logits/rejected": -2.125,
647
+ "logps/chosen": -496.0,
648
+ "logps/rejected": -936.0,
649
+ "loss": 0.1616,
650
+ "rewards/accuracies": 0.90625,
651
+ "rewards/chosen": -1.859375,
652
+ "rewards/margins": 4.6875,
653
+ "rewards/rejected": -6.5625,
654
+ "step": 420
655
+ },
656
+ {
657
+ "epoch": 0.899581589958159,
658
+ "grad_norm": 17.01826694159393,
659
+ "learning_rate": 1.521597710086439e-08,
660
+ "logits/chosen": -2.234375,
661
+ "logits/rejected": -1.8046875,
662
+ "logps/chosen": -462.0,
663
+ "logps/rejected": -944.0,
664
+ "loss": 0.1501,
665
+ "rewards/accuracies": 0.918749988079071,
666
+ "rewards/chosen": -1.8046875,
667
+ "rewards/margins": 5.21875,
668
+ "rewards/rejected": -7.03125,
669
+ "step": 430
670
+ },
671
+ {
672
+ "epoch": 0.9205020920502092,
673
+ "grad_norm": 44.77843694208592,
674
+ "learning_rate": 9.57301420397924e-09,
675
+ "logits/chosen": -2.328125,
676
+ "logits/rejected": -2.046875,
677
+ "logps/chosen": -472.0,
678
+ "logps/rejected": -1032.0,
679
+ "loss": 0.155,
680
+ "rewards/accuracies": 0.9375,
681
+ "rewards/chosen": -1.8046875,
682
+ "rewards/margins": 5.53125,
683
+ "rewards/rejected": -7.34375,
684
+ "step": 440
685
+ },
686
+ {
687
+ "epoch": 0.9414225941422594,
688
+ "grad_norm": 25.544543347881593,
689
+ "learning_rate": 5.212833302556258e-09,
690
+ "logits/chosen": -2.3125,
691
+ "logits/rejected": -2.046875,
692
+ "logps/chosen": -470.0,
693
+ "logps/rejected": -996.0,
694
+ "loss": 0.154,
695
+ "rewards/accuracies": 0.9624999761581421,
696
+ "rewards/chosen": -1.7734375,
697
+ "rewards/margins": 5.25,
698
+ "rewards/rejected": -7.03125,
699
+ "step": 450
700
+ },
701
+ {
702
+ "epoch": 0.9623430962343096,
703
+ "grad_norm": 20.61099998716699,
704
+ "learning_rate": 2.158697848236607e-09,
705
+ "logits/chosen": -2.28125,
706
+ "logits/rejected": -2.0,
707
+ "logps/chosen": -464.0,
708
+ "logps/rejected": -964.0,
709
+ "loss": 0.1452,
710
+ "rewards/accuracies": 0.949999988079071,
711
+ "rewards/chosen": -1.890625,
712
+ "rewards/margins": 5.03125,
713
+ "rewards/rejected": -6.9375,
714
+ "step": 460
715
+ },
716
+ {
717
+ "epoch": 0.9832635983263598,
718
+ "grad_norm": 29.65187089685154,
719
+ "learning_rate": 4.269029751107489e-10,
720
+ "logits/chosen": -2.25,
721
+ "logits/rejected": -1.984375,
722
+ "logps/chosen": -490.0,
723
+ "logps/rejected": -920.0,
724
+ "loss": 0.1536,
725
+ "rewards/accuracies": 0.925000011920929,
726
+ "rewards/chosen": -2.0625,
727
+ "rewards/margins": 4.46875,
728
+ "rewards/rejected": -6.53125,
729
+ "step": 470
730
+ },
731
+ {
732
+ "epoch": 1.0,
733
+ "step": 478,
734
+ "total_flos": 0.0,
735
+ "train_loss": 0.24929137409481544,
736
+ "train_runtime": 6934.4318,
737
+ "train_samples_per_second": 8.816,
738
+ "train_steps_per_second": 0.069
739
+ }
740
+ ],
741
+ "logging_steps": 10,
742
+ "max_steps": 478,
743
+ "num_input_tokens_seen": 0,
744
+ "num_train_epochs": 1,
745
+ "save_steps": 100,
746
+ "stateful_callbacks": {
747
+ "TrainerControl": {
748
+ "args": {
749
+ "should_epoch_stop": false,
750
+ "should_evaluate": false,
751
+ "should_log": false,
752
+ "should_save": true,
753
+ "should_training_stop": true
754
+ },
755
+ "attributes": {}
756
+ }
757
+ },
758
+ "total_flos": 0.0,
759
+ "train_batch_size": 8,
760
+ "trial_name": null,
761
+ "trial_params": null
762
+ }