neluo commited on
Commit
cd99d08
·
verified ·
1 Parent(s): 955dd8a

Model save

Browse files
README.md ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: Qwen/Qwen2.5-1.5B-Instruct
3
+ library_name: transformers
4
+ model_name: Qwen2.5-1.5B-Open-R1-Distill
5
+ tags:
6
+ - generated_from_trainer
7
+ - trl
8
+ - sft
9
+ licence: license
10
+ ---
11
+
12
+ # Model Card for Qwen2.5-1.5B-Open-R1-Distill
13
+
14
+ This model is a fine-tuned version of [Qwen/Qwen2.5-1.5B-Instruct](https://huggingface.co/Qwen/Qwen2.5-1.5B-Instruct).
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="neluo/Qwen2.5-1.5B-Open-R1-Distill", 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
+ [<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="150" height="24"/>](https://wandb.ai/ne-luo-uoe/huggingface/runs/el6it63p)
31
+
32
+
33
+ This model was trained with SFT.
34
+
35
+ ### Framework versions
36
+
37
+ - TRL: 0.17.0.dev0
38
+ - Transformers: 4.51.2
39
+ - Pytorch: 2.6.0
40
+ - Datasets: 3.5.0
41
+ - Tokenizers: 0.21.1
42
+
43
+ ## Citations
44
+
45
+
46
+
47
+ Cite TRL as:
48
+
49
+ ```bibtex
50
+ @misc{vonwerra2022trl,
51
+ title = {{TRL: Transformer Reinforcement Learning}},
52
+ 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{\'e}dec},
53
+ year = 2020,
54
+ journal = {GitHub repository},
55
+ publisher = {GitHub},
56
+ howpublished = {\url{https://github.com/huggingface/trl}}
57
+ }
58
+ ```
all_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "total_flos": 488165445992448.0,
3
+ "train_loss": 0.5790879526245061,
4
+ "train_runtime": 25119.8538,
5
+ "train_samples": 93733,
6
+ "train_samples_per_second": 1.366,
7
+ "train_steps_per_second": 0.011
8
+ }
generation_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 151643,
3
+ "do_sample": true,
4
+ "eos_token_id": [
5
+ 151645,
6
+ 151643
7
+ ],
8
+ "pad_token_id": 151643,
9
+ "repetition_penalty": 1.1,
10
+ "temperature": 0.7,
11
+ "top_k": 20,
12
+ "top_p": 0.8,
13
+ "transformers_version": "4.51.2"
14
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "total_flos": 488165445992448.0,
3
+ "train_loss": 0.5790879526245061,
4
+ "train_runtime": 25119.8538,
5
+ "train_samples": 93733,
6
+ "train_samples_per_second": 1.366,
7
+ "train_steps_per_second": 0.011
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,468 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": null,
3
+ "best_metric": null,
4
+ "best_model_checkpoint": null,
5
+ "epoch": 0.9990680335507922,
6
+ "eval_steps": 500,
7
+ "global_step": 268,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "epoch": 0.01863932898415657,
14
+ "grad_norm": 1.7573972317970177,
15
+ "learning_rate": 1.4285714285714285e-05,
16
+ "loss": 0.8497,
17
+ "num_tokens": 10465392.0,
18
+ "step": 5
19
+ },
20
+ {
21
+ "epoch": 0.03727865796831314,
22
+ "grad_norm": 0.7814164461382908,
23
+ "learning_rate": 3.2142857142857144e-05,
24
+ "loss": 0.7788,
25
+ "num_tokens": 20951152.0,
26
+ "step": 10
27
+ },
28
+ {
29
+ "epoch": 0.05591798695246971,
30
+ "grad_norm": 0.4971840947687821,
31
+ "learning_rate": 5e-05,
32
+ "loss": 0.7096,
33
+ "num_tokens": 31436912.0,
34
+ "step": 15
35
+ },
36
+ {
37
+ "epoch": 0.07455731593662628,
38
+ "grad_norm": 0.4104663829493778,
39
+ "learning_rate": 4.995698831799242e-05,
40
+ "loss": 0.6707,
41
+ "num_tokens": 41909269.0,
42
+ "step": 20
43
+ },
44
+ {
45
+ "epoch": 0.09319664492078285,
46
+ "grad_norm": 0.378224237110894,
47
+ "learning_rate": 4.982811771683982e-05,
48
+ "loss": 0.6517,
49
+ "num_tokens": 52353719.0,
50
+ "step": 25
51
+ },
52
+ {
53
+ "epoch": 0.11183597390493942,
54
+ "grad_norm": 0.27264995346014925,
55
+ "learning_rate": 4.9613880902437035e-05,
56
+ "loss": 0.6363,
57
+ "num_tokens": 62792124.0,
58
+ "step": 30
59
+ },
60
+ {
61
+ "epoch": 0.13047530288909598,
62
+ "grad_norm": 0.25488038499432786,
63
+ "learning_rate": 4.931509695796055e-05,
64
+ "loss": 0.6217,
65
+ "num_tokens": 73260442.0,
66
+ "step": 35
67
+ },
68
+ {
69
+ "epoch": 0.14911463187325255,
70
+ "grad_norm": 0.2475293398276613,
71
+ "learning_rate": 4.8932908212300035e-05,
72
+ "loss": 0.6053,
73
+ "num_tokens": 83727556.0,
74
+ "step": 40
75
+ },
76
+ {
77
+ "epoch": 0.16775396085740912,
78
+ "grad_norm": 0.2763844980958693,
79
+ "learning_rate": 4.846877587263728e-05,
80
+ "loss": 0.6041,
81
+ "num_tokens": 94201938.0,
82
+ "step": 45
83
+ },
84
+ {
85
+ "epoch": 0.1863932898415657,
86
+ "grad_norm": 0.3232566590307947,
87
+ "learning_rate": 4.792447443787034e-05,
88
+ "loss": 0.5967,
89
+ "num_tokens": 104670740.0,
90
+ "step": 50
91
+ },
92
+ {
93
+ "epoch": 0.20503261882572227,
94
+ "grad_norm": 0.3499333864597863,
95
+ "learning_rate": 4.730208491424174e-05,
96
+ "loss": 0.5998,
97
+ "num_tokens": 115151933.0,
98
+ "step": 55
99
+ },
100
+ {
101
+ "epoch": 0.22367194780987884,
102
+ "grad_norm": 0.3933865267179061,
103
+ "learning_rate": 4.660398685910928e-05,
104
+ "loss": 0.5906,
105
+ "num_tokens": 125607410.0,
106
+ "step": 60
107
+ },
108
+ {
109
+ "epoch": 0.2423112767940354,
110
+ "grad_norm": 0.3915672585619426,
111
+ "learning_rate": 4.583284928327805e-05,
112
+ "loss": 0.5884,
113
+ "num_tokens": 136036466.0,
114
+ "step": 65
115
+ },
116
+ {
117
+ "epoch": 0.26095060577819196,
118
+ "grad_norm": 0.4195837025490587,
119
+ "learning_rate": 4.499162044667658e-05,
120
+ "loss": 0.5849,
121
+ "num_tokens": 146502251.0,
122
+ "step": 70
123
+ },
124
+ {
125
+ "epoch": 0.27958993476234856,
126
+ "grad_norm": 0.3381612617240059,
127
+ "learning_rate": 4.4083516586390694e-05,
128
+ "loss": 0.5821,
129
+ "num_tokens": 156977308.0,
130
+ "step": 75
131
+ },
132
+ {
133
+ "epoch": 0.2982292637465051,
134
+ "grad_norm": 0.2551239560014803,
135
+ "learning_rate": 4.3112009620150904e-05,
136
+ "loss": 0.576,
137
+ "num_tokens": 167423794.0,
138
+ "step": 80
139
+ },
140
+ {
141
+ "epoch": 0.3168685927306617,
142
+ "grad_norm": 0.30592698170937993,
143
+ "learning_rate": 4.208081387228612e-05,
144
+ "loss": 0.5685,
145
+ "num_tokens": 177900466.0,
146
+ "step": 85
147
+ },
148
+ {
149
+ "epoch": 0.33550792171481825,
150
+ "grad_norm": 0.281492013111172,
151
+ "learning_rate": 4.099387187289365e-05,
152
+ "loss": 0.5724,
153
+ "num_tokens": 188373813.0,
154
+ "step": 90
155
+ },
156
+ {
157
+ "epoch": 0.35414725069897485,
158
+ "grad_norm": 0.26672187272505754,
159
+ "learning_rate": 3.985533928451914e-05,
160
+ "loss": 0.5706,
161
+ "num_tokens": 198859382.0,
162
+ "step": 95
163
+ },
164
+ {
165
+ "epoch": 0.3727865796831314,
166
+ "grad_norm": 0.2923857402012376,
167
+ "learning_rate": 3.866956901397559e-05,
168
+ "loss": 0.5676,
169
+ "num_tokens": 209345142.0,
170
+ "step": 100
171
+ },
172
+ {
173
+ "epoch": 0.391425908667288,
174
+ "grad_norm": 0.2780198681024584,
175
+ "learning_rate": 3.74410945700462e-05,
176
+ "loss": 0.5668,
177
+ "num_tokens": 219820636.0,
178
+ "step": 105
179
+ },
180
+ {
181
+ "epoch": 0.41006523765144454,
182
+ "grad_norm": 0.3103372433812494,
183
+ "learning_rate": 3.617461273069867e-05,
184
+ "loss": 0.559,
185
+ "num_tokens": 230306396.0,
186
+ "step": 110
187
+ },
188
+ {
189
+ "epoch": 0.42870456663560114,
190
+ "grad_norm": 0.32943677203389876,
191
+ "learning_rate": 3.487496558607898e-05,
192
+ "loss": 0.5627,
193
+ "num_tokens": 240792156.0,
194
+ "step": 115
195
+ },
196
+ {
197
+ "epoch": 0.4473438956197577,
198
+ "grad_norm": 0.2903244983178175,
199
+ "learning_rate": 3.354712202593882e-05,
200
+ "loss": 0.5611,
201
+ "num_tokens": 251259365.0,
202
+ "step": 120
203
+ },
204
+ {
205
+ "epoch": 0.4659832246039143,
206
+ "grad_norm": 0.27649466725394467,
207
+ "learning_rate": 3.219615874227504e-05,
208
+ "loss": 0.5644,
209
+ "num_tokens": 261736444.0,
210
+ "step": 125
211
+ },
212
+ {
213
+ "epoch": 0.4846225535880708,
214
+ "grad_norm": 0.28234984702886096,
215
+ "learning_rate": 3.082724081981306e-05,
216
+ "loss": 0.563,
217
+ "num_tokens": 272205866.0,
218
+ "step": 130
219
+ },
220
+ {
221
+ "epoch": 0.5032618825722274,
222
+ "grad_norm": 0.2766528639933286,
223
+ "learning_rate": 2.9445601988541782e-05,
224
+ "loss": 0.5587,
225
+ "num_tokens": 282683327.0,
226
+ "step": 135
227
+ },
228
+ {
229
+ "epoch": 0.5219012115563839,
230
+ "grad_norm": 0.2685787031695611,
231
+ "learning_rate": 2.8056524613799888e-05,
232
+ "loss": 0.5612,
233
+ "num_tokens": 293122806.0,
234
+ "step": 140
235
+ },
236
+ {
237
+ "epoch": 0.5405405405405406,
238
+ "grad_norm": 0.2101892722509089,
239
+ "learning_rate": 2.6665319500416385e-05,
240
+ "loss": 0.5606,
241
+ "num_tokens": 303598947.0,
242
+ "step": 145
243
+ },
244
+ {
245
+ "epoch": 0.5591798695246971,
246
+ "grad_norm": 0.2589895951146755,
247
+ "learning_rate": 2.527730558811963e-05,
248
+ "loss": 0.5579,
249
+ "num_tokens": 314077641.0,
250
+ "step": 150
251
+ },
252
+ {
253
+ "epoch": 0.5778191985088537,
254
+ "grad_norm": 0.21518960674848625,
255
+ "learning_rate": 2.3897789615844557e-05,
256
+ "loss": 0.5488,
257
+ "num_tokens": 324545386.0,
258
+ "step": 155
259
+ },
260
+ {
261
+ "epoch": 0.5964585274930102,
262
+ "grad_norm": 0.18657627443004557,
263
+ "learning_rate": 2.2532045832686615e-05,
264
+ "loss": 0.5609,
265
+ "num_tokens": 335031146.0,
266
+ "step": 160
267
+ },
268
+ {
269
+ "epoch": 0.6150978564771669,
270
+ "grad_norm": 0.20944107327672593,
271
+ "learning_rate": 2.1185295833072914e-05,
272
+ "loss": 0.5412,
273
+ "num_tokens": 345504904.0,
274
+ "step": 165
275
+ },
276
+ {
277
+ "epoch": 0.6337371854613234,
278
+ "grad_norm": 0.18523084293093703,
279
+ "learning_rate": 1.9862688593245853e-05,
280
+ "loss": 0.5508,
281
+ "num_tokens": 355956520.0,
282
+ "step": 170
283
+ },
284
+ {
285
+ "epoch": 0.65237651444548,
286
+ "grad_norm": 0.16744206090364774,
287
+ "learning_rate": 1.8569280785385046e-05,
288
+ "loss": 0.5515,
289
+ "num_tokens": 366434348.0,
290
+ "step": 175
291
+ },
292
+ {
293
+ "epoch": 0.6710158434296365,
294
+ "grad_norm": 0.19529463948190923,
295
+ "learning_rate": 1.731001744463161e-05,
296
+ "loss": 0.5543,
297
+ "num_tokens": 376908695.0,
298
+ "step": 180
299
+ },
300
+ {
301
+ "epoch": 0.6896551724137931,
302
+ "grad_norm": 0.18569828701168353,
303
+ "learning_rate": 1.6089713062930108e-05,
304
+ "loss": 0.5571,
305
+ "num_tokens": 387384301.0,
306
+ "step": 185
307
+ },
308
+ {
309
+ "epoch": 0.7082945013979497,
310
+ "grad_norm": 0.1713285501371151,
311
+ "learning_rate": 1.4913033181971056e-05,
312
+ "loss": 0.548,
313
+ "num_tokens": 397835323.0,
314
+ "step": 190
315
+ },
316
+ {
317
+ "epoch": 0.7269338303821062,
318
+ "grad_norm": 0.16294932839233475,
319
+ "learning_rate": 1.3784476555609077e-05,
320
+ "loss": 0.5467,
321
+ "num_tokens": 408298322.0,
322
+ "step": 195
323
+ },
324
+ {
325
+ "epoch": 0.7455731593662628,
326
+ "grad_norm": 0.16147697817221135,
327
+ "learning_rate": 1.2708357949954441e-05,
328
+ "loss": 0.5526,
329
+ "num_tokens": 418781566.0,
330
+ "step": 200
331
+ },
332
+ {
333
+ "epoch": 0.7642124883504194,
334
+ "grad_norm": 0.17353407502301713,
335
+ "learning_rate": 1.1688791646897726e-05,
336
+ "loss": 0.5484,
337
+ "num_tokens": 429246222.0,
338
+ "step": 205
339
+ },
340
+ {
341
+ "epoch": 0.782851817334576,
342
+ "grad_norm": 0.16962668393783945,
343
+ "learning_rate": 1.0729675714137831e-05,
344
+ "loss": 0.5426,
345
+ "num_tokens": 439717644.0,
346
+ "step": 210
347
+ },
348
+ {
349
+ "epoch": 0.8014911463187325,
350
+ "grad_norm": 0.15859375239694778,
351
+ "learning_rate": 9.834677101853265e-06,
352
+ "loss": 0.5517,
353
+ "num_tokens": 450170885.0,
354
+ "step": 215
355
+ },
356
+ {
357
+ "epoch": 0.8201304753028891,
358
+ "grad_norm": 0.1772198182052593,
359
+ "learning_rate": 9.007217622995933e-06,
360
+ "loss": 0.5478,
361
+ "num_tokens": 460656645.0,
362
+ "step": 220
363
+ },
364
+ {
365
+ "epoch": 0.8387698042870456,
366
+ "grad_norm": 0.18021101189312388,
367
+ "learning_rate": 8.250460870808394e-06,
368
+ "loss": 0.5401,
369
+ "num_tokens": 471142405.0,
370
+ "step": 225
371
+ },
372
+ {
373
+ "epoch": 0.8574091332712023,
374
+ "grad_norm": 0.14833153298429916,
375
+ "learning_rate": 7.567300123582388e-06,
376
+ "loss": 0.5444,
377
+ "num_tokens": 481616409.0,
378
+ "step": 230
379
+ },
380
+ {
381
+ "epoch": 0.8760484622553588,
382
+ "grad_norm": 0.1675362976580094,
383
+ "learning_rate": 6.960347282901894e-06,
384
+ "loss": 0.5437,
385
+ "num_tokens": 492097674.0,
386
+ "step": 235
387
+ },
388
+ {
389
+ "epoch": 0.8946877912395154,
390
+ "grad_norm": 0.14741844256042477,
391
+ "learning_rate": 6.431922887662643e-06,
392
+ "loss": 0.5414,
393
+ "num_tokens": 502555042.0,
394
+ "step": 240
395
+ },
396
+ {
397
+ "epoch": 0.9133271202236719,
398
+ "grad_norm": 0.1496978314112162,
399
+ "learning_rate": 5.984047242047134e-06,
400
+ "loss": 0.5394,
401
+ "num_tokens": 513031521.0,
402
+ "step": 245
403
+ },
404
+ {
405
+ "epoch": 0.9319664492078286,
406
+ "grad_norm": 0.14094412621251864,
407
+ "learning_rate": 5.6184326913751945e-06,
408
+ "loss": 0.5477,
409
+ "num_tokens": 523517281.0,
410
+ "step": 250
411
+ },
412
+ {
413
+ "epoch": 0.9506057781919851,
414
+ "grad_norm": 0.1478294431106662,
415
+ "learning_rate": 5.336477075361577e-06,
416
+ "loss": 0.544,
417
+ "num_tokens": 533998146.0,
418
+ "step": 255
419
+ },
420
+ {
421
+ "epoch": 0.9692451071761417,
422
+ "grad_norm": 0.13882538385053997,
423
+ "learning_rate": 5.139258383810381e-06,
424
+ "loss": 0.54,
425
+ "num_tokens": 544470561.0,
426
+ "step": 260
427
+ },
428
+ {
429
+ "epoch": 0.9878844361602982,
430
+ "grad_norm": 0.14673471750521358,
431
+ "learning_rate": 5.027530635179121e-06,
432
+ "loss": 0.5362,
433
+ "num_tokens": 554934577.0,
434
+ "step": 265
435
+ },
436
+ {
437
+ "epoch": 0.9990680335507922,
438
+ "num_tokens": 561226033.0,
439
+ "step": 268,
440
+ "total_flos": 488165445992448.0,
441
+ "train_loss": 0.5790879526245061,
442
+ "train_runtime": 25119.8538,
443
+ "train_samples_per_second": 1.366,
444
+ "train_steps_per_second": 0.011
445
+ }
446
+ ],
447
+ "logging_steps": 5,
448
+ "max_steps": 268,
449
+ "num_input_tokens_seen": 0,
450
+ "num_train_epochs": 1,
451
+ "save_steps": 100,
452
+ "stateful_callbacks": {
453
+ "TrainerControl": {
454
+ "args": {
455
+ "should_epoch_stop": false,
456
+ "should_evaluate": false,
457
+ "should_log": false,
458
+ "should_save": true,
459
+ "should_training_stop": true
460
+ },
461
+ "attributes": {}
462
+ }
463
+ },
464
+ "total_flos": 488165445992448.0,
465
+ "train_batch_size": 16,
466
+ "trial_name": null,
467
+ "trial_params": null
468
+ }