flyingbugs commited on
Commit
81bc097
·
verified ·
1 Parent(s): dda8383

Model save

Browse files
README.md ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: Qwen/Qwen2.5-Math-7B-Instruct
3
+ library_name: transformers
4
+ model_name: Qwen2.5-Math-7B-LIMO-prune-edge-0.5
5
+ tags:
6
+ - generated_from_trainer
7
+ - trl
8
+ - sft
9
+ licence: license
10
+ ---
11
+
12
+ # Model Card for Qwen2.5-Math-7B-LIMO-prune-edge-0.5
13
+
14
+ This model is a fine-tuned version of [Qwen/Qwen2.5-Math-7B-Instruct](https://huggingface.co/Qwen/Qwen2.5-Math-7B-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="flyingbugs/Qwen2.5-Math-7B-LIMO-prune-edge-0.5", 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/jjh233/huggingface/runs/kiicchuz)
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": 3.538102688384287e+17,
3
+ "train_loss": 1.413003572076559,
4
+ "train_runtime": 2583.9828,
5
+ "train_samples": 817,
6
+ "train_samples_per_second": 0.244,
7
+ "train_steps_per_second": 0.015
8
+ }
generation_config.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 151643,
3
+ "eos_token_id": [
4
+ 151645,
5
+ 151643
6
+ ],
7
+ "pad_token_id": 151643,
8
+ "transformers_version": "4.49.0"
9
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "total_flos": 3.538102688384287e+17,
3
+ "train_loss": 1.413003572076559,
4
+ "train_runtime": 2583.9828,
5
+ "train_samples": 817,
6
+ "train_samples_per_second": 0.244,
7
+ "train_steps_per_second": 0.015
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,322 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 5.0,
5
+ "eval_steps": 500,
6
+ "global_step": 40,
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.125,
13
+ "grad_norm": 56.94092287577408,
14
+ "learning_rate": 1.25e-05,
15
+ "loss": 10.5002,
16
+ "step": 1
17
+ },
18
+ {
19
+ "epoch": 0.25,
20
+ "grad_norm": 55.337587139972584,
21
+ "learning_rate": 2.5e-05,
22
+ "loss": 10.6723,
23
+ "step": 2
24
+ },
25
+ {
26
+ "epoch": 0.375,
27
+ "grad_norm": 96.41112358646679,
28
+ "learning_rate": 3.7500000000000003e-05,
29
+ "loss": 8.4987,
30
+ "step": 3
31
+ },
32
+ {
33
+ "epoch": 0.5,
34
+ "grad_norm": 7.212661079496828,
35
+ "learning_rate": 5e-05,
36
+ "loss": 1.5881,
37
+ "step": 4
38
+ },
39
+ {
40
+ "epoch": 0.625,
41
+ "grad_norm": 79.52129989219452,
42
+ "learning_rate": 4.8611111111111115e-05,
43
+ "loss": 1.4161,
44
+ "step": 5
45
+ },
46
+ {
47
+ "epoch": 0.75,
48
+ "grad_norm": 5.638528950384957,
49
+ "learning_rate": 4.722222222222222e-05,
50
+ "loss": 1.3169,
51
+ "step": 6
52
+ },
53
+ {
54
+ "epoch": 0.875,
55
+ "grad_norm": 3.724084864285414,
56
+ "learning_rate": 4.5833333333333334e-05,
57
+ "loss": 1.1448,
58
+ "step": 7
59
+ },
60
+ {
61
+ "epoch": 1.0,
62
+ "grad_norm": 1.9023689410655398,
63
+ "learning_rate": 4.4444444444444447e-05,
64
+ "loss": 1.0803,
65
+ "step": 8
66
+ },
67
+ {
68
+ "epoch": 1.125,
69
+ "grad_norm": 1.961911531893411,
70
+ "learning_rate": 4.305555555555556e-05,
71
+ "loss": 1.0115,
72
+ "step": 9
73
+ },
74
+ {
75
+ "epoch": 1.25,
76
+ "grad_norm": 1.7376233350994494,
77
+ "learning_rate": 4.166666666666667e-05,
78
+ "loss": 0.9635,
79
+ "step": 10
80
+ },
81
+ {
82
+ "epoch": 1.375,
83
+ "grad_norm": 1.3012833795187553,
84
+ "learning_rate": 4.027777777777778e-05,
85
+ "loss": 0.8767,
86
+ "step": 11
87
+ },
88
+ {
89
+ "epoch": 1.5,
90
+ "grad_norm": 1.1428766168944244,
91
+ "learning_rate": 3.888888888888889e-05,
92
+ "loss": 0.7648,
93
+ "step": 12
94
+ },
95
+ {
96
+ "epoch": 1.625,
97
+ "grad_norm": 0.9249871747052298,
98
+ "learning_rate": 3.7500000000000003e-05,
99
+ "loss": 0.8018,
100
+ "step": 13
101
+ },
102
+ {
103
+ "epoch": 1.75,
104
+ "grad_norm": 0.9222317477611536,
105
+ "learning_rate": 3.611111111111111e-05,
106
+ "loss": 0.7303,
107
+ "step": 14
108
+ },
109
+ {
110
+ "epoch": 1.875,
111
+ "grad_norm": 0.9869030389279764,
112
+ "learning_rate": 3.472222222222222e-05,
113
+ "loss": 0.8559,
114
+ "step": 15
115
+ },
116
+ {
117
+ "epoch": 2.0,
118
+ "grad_norm": 0.7505289808609725,
119
+ "learning_rate": 3.3333333333333335e-05,
120
+ "loss": 0.7473,
121
+ "step": 16
122
+ },
123
+ {
124
+ "epoch": 2.125,
125
+ "grad_norm": 0.6877680430305975,
126
+ "learning_rate": 3.194444444444444e-05,
127
+ "loss": 0.6932,
128
+ "step": 17
129
+ },
130
+ {
131
+ "epoch": 2.25,
132
+ "grad_norm": 0.6489145420320495,
133
+ "learning_rate": 3.055555555555556e-05,
134
+ "loss": 0.6715,
135
+ "step": 18
136
+ },
137
+ {
138
+ "epoch": 2.375,
139
+ "grad_norm": 0.5525985803618135,
140
+ "learning_rate": 2.916666666666667e-05,
141
+ "loss": 0.6487,
142
+ "step": 19
143
+ },
144
+ {
145
+ "epoch": 2.5,
146
+ "grad_norm": 0.48284459313077943,
147
+ "learning_rate": 2.777777777777778e-05,
148
+ "loss": 0.5881,
149
+ "step": 20
150
+ },
151
+ {
152
+ "epoch": 2.625,
153
+ "grad_norm": 0.4922181600547385,
154
+ "learning_rate": 2.6388888888888892e-05,
155
+ "loss": 0.6705,
156
+ "step": 21
157
+ },
158
+ {
159
+ "epoch": 2.75,
160
+ "grad_norm": 0.48437618995002524,
161
+ "learning_rate": 2.5e-05,
162
+ "loss": 0.6984,
163
+ "step": 22
164
+ },
165
+ {
166
+ "epoch": 2.875,
167
+ "grad_norm": 0.4015526748931537,
168
+ "learning_rate": 2.361111111111111e-05,
169
+ "loss": 0.6021,
170
+ "step": 23
171
+ },
172
+ {
173
+ "epoch": 3.0,
174
+ "grad_norm": 0.3765862829569743,
175
+ "learning_rate": 2.2222222222222223e-05,
176
+ "loss": 0.6495,
177
+ "step": 24
178
+ },
179
+ {
180
+ "epoch": 3.125,
181
+ "grad_norm": 0.3724792221112522,
182
+ "learning_rate": 2.0833333333333336e-05,
183
+ "loss": 0.6082,
184
+ "step": 25
185
+ },
186
+ {
187
+ "epoch": 3.25,
188
+ "grad_norm": 0.399419700674504,
189
+ "learning_rate": 1.9444444444444445e-05,
190
+ "loss": 0.5776,
191
+ "step": 26
192
+ },
193
+ {
194
+ "epoch": 3.375,
195
+ "grad_norm": 0.4271036355666931,
196
+ "learning_rate": 1.8055555555555555e-05,
197
+ "loss": 0.4848,
198
+ "step": 27
199
+ },
200
+ {
201
+ "epoch": 3.5,
202
+ "grad_norm": 0.36781128148625003,
203
+ "learning_rate": 1.6666666666666667e-05,
204
+ "loss": 0.5648,
205
+ "step": 28
206
+ },
207
+ {
208
+ "epoch": 3.625,
209
+ "grad_norm": 0.3050256902856378,
210
+ "learning_rate": 1.527777777777778e-05,
211
+ "loss": 0.5301,
212
+ "step": 29
213
+ },
214
+ {
215
+ "epoch": 3.75,
216
+ "grad_norm": 0.34042591766070973,
217
+ "learning_rate": 1.388888888888889e-05,
218
+ "loss": 0.5813,
219
+ "step": 30
220
+ },
221
+ {
222
+ "epoch": 3.875,
223
+ "grad_norm": 0.3056337381942204,
224
+ "learning_rate": 1.25e-05,
225
+ "loss": 0.5843,
226
+ "step": 31
227
+ },
228
+ {
229
+ "epoch": 4.0,
230
+ "grad_norm": 0.3282149138644664,
231
+ "learning_rate": 1.1111111111111112e-05,
232
+ "loss": 0.485,
233
+ "step": 32
234
+ },
235
+ {
236
+ "epoch": 4.125,
237
+ "grad_norm": 0.3586326739916488,
238
+ "learning_rate": 9.722222222222223e-06,
239
+ "loss": 0.4799,
240
+ "step": 33
241
+ },
242
+ {
243
+ "epoch": 4.25,
244
+ "grad_norm": 0.3323864715502126,
245
+ "learning_rate": 8.333333333333334e-06,
246
+ "loss": 0.5,
247
+ "step": 34
248
+ },
249
+ {
250
+ "epoch": 4.375,
251
+ "grad_norm": 0.3160055292851411,
252
+ "learning_rate": 6.944444444444445e-06,
253
+ "loss": 0.5231,
254
+ "step": 35
255
+ },
256
+ {
257
+ "epoch": 4.5,
258
+ "grad_norm": 0.24514408833673965,
259
+ "learning_rate": 5.555555555555556e-06,
260
+ "loss": 0.4615,
261
+ "step": 36
262
+ },
263
+ {
264
+ "epoch": 4.625,
265
+ "grad_norm": 0.23634195926376228,
266
+ "learning_rate": 4.166666666666667e-06,
267
+ "loss": 0.4654,
268
+ "step": 37
269
+ },
270
+ {
271
+ "epoch": 4.75,
272
+ "grad_norm": 0.2831859298508377,
273
+ "learning_rate": 2.777777777777778e-06,
274
+ "loss": 0.5187,
275
+ "step": 38
276
+ },
277
+ {
278
+ "epoch": 4.875,
279
+ "grad_norm": 0.3062832468306899,
280
+ "learning_rate": 1.388888888888889e-06,
281
+ "loss": 0.525,
282
+ "step": 39
283
+ },
284
+ {
285
+ "epoch": 5.0,
286
+ "grad_norm": 0.27572553234384123,
287
+ "learning_rate": 0.0,
288
+ "loss": 0.4395,
289
+ "step": 40
290
+ },
291
+ {
292
+ "epoch": 5.0,
293
+ "step": 40,
294
+ "total_flos": 3.538102688384287e+17,
295
+ "train_loss": 1.413003572076559,
296
+ "train_runtime": 2583.9828,
297
+ "train_samples_per_second": 0.244,
298
+ "train_steps_per_second": 0.015
299
+ }
300
+ ],
301
+ "logging_steps": 1,
302
+ "max_steps": 40,
303
+ "num_input_tokens_seen": 0,
304
+ "num_train_epochs": 5,
305
+ "save_steps": 500,
306
+ "stateful_callbacks": {
307
+ "TrainerControl": {
308
+ "args": {
309
+ "should_epoch_stop": false,
310
+ "should_evaluate": false,
311
+ "should_log": false,
312
+ "should_save": true,
313
+ "should_training_stop": true
314
+ },
315
+ "attributes": {}
316
+ }
317
+ },
318
+ "total_flos": 3.538102688384287e+17,
319
+ "train_batch_size": 1,
320
+ "trial_name": null,
321
+ "trial_params": null
322
+ }