XiaoJie88 commited on
Commit
2a9ff17
·
verified ·
1 Parent(s): 11933ad

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="XiaoJie88/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/gaoxiaojie632-orient-profit-grand-beijing-technology-co-ltd-/huggingface/runs/z3enff6i)
31
+
32
+
33
+ This model was trained with SFT.
34
+
35
+ ### Framework versions
36
+
37
+ - TRL: 0.16.0.dev0
38
+ - Transformers: 4.49.0
39
+ - Pytorch: 2.5.1
40
+ - Datasets: 3.3.2
41
+ - Tokenizers: 0.21.0
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é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": 77096571633664.0,
3
+ "train_loss": 0.7200509982950547,
4
+ "train_runtime": 16045.7979,
5
+ "train_samples": 16710,
6
+ "train_samples_per_second": 0.34,
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.49.0"
14
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "total_flos": 77096571633664.0,
3
+ "train_loss": 0.7200509982950547,
4
+ "train_runtime": 16045.7979,
5
+ "train_samples": 16710,
6
+ "train_samples_per_second": 0.34,
7
+ "train_steps_per_second": 0.011
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,280 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 0.9959721713658001,
5
+ "eval_steps": 500,
6
+ "global_step": 170,
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.02929329915781765,
13
+ "grad_norm": 1.6078954935073853,
14
+ "learning_rate": 2.777777777777778e-05,
15
+ "loss": 0.9551,
16
+ "step": 5
17
+ },
18
+ {
19
+ "epoch": 0.0585865983156353,
20
+ "grad_norm": 1.1429349184036255,
21
+ "learning_rate": 4.9995716618706634e-05,
22
+ "loss": 0.9029,
23
+ "step": 10
24
+ },
25
+ {
26
+ "epoch": 0.08787989747345294,
27
+ "grad_norm": 0.7431623935699463,
28
+ "learning_rate": 4.9845969445888354e-05,
29
+ "loss": 0.7873,
30
+ "step": 15
31
+ },
32
+ {
33
+ "epoch": 0.1171731966312706,
34
+ "grad_norm": 0.5352614521980286,
35
+ "learning_rate": 4.948368129547296e-05,
36
+ "loss": 0.7782,
37
+ "step": 20
38
+ },
39
+ {
40
+ "epoch": 0.14646649578908824,
41
+ "grad_norm": 0.599611759185791,
42
+ "learning_rate": 4.891229802725401e-05,
43
+ "loss": 0.7671,
44
+ "step": 25
45
+ },
46
+ {
47
+ "epoch": 0.17575979494690588,
48
+ "grad_norm": 0.5661498308181763,
49
+ "learning_rate": 4.8137254283872696e-05,
50
+ "loss": 0.7371,
51
+ "step": 30
52
+ },
53
+ {
54
+ "epoch": 0.20505309410472355,
55
+ "grad_norm": 0.4830688238143921,
56
+ "learning_rate": 4.7165921799873716e-05,
57
+ "loss": 0.7424,
58
+ "step": 35
59
+ },
60
+ {
61
+ "epoch": 0.2343463932625412,
62
+ "grad_norm": 0.4806412160396576,
63
+ "learning_rate": 4.6007539286346375e-05,
64
+ "loss": 0.7218,
65
+ "step": 40
66
+ },
67
+ {
68
+ "epoch": 0.26363969242035884,
69
+ "grad_norm": 0.43145492672920227,
70
+ "learning_rate": 4.467312455804482e-05,
71
+ "loss": 0.729,
72
+ "step": 45
73
+ },
74
+ {
75
+ "epoch": 0.2929329915781765,
76
+ "grad_norm": 0.4414162337779999,
77
+ "learning_rate": 4.317536973877955e-05,
78
+ "loss": 0.7322,
79
+ "step": 50
80
+ },
81
+ {
82
+ "epoch": 0.3222262907359941,
83
+ "grad_norm": 0.6285475492477417,
84
+ "learning_rate": 4.1528520541821506e-05,
85
+ "loss": 0.7152,
86
+ "step": 55
87
+ },
88
+ {
89
+ "epoch": 0.35151958989381177,
90
+ "grad_norm": 0.5875662565231323,
91
+ "learning_rate": 3.974824077352845e-05,
92
+ "loss": 0.744,
93
+ "step": 60
94
+ },
95
+ {
96
+ "epoch": 0.38081288905162947,
97
+ "grad_norm": 0.5579010844230652,
98
+ "learning_rate": 3.785146334895093e-05,
99
+ "loss": 0.715,
100
+ "step": 65
101
+ },
102
+ {
103
+ "epoch": 0.4101061882094471,
104
+ "grad_norm": 0.5400099754333496,
105
+ "learning_rate": 3.58562292364649e-05,
106
+ "loss": 0.7322,
107
+ "step": 70
108
+ },
109
+ {
110
+ "epoch": 0.43939948736726475,
111
+ "grad_norm": 0.43588295578956604,
112
+ "learning_rate": 3.378151586328963e-05,
113
+ "loss": 0.7098,
114
+ "step": 75
115
+ },
116
+ {
117
+ "epoch": 0.4686927865250824,
118
+ "grad_norm": 0.42549237608909607,
119
+ "learning_rate": 3.164705661399079e-05,
120
+ "loss": 0.7227,
121
+ "step": 80
122
+ },
123
+ {
124
+ "epoch": 0.49798608568290004,
125
+ "grad_norm": 0.4135156273841858,
126
+ "learning_rate": 2.947315313878701e-05,
127
+ "loss": 0.6879,
128
+ "step": 85
129
+ },
130
+ {
131
+ "epoch": 0.5272793848407177,
132
+ "grad_norm": 0.4909493029117584,
133
+ "learning_rate": 2.7280482256866697e-05,
134
+ "loss": 0.6863,
135
+ "step": 90
136
+ },
137
+ {
138
+ "epoch": 0.5565726839985353,
139
+ "grad_norm": 0.44555437564849854,
140
+ "learning_rate": 2.508989929133051e-05,
141
+ "loss": 0.6977,
142
+ "step": 95
143
+ },
144
+ {
145
+ "epoch": 0.585865983156353,
146
+ "grad_norm": 0.4100770056247711,
147
+ "learning_rate": 2.2922239706315745e-05,
148
+ "loss": 0.7202,
149
+ "step": 100
150
+ },
151
+ {
152
+ "epoch": 0.6151592823141706,
153
+ "grad_norm": 0.44192320108413696,
154
+ "learning_rate": 2.079812093300668e-05,
155
+ "loss": 0.6974,
156
+ "step": 105
157
+ },
158
+ {
159
+ "epoch": 0.6444525814719883,
160
+ "grad_norm": 0.4109411835670471,
161
+ "learning_rate": 1.8737746269439006e-05,
162
+ "loss": 0.6709,
163
+ "step": 110
164
+ },
165
+ {
166
+ "epoch": 0.6737458806298059,
167
+ "grad_norm": 0.3698427975177765,
168
+ "learning_rate": 1.6760712719281375e-05,
169
+ "loss": 0.6868,
170
+ "step": 115
171
+ },
172
+ {
173
+ "epoch": 0.7030391797876235,
174
+ "grad_norm": 0.3567708730697632,
175
+ "learning_rate": 1.4885824597312362e-05,
176
+ "loss": 0.6767,
177
+ "step": 120
178
+ },
179
+ {
180
+ "epoch": 0.7323324789454412,
181
+ "grad_norm": 0.37050729990005493,
182
+ "learning_rate": 1.313091467446158e-05,
183
+ "loss": 0.6788,
184
+ "step": 125
185
+ },
186
+ {
187
+ "epoch": 0.7616257781032589,
188
+ "grad_norm": 0.35710033774375916,
189
+ "learning_rate": 1.1512674563572253e-05,
190
+ "loss": 0.6797,
191
+ "step": 130
192
+ },
193
+ {
194
+ "epoch": 0.7909190772610766,
195
+ "grad_norm": 0.328642874956131,
196
+ "learning_rate": 1.0046495959150554e-05,
197
+ "loss": 0.6554,
198
+ "step": 135
199
+ },
200
+ {
201
+ "epoch": 0.8202123764188942,
202
+ "grad_norm": 0.3246113359928131,
203
+ "learning_rate": 8.746324241130455e-06,
204
+ "loss": 0.6895,
205
+ "step": 140
206
+ },
207
+ {
208
+ "epoch": 0.8495056755767119,
209
+ "grad_norm": 0.3387470543384552,
210
+ "learning_rate": 7.624525835084185e-06,
211
+ "loss": 0.6864,
212
+ "step": 145
213
+ },
214
+ {
215
+ "epoch": 0.8787989747345295,
216
+ "grad_norm": 0.34192147850990295,
217
+ "learning_rate": 6.691770590465606e-06,
218
+ "loss": 0.6718,
219
+ "step": 150
220
+ },
221
+ {
222
+ "epoch": 0.9080922738923471,
223
+ "grad_norm": 0.3072430491447449,
224
+ "learning_rate": 5.95693029563144e-06,
225
+ "loss": 0.673,
226
+ "step": 155
227
+ },
228
+ {
229
+ "epoch": 0.9373855730501648,
230
+ "grad_norm": 0.32493317127227783,
231
+ "learning_rate": 5.426994294902611e-06,
232
+ "loss": 0.6767,
233
+ "step": 160
234
+ },
235
+ {
236
+ "epoch": 0.9666788722079824,
237
+ "grad_norm": 0.32937249541282654,
238
+ "learning_rate": 5.10700301026355e-06,
239
+ "loss": 0.6815,
240
+ "step": 165
241
+ },
242
+ {
243
+ "epoch": 0.9959721713658001,
244
+ "grad_norm": 0.3123301863670349,
245
+ "learning_rate": 5e-06,
246
+ "loss": 0.6732,
247
+ "step": 170
248
+ },
249
+ {
250
+ "epoch": 0.9959721713658001,
251
+ "step": 170,
252
+ "total_flos": 77096571633664.0,
253
+ "train_loss": 0.7200509982950547,
254
+ "train_runtime": 16045.7979,
255
+ "train_samples_per_second": 0.34,
256
+ "train_steps_per_second": 0.011
257
+ }
258
+ ],
259
+ "logging_steps": 5,
260
+ "max_steps": 170,
261
+ "num_input_tokens_seen": 0,
262
+ "num_train_epochs": 1,
263
+ "save_steps": 100,
264
+ "stateful_callbacks": {
265
+ "TrainerControl": {
266
+ "args": {
267
+ "should_epoch_stop": false,
268
+ "should_evaluate": false,
269
+ "should_log": false,
270
+ "should_save": true,
271
+ "should_training_stop": true
272
+ },
273
+ "attributes": {}
274
+ }
275
+ },
276
+ "total_flos": 77096571633664.0,
277
+ "train_batch_size": 1,
278
+ "trial_name": null,
279
+ "trial_params": null
280
+ }