flyingbugs commited on
Commit
b8a7bc1
·
verified ·
1 Parent(s): 9a70fb2

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-32b
5
+ tags:
6
+ - generated_from_trainer
7
+ - trl
8
+ - sft
9
+ licence: license
10
+ ---
11
+
12
+ # Model Card for Qwen2.5-Math-7B-limo-32b
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-32b", 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/krfigq0z)
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+cu121
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": 2.405963155911475e+16,
3
+ "train_loss": 1.1475475907325745,
4
+ "train_runtime": 2093.4116,
5
+ "train_samples": 817,
6
+ "train_samples_per_second": 0.279,
7
+ "train_steps_per_second": 0.017
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": 2.405963155911475e+16,
3
+ "train_loss": 1.1475475907325745,
4
+ "train_runtime": 2093.4116,
5
+ "train_samples": 817,
6
+ "train_samples_per_second": 0.279,
7
+ "train_steps_per_second": 0.017
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,287 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 4.4,
5
+ "eval_steps": 500,
6
+ "global_step": 35,
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.13333333333333333,
13
+ "grad_norm": 61.002196119963415,
14
+ "learning_rate": 1.25e-05,
15
+ "loss": 9.6521,
16
+ "step": 1
17
+ },
18
+ {
19
+ "epoch": 0.26666666666666666,
20
+ "grad_norm": 59.68197006424668,
21
+ "learning_rate": 2.5e-05,
22
+ "loss": 10.4754,
23
+ "step": 2
24
+ },
25
+ {
26
+ "epoch": 0.4,
27
+ "grad_norm": 115.28866439806573,
28
+ "learning_rate": 3.7500000000000003e-05,
29
+ "loss": 7.9276,
30
+ "step": 3
31
+ },
32
+ {
33
+ "epoch": 0.5333333333333333,
34
+ "grad_norm": 5.026604488593246,
35
+ "learning_rate": 5e-05,
36
+ "loss": 1.0091,
37
+ "step": 4
38
+ },
39
+ {
40
+ "epoch": 0.6666666666666666,
41
+ "grad_norm": 18.284557987546222,
42
+ "learning_rate": 4.8387096774193554e-05,
43
+ "loss": 0.821,
44
+ "step": 5
45
+ },
46
+ {
47
+ "epoch": 0.8,
48
+ "grad_norm": 2.335241273848215,
49
+ "learning_rate": 4.67741935483871e-05,
50
+ "loss": 0.6936,
51
+ "step": 6
52
+ },
53
+ {
54
+ "epoch": 0.9333333333333333,
55
+ "grad_norm": 1.5610677709465839,
56
+ "learning_rate": 4.516129032258064e-05,
57
+ "loss": 0.641,
58
+ "step": 7
59
+ },
60
+ {
61
+ "epoch": 1.0,
62
+ "grad_norm": 1.5610677709465839,
63
+ "learning_rate": 4.3548387096774194e-05,
64
+ "loss": 0.5921,
65
+ "step": 8
66
+ },
67
+ {
68
+ "epoch": 1.1333333333333333,
69
+ "grad_norm": 1.8146294678665253,
70
+ "learning_rate": 4.1935483870967746e-05,
71
+ "loss": 0.5122,
72
+ "step": 9
73
+ },
74
+ {
75
+ "epoch": 1.2666666666666666,
76
+ "grad_norm": 0.830943575869942,
77
+ "learning_rate": 4.032258064516129e-05,
78
+ "loss": 0.4664,
79
+ "step": 10
80
+ },
81
+ {
82
+ "epoch": 1.4,
83
+ "grad_norm": 1.0646461102885592,
84
+ "learning_rate": 3.870967741935484e-05,
85
+ "loss": 0.4444,
86
+ "step": 11
87
+ },
88
+ {
89
+ "epoch": 1.5333333333333332,
90
+ "grad_norm": 0.7667627389601128,
91
+ "learning_rate": 3.7096774193548386e-05,
92
+ "loss": 0.4152,
93
+ "step": 12
94
+ },
95
+ {
96
+ "epoch": 1.6666666666666665,
97
+ "grad_norm": 0.6897014886908456,
98
+ "learning_rate": 3.548387096774194e-05,
99
+ "loss": 0.4101,
100
+ "step": 13
101
+ },
102
+ {
103
+ "epoch": 1.8,
104
+ "grad_norm": 0.6554819229001853,
105
+ "learning_rate": 3.387096774193548e-05,
106
+ "loss": 0.4189,
107
+ "step": 14
108
+ },
109
+ {
110
+ "epoch": 1.9333333333333333,
111
+ "grad_norm": 0.6643280194216655,
112
+ "learning_rate": 3.2258064516129034e-05,
113
+ "loss": 0.3616,
114
+ "step": 15
115
+ },
116
+ {
117
+ "epoch": 2.0,
118
+ "grad_norm": 0.8920680798592996,
119
+ "learning_rate": 3.0645161290322585e-05,
120
+ "loss": 0.3763,
121
+ "step": 16
122
+ },
123
+ {
124
+ "epoch": 2.1333333333333333,
125
+ "grad_norm": 0.43437514697907426,
126
+ "learning_rate": 2.9032258064516133e-05,
127
+ "loss": 0.3115,
128
+ "step": 17
129
+ },
130
+ {
131
+ "epoch": 2.2666666666666666,
132
+ "grad_norm": 0.5348299514481543,
133
+ "learning_rate": 2.7419354838709678e-05,
134
+ "loss": 0.3471,
135
+ "step": 18
136
+ },
137
+ {
138
+ "epoch": 2.4,
139
+ "grad_norm": 0.39798671239558964,
140
+ "learning_rate": 2.5806451612903226e-05,
141
+ "loss": 0.3101,
142
+ "step": 19
143
+ },
144
+ {
145
+ "epoch": 2.533333333333333,
146
+ "grad_norm": 0.3233409204244813,
147
+ "learning_rate": 2.4193548387096777e-05,
148
+ "loss": 0.3004,
149
+ "step": 20
150
+ },
151
+ {
152
+ "epoch": 2.6666666666666665,
153
+ "grad_norm": 0.3468443429436706,
154
+ "learning_rate": 2.258064516129032e-05,
155
+ "loss": 0.2864,
156
+ "step": 21
157
+ },
158
+ {
159
+ "epoch": 2.8,
160
+ "grad_norm": 0.353852322346739,
161
+ "learning_rate": 2.0967741935483873e-05,
162
+ "loss": 0.3033,
163
+ "step": 22
164
+ },
165
+ {
166
+ "epoch": 2.9333333333333336,
167
+ "grad_norm": 0.34827318614267444,
168
+ "learning_rate": 1.935483870967742e-05,
169
+ "loss": 0.2909,
170
+ "step": 23
171
+ },
172
+ {
173
+ "epoch": 3.0,
174
+ "grad_norm": 0.34827318614267444,
175
+ "learning_rate": 1.774193548387097e-05,
176
+ "loss": 0.2396,
177
+ "step": 24
178
+ },
179
+ {
180
+ "epoch": 3.1333333333333333,
181
+ "grad_norm": 0.5424513562301403,
182
+ "learning_rate": 1.6129032258064517e-05,
183
+ "loss": 0.2729,
184
+ "step": 25
185
+ },
186
+ {
187
+ "epoch": 3.2666666666666666,
188
+ "grad_norm": 0.22767648801657112,
189
+ "learning_rate": 1.4516129032258066e-05,
190
+ "loss": 0.2537,
191
+ "step": 26
192
+ },
193
+ {
194
+ "epoch": 3.4,
195
+ "grad_norm": 0.2983041747382757,
196
+ "learning_rate": 1.2903225806451613e-05,
197
+ "loss": 0.2441,
198
+ "step": 27
199
+ },
200
+ {
201
+ "epoch": 3.533333333333333,
202
+ "grad_norm": 0.3182178332656054,
203
+ "learning_rate": 1.129032258064516e-05,
204
+ "loss": 0.247,
205
+ "step": 28
206
+ },
207
+ {
208
+ "epoch": 3.6666666666666665,
209
+ "grad_norm": 0.22393185039590235,
210
+ "learning_rate": 9.67741935483871e-06,
211
+ "loss": 0.2305,
212
+ "step": 29
213
+ },
214
+ {
215
+ "epoch": 3.8,
216
+ "grad_norm": 0.2338202458675513,
217
+ "learning_rate": 8.064516129032258e-06,
218
+ "loss": 0.2154,
219
+ "step": 30
220
+ },
221
+ {
222
+ "epoch": 3.9333333333333336,
223
+ "grad_norm": 0.219474134538978,
224
+ "learning_rate": 6.451612903225806e-06,
225
+ "loss": 0.2298,
226
+ "step": 31
227
+ },
228
+ {
229
+ "epoch": 4.0,
230
+ "grad_norm": 0.3171234500428613,
231
+ "learning_rate": 4.838709677419355e-06,
232
+ "loss": 0.2251,
233
+ "step": 32
234
+ },
235
+ {
236
+ "epoch": 4.133333333333334,
237
+ "grad_norm": 0.19082869700096614,
238
+ "learning_rate": 3.225806451612903e-06,
239
+ "loss": 0.2178,
240
+ "step": 33
241
+ },
242
+ {
243
+ "epoch": 4.266666666666667,
244
+ "grad_norm": 0.2368468460236031,
245
+ "learning_rate": 1.6129032258064516e-06,
246
+ "loss": 0.2157,
247
+ "step": 34
248
+ },
249
+ {
250
+ "epoch": 4.4,
251
+ "grad_norm": 0.1873214549049323,
252
+ "learning_rate": 0.0,
253
+ "loss": 0.2057,
254
+ "step": 35
255
+ },
256
+ {
257
+ "epoch": 4.4,
258
+ "step": 35,
259
+ "total_flos": 2.405963155911475e+16,
260
+ "train_loss": 1.1475475907325745,
261
+ "train_runtime": 2093.4116,
262
+ "train_samples_per_second": 0.279,
263
+ "train_steps_per_second": 0.017
264
+ }
265
+ ],
266
+ "logging_steps": 1,
267
+ "max_steps": 35,
268
+ "num_input_tokens_seen": 0,
269
+ "num_train_epochs": 5,
270
+ "save_steps": 500,
271
+ "stateful_callbacks": {
272
+ "TrainerControl": {
273
+ "args": {
274
+ "should_epoch_stop": false,
275
+ "should_evaluate": false,
276
+ "should_log": false,
277
+ "should_save": true,
278
+ "should_training_stop": true
279
+ },
280
+ "attributes": {}
281
+ }
282
+ },
283
+ "total_flos": 2.405963155911475e+16,
284
+ "train_batch_size": 1,
285
+ "trial_name": null,
286
+ "trial_params": null
287
+ }