chentianqi commited on
Commit
b79840a
·
verified ·
1 Parent(s): 57225e7

Model save

Browse files
README.md ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ model_name: Qwen2.5-1.5B-Open-R1-Distill
4
+ tags:
5
+ - generated_from_trainer
6
+ - trl
7
+ - sft
8
+ licence: license
9
+ ---
10
+
11
+ # Model Card for Qwen2.5-1.5B-Open-R1-Distill
12
+
13
+ This model is a fine-tuned version of [None](https://huggingface.co/None).
14
+ It has been trained using [TRL](https://github.com/huggingface/trl).
15
+
16
+ ## Quick start
17
+
18
+ ```python
19
+ from transformers import pipeline
20
+
21
+ 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?"
22
+ generator = pipeline("text-generation", model="chentianqi/Qwen2.5-1.5B-Open-R1-Distill", device="cuda")
23
+ output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
24
+ print(output["generated_text"])
25
+ ```
26
+
27
+ ## Training procedure
28
+
29
+
30
+
31
+
32
+ This model was trained with SFT.
33
+
34
+ ### Framework versions
35
+
36
+ - TRL: 0.16.0.dev0
37
+ - Transformers: 4.49.0
38
+ - Pytorch: 2.5.1
39
+ - Datasets: 3.2.0
40
+ - Tokenizers: 0.21.1
41
+
42
+ ## Citations
43
+
44
+
45
+
46
+ Cite TRL as:
47
+
48
+ ```bibtex
49
+ @misc{vonwerra2022trl,
50
+ title = {{TRL: Transformer Reinforcement Learning}},
51
+ 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},
52
+ year = 2020,
53
+ journal = {GitHub repository},
54
+ publisher = {GitHub},
55
+ howpublished = {\url{https://github.com/huggingface/trl}}
56
+ }
57
+ ```
all_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "total_flos": 487820711952384.0,
3
+ "train_loss": 0.5798122989597605,
4
+ "train_runtime": 9517.8097,
5
+ "train_samples": 93733,
6
+ "train_samples_per_second": 3.604,
7
+ "train_steps_per_second": 0.028
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.49.0"
14
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "total_flos": 487820711952384.0,
3
+ "train_loss": 0.5798122989597605,
4
+ "train_runtime": 9517.8097,
5
+ "train_samples": 93733,
6
+ "train_samples_per_second": 3.604,
7
+ "train_steps_per_second": 0.028
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,413 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 1.0,
5
+ "eval_steps": 500,
6
+ "global_step": 268,
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.018656716417910446,
13
+ "grad_norm": 1.8347556405877465,
14
+ "learning_rate": 1.785714285714286e-05,
15
+ "loss": 0.8455,
16
+ "step": 5
17
+ },
18
+ {
19
+ "epoch": 0.03731343283582089,
20
+ "grad_norm": 0.8138895515621757,
21
+ "learning_rate": 3.571428571428572e-05,
22
+ "loss": 0.7683,
23
+ "step": 10
24
+ },
25
+ {
26
+ "epoch": 0.055970149253731345,
27
+ "grad_norm": 0.5304912873979699,
28
+ "learning_rate": 4.999827900623038e-05,
29
+ "loss": 0.7025,
30
+ "step": 15
31
+ },
32
+ {
33
+ "epoch": 0.07462686567164178,
34
+ "grad_norm": 0.43348641951391986,
35
+ "learning_rate": 4.993807186343243e-05,
36
+ "loss": 0.6745,
37
+ "step": 20
38
+ },
39
+ {
40
+ "epoch": 0.09328358208955224,
41
+ "grad_norm": 0.44737860611801894,
42
+ "learning_rate": 4.979207812402531e-05,
43
+ "loss": 0.6437,
44
+ "step": 25
45
+ },
46
+ {
47
+ "epoch": 0.11194029850746269,
48
+ "grad_norm": 0.34788482160414036,
49
+ "learning_rate": 4.956085596012407e-05,
50
+ "loss": 0.6365,
51
+ "step": 30
52
+ },
53
+ {
54
+ "epoch": 0.13059701492537312,
55
+ "grad_norm": 0.37612788213843273,
56
+ "learning_rate": 4.924528939432311e-05,
57
+ "loss": 0.6203,
58
+ "step": 35
59
+ },
60
+ {
61
+ "epoch": 0.14925373134328357,
62
+ "grad_norm": 0.30080903467219317,
63
+ "learning_rate": 4.884658491984735e-05,
64
+ "loss": 0.611,
65
+ "step": 40
66
+ },
67
+ {
68
+ "epoch": 0.16791044776119404,
69
+ "grad_norm": 0.2587626020744064,
70
+ "learning_rate": 4.8366266887814235e-05,
71
+ "loss": 0.6117,
72
+ "step": 45
73
+ },
74
+ {
75
+ "epoch": 0.1865671641791045,
76
+ "grad_norm": 0.4346155151035265,
77
+ "learning_rate": 4.780617167924209e-05,
78
+ "loss": 0.5946,
79
+ "step": 50
80
+ },
81
+ {
82
+ "epoch": 0.20522388059701493,
83
+ "grad_norm": 0.35789197328214567,
84
+ "learning_rate": 4.716844068408693e-05,
85
+ "loss": 0.5971,
86
+ "step": 55
87
+ },
88
+ {
89
+ "epoch": 0.22388059701492538,
90
+ "grad_norm": 0.26978493002328224,
91
+ "learning_rate": 4.6455512114150546e-05,
92
+ "loss": 0.5924,
93
+ "step": 60
94
+ },
95
+ {
96
+ "epoch": 0.24253731343283583,
97
+ "grad_norm": 0.3559670356396701,
98
+ "learning_rate": 4.5670111681161296e-05,
99
+ "loss": 0.5832,
100
+ "step": 65
101
+ },
102
+ {
103
+ "epoch": 0.26119402985074625,
104
+ "grad_norm": 0.3741132211101352,
105
+ "learning_rate": 4.481524217566783e-05,
106
+ "loss": 0.5805,
107
+ "step": 70
108
+ },
109
+ {
110
+ "epoch": 0.2798507462686567,
111
+ "grad_norm": 0.6131512648194827,
112
+ "learning_rate": 4.3894171986588217e-05,
113
+ "loss": 0.5803,
114
+ "step": 75
115
+ },
116
+ {
117
+ "epoch": 0.29850746268656714,
118
+ "grad_norm": 0.48316310875225843,
119
+ "learning_rate": 4.29104226053073e-05,
120
+ "loss": 0.5788,
121
+ "step": 80
122
+ },
123
+ {
124
+ "epoch": 0.31716417910447764,
125
+ "grad_norm": 0.35265961474990465,
126
+ "learning_rate": 4.186775516209732e-05,
127
+ "loss": 0.5738,
128
+ "step": 85
129
+ },
130
+ {
131
+ "epoch": 0.3358208955223881,
132
+ "grad_norm": 0.35170242329056867,
133
+ "learning_rate": 4.077015604633669e-05,
134
+ "loss": 0.5762,
135
+ "step": 90
136
+ },
137
+ {
138
+ "epoch": 0.35447761194029853,
139
+ "grad_norm": 0.3319752030097362,
140
+ "learning_rate": 3.962182166550441e-05,
141
+ "loss": 0.5746,
142
+ "step": 95
143
+ },
144
+ {
145
+ "epoch": 0.373134328358209,
146
+ "grad_norm": 0.28806706591519804,
147
+ "learning_rate": 3.8427142401220634e-05,
148
+ "loss": 0.5705,
149
+ "step": 100
150
+ },
151
+ {
152
+ "epoch": 0.3917910447761194,
153
+ "grad_norm": 0.2824496074425936,
154
+ "learning_rate": 3.71906858236735e-05,
155
+ "loss": 0.5668,
156
+ "step": 105
157
+ },
158
+ {
159
+ "epoch": 0.41044776119402987,
160
+ "grad_norm": 0.28224550664809256,
161
+ "learning_rate": 3.591717922860785e-05,
162
+ "loss": 0.574,
163
+ "step": 110
164
+ },
165
+ {
166
+ "epoch": 0.4291044776119403,
167
+ "grad_norm": 0.2614488086229778,
168
+ "learning_rate": 3.46114915636416e-05,
169
+ "loss": 0.5649,
170
+ "step": 115
171
+ },
172
+ {
173
+ "epoch": 0.44776119402985076,
174
+ "grad_norm": 0.3105122853298353,
175
+ "learning_rate": 3.3278614813010034e-05,
176
+ "loss": 0.5659,
177
+ "step": 120
178
+ },
179
+ {
180
+ "epoch": 0.4664179104477612,
181
+ "grad_norm": 0.30904610340823935,
182
+ "learning_rate": 3.1923644911909e-05,
183
+ "loss": 0.5627,
184
+ "step": 125
185
+ },
186
+ {
187
+ "epoch": 0.48507462686567165,
188
+ "grad_norm": 0.2404641182221627,
189
+ "learning_rate": 3.0551762263406576e-05,
190
+ "loss": 0.5615,
191
+ "step": 130
192
+ },
193
+ {
194
+ "epoch": 0.503731343283582,
195
+ "grad_norm": 0.2514924850527194,
196
+ "learning_rate": 2.9168211932412042e-05,
197
+ "loss": 0.5586,
198
+ "step": 135
199
+ },
200
+ {
201
+ "epoch": 0.5223880597014925,
202
+ "grad_norm": 0.21507830724346733,
203
+ "learning_rate": 2.777828359242567e-05,
204
+ "loss": 0.564,
205
+ "step": 140
206
+ },
207
+ {
208
+ "epoch": 0.5410447761194029,
209
+ "grad_norm": 0.234838056524818,
210
+ "learning_rate": 2.6387291301738377e-05,
211
+ "loss": 0.5567,
212
+ "step": 145
213
+ },
214
+ {
215
+ "epoch": 0.5597014925373134,
216
+ "grad_norm": 0.23127993294001392,
217
+ "learning_rate": 2.50005531864019e-05,
218
+ "loss": 0.5545,
219
+ "step": 150
220
+ },
221
+ {
222
+ "epoch": 0.5783582089552238,
223
+ "grad_norm": 0.21437316758602867,
224
+ "learning_rate": 2.362337110764688e-05,
225
+ "loss": 0.5549,
226
+ "step": 155
227
+ },
228
+ {
229
+ "epoch": 0.5970149253731343,
230
+ "grad_norm": 0.19908887535771141,
231
+ "learning_rate": 2.226101039148557e-05,
232
+ "loss": 0.5529,
233
+ "step": 160
234
+ },
235
+ {
236
+ "epoch": 0.6156716417910447,
237
+ "grad_norm": 0.2556247686724649,
238
+ "learning_rate": 2.0918679697998252e-05,
239
+ "loss": 0.5519,
240
+ "step": 165
241
+ },
242
+ {
243
+ "epoch": 0.6343283582089553,
244
+ "grad_norm": 0.23026257493147687,
245
+ "learning_rate": 1.9601511107268255e-05,
246
+ "loss": 0.5523,
247
+ "step": 170
248
+ },
249
+ {
250
+ "epoch": 0.6529850746268657,
251
+ "grad_norm": 0.20786079342807257,
252
+ "learning_rate": 1.8314540498102216e-05,
253
+ "loss": 0.5521,
254
+ "step": 175
255
+ },
256
+ {
257
+ "epoch": 0.6716417910447762,
258
+ "grad_norm": 0.18862181222368476,
259
+ "learning_rate": 1.7062688294552992e-05,
260
+ "loss": 0.5441,
261
+ "step": 180
262
+ },
263
+ {
264
+ "epoch": 0.6902985074626866,
265
+ "grad_norm": 0.1968489941519543,
266
+ "learning_rate": 1.5850740653856096e-05,
267
+ "loss": 0.5475,
268
+ "step": 185
269
+ },
270
+ {
271
+ "epoch": 0.7089552238805971,
272
+ "grad_norm": 0.19127327607250483,
273
+ "learning_rate": 1.4683331167703218e-05,
274
+ "loss": 0.5511,
275
+ "step": 190
276
+ },
277
+ {
278
+ "epoch": 0.7276119402985075,
279
+ "grad_norm": 0.1782083084377943,
280
+ "learning_rate": 1.356492314681356e-05,
281
+ "loss": 0.5539,
282
+ "step": 195
283
+ },
284
+ {
285
+ "epoch": 0.746268656716418,
286
+ "grad_norm": 0.17219697852845983,
287
+ "learning_rate": 1.2499792556533716e-05,
288
+ "loss": 0.5482,
289
+ "step": 200
290
+ },
291
+ {
292
+ "epoch": 0.7649253731343284,
293
+ "grad_norm": 0.18622284000499204,
294
+ "learning_rate": 1.1492011668707753e-05,
295
+ "loss": 0.5457,
296
+ "step": 205
297
+ },
298
+ {
299
+ "epoch": 0.7835820895522388,
300
+ "grad_norm": 0.17736767965673514,
301
+ "learning_rate": 1.0545433492320603e-05,
302
+ "loss": 0.5508,
303
+ "step": 210
304
+ },
305
+ {
306
+ "epoch": 0.8022388059701493,
307
+ "grad_norm": 0.15925309459619932,
308
+ "learning_rate": 9.663677042440537e-06,
309
+ "loss": 0.5451,
310
+ "step": 215
311
+ },
312
+ {
313
+ "epoch": 0.8208955223880597,
314
+ "grad_norm": 0.16712076838059856,
315
+ "learning_rate": 8.850113503781367e-06,
316
+ "loss": 0.5451,
317
+ "step": 220
318
+ },
319
+ {
320
+ "epoch": 0.8395522388059702,
321
+ "grad_norm": 0.14902482359583405,
322
+ "learning_rate": 8.107853341784671e-06,
323
+ "loss": 0.5515,
324
+ "step": 225
325
+ },
326
+ {
327
+ "epoch": 0.8582089552238806,
328
+ "grad_norm": 0.17432109815408722,
329
+ "learning_rate": 7.439734410499752e-06,
330
+ "loss": 0.5478,
331
+ "step": 230
332
+ },
333
+ {
334
+ "epoch": 0.8768656716417911,
335
+ "grad_norm": 0.18977796427900687,
336
+ "learning_rate": 6.848311102728011e-06,
337
+ "loss": 0.548,
338
+ "step": 235
339
+ },
340
+ {
341
+ "epoch": 0.8955223880597015,
342
+ "grad_norm": 0.1779226032502227,
343
+ "learning_rate": 6.335844583913515e-06,
344
+ "loss": 0.5441,
345
+ "step": 240
346
+ },
347
+ {
348
+ "epoch": 0.914179104477612,
349
+ "grad_norm": 0.15085938404473737,
350
+ "learning_rate": 5.904294147118193e-06,
351
+ "loss": 0.5478,
352
+ "step": 245
353
+ },
354
+ {
355
+ "epoch": 0.9328358208955224,
356
+ "grad_norm": 0.14863412008011967,
357
+ "learning_rate": 5.555309722133842e-06,
358
+ "loss": 0.5444,
359
+ "step": 250
360
+ },
361
+ {
362
+ "epoch": 0.9514925373134329,
363
+ "grad_norm": 0.1485398957249496,
364
+ "learning_rate": 5.290225567370509e-06,
365
+ "loss": 0.5405,
366
+ "step": 255
367
+ },
368
+ {
369
+ "epoch": 0.9701492537313433,
370
+ "grad_norm": 0.15494251083627367,
371
+ "learning_rate": 5.110055168638854e-06,
372
+ "loss": 0.5441,
373
+ "step": 260
374
+ },
375
+ {
376
+ "epoch": 0.9888059701492538,
377
+ "grad_norm": 0.14954414034114885,
378
+ "learning_rate": 5.0154873643297575e-06,
379
+ "loss": 0.5479,
380
+ "step": 265
381
+ },
382
+ {
383
+ "epoch": 1.0,
384
+ "step": 268,
385
+ "total_flos": 487820711952384.0,
386
+ "train_loss": 0.5798122989597605,
387
+ "train_runtime": 9517.8097,
388
+ "train_samples_per_second": 3.604,
389
+ "train_steps_per_second": 0.028
390
+ }
391
+ ],
392
+ "logging_steps": 5,
393
+ "max_steps": 268,
394
+ "num_input_tokens_seen": 0,
395
+ "num_train_epochs": 1,
396
+ "save_steps": 100,
397
+ "stateful_callbacks": {
398
+ "TrainerControl": {
399
+ "args": {
400
+ "should_epoch_stop": false,
401
+ "should_evaluate": false,
402
+ "should_log": false,
403
+ "should_save": true,
404
+ "should_training_stop": true
405
+ },
406
+ "attributes": {}
407
+ }
408
+ },
409
+ "total_flos": 487820711952384.0,
410
+ "train_batch_size": 1,
411
+ "trial_name": null,
412
+ "trial_params": null
413
+ }