haoyuw commited on
Commit
d5cee02
·
verified ·
1 Parent(s): 79e62fb

Model save

Browse files
README.md ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: Qwen/Qwen2.5-Math-1.5B-Instruct
3
+ library_name: transformers
4
+ model_name: Qwen2.5-1.5B-Math-Instruct-LIMO-Rewrite
5
+ tags:
6
+ - generated_from_trainer
7
+ - trl
8
+ - sft
9
+ licence: license
10
+ ---
11
+
12
+ # Model Card for Qwen2.5-1.5B-Math-Instruct-LIMO-Rewrite
13
+
14
+ This model is a fine-tuned version of [Qwen/Qwen2.5-Math-1.5B-Instruct](https://huggingface.co/Qwen/Qwen2.5-Math-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="haoyuw/Qwen2.5-1.5B-Math-Instruct-LIMO-Rewrite", 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
+
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.dev0
39
+ - Pytorch: 2.5.1
40
+ - Datasets: 3.2.0
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": 7292854468608.0,
3
+ "train_loss": 0.43769917637109756,
4
+ "train_runtime": 1608.1336,
5
+ "train_samples": 817,
6
+ "train_samples_per_second": 4.98,
7
+ "train_steps_per_second": 0.08
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.dev0"
9
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "total_flos": 7292854468608.0,
3
+ "train_loss": 0.43769917637109756,
4
+ "train_runtime": 1608.1336,
5
+ "train_samples": 817,
6
+ "train_samples_per_second": 4.98,
7
+ "train_steps_per_second": 0.08
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,217 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 8.0,
5
+ "eval_steps": 500,
6
+ "global_step": 128,
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.3125,
13
+ "grad_norm": 0.8808200800722694,
14
+ "learning_rate": 1.4285714285714287e-05,
15
+ "loss": 0.7717,
16
+ "step": 5
17
+ },
18
+ {
19
+ "epoch": 0.625,
20
+ "grad_norm": 0.6424087583107628,
21
+ "learning_rate": 1.9972712456184023e-05,
22
+ "loss": 0.6993,
23
+ "step": 10
24
+ },
25
+ {
26
+ "epoch": 0.9375,
27
+ "grad_norm": 0.49179390823096236,
28
+ "learning_rate": 1.9806554096010035e-05,
29
+ "loss": 0.612,
30
+ "step": 15
31
+ },
32
+ {
33
+ "epoch": 1.25,
34
+ "grad_norm": 0.39314245675367754,
35
+ "learning_rate": 1.949218999860784e-05,
36
+ "loss": 0.5742,
37
+ "step": 20
38
+ },
39
+ {
40
+ "epoch": 1.5625,
41
+ "grad_norm": 0.33977687978908905,
42
+ "learning_rate": 1.9034910605880777e-05,
43
+ "loss": 0.5596,
44
+ "step": 25
45
+ },
46
+ {
47
+ "epoch": 1.875,
48
+ "grad_norm": 0.33990018269011807,
49
+ "learning_rate": 1.844241148510516e-05,
50
+ "loss": 0.5367,
51
+ "step": 30
52
+ },
53
+ {
54
+ "epoch": 2.1875,
55
+ "grad_norm": 0.29533709326986796,
56
+ "learning_rate": 1.772466382002032e-05,
57
+ "loss": 0.4949,
58
+ "step": 35
59
+ },
60
+ {
61
+ "epoch": 2.5,
62
+ "grad_norm": 0.3052972651069993,
63
+ "learning_rate": 1.6893746605507567e-05,
64
+ "loss": 0.4741,
65
+ "step": 40
66
+ },
67
+ {
68
+ "epoch": 2.8125,
69
+ "grad_norm": 0.32399627190813224,
70
+ "learning_rate": 1.5963643369858436e-05,
71
+ "loss": 0.473,
72
+ "step": 45
73
+ },
74
+ {
75
+ "epoch": 3.125,
76
+ "grad_norm": 0.27191378500637653,
77
+ "learning_rate": 1.4950006845598604e-05,
78
+ "loss": 0.4482,
79
+ "step": 50
80
+ },
81
+ {
82
+ "epoch": 3.4375,
83
+ "grad_norm": 0.27742319543614863,
84
+ "learning_rate": 1.3869895549228569e-05,
85
+ "loss": 0.4272,
86
+ "step": 55
87
+ },
88
+ {
89
+ "epoch": 3.75,
90
+ "grad_norm": 0.28815783751316193,
91
+ "learning_rate": 1.2741486702987798e-05,
92
+ "loss": 0.4127,
93
+ "step": 60
94
+ },
95
+ {
96
+ "epoch": 4.0625,
97
+ "grad_norm": 0.2789053978476572,
98
+ "learning_rate": 1.1583770329889687e-05,
99
+ "loss": 0.4215,
100
+ "step": 65
101
+ },
102
+ {
103
+ "epoch": 4.375,
104
+ "grad_norm": 0.28175187430012255,
105
+ "learning_rate": 1.0416229670110314e-05,
106
+ "loss": 0.3832,
107
+ "step": 70
108
+ },
109
+ {
110
+ "epoch": 4.6875,
111
+ "grad_norm": 0.27942611976119214,
112
+ "learning_rate": 9.258513297012203e-06,
113
+ "loss": 0.3944,
114
+ "step": 75
115
+ },
116
+ {
117
+ "epoch": 5.0,
118
+ "grad_norm": 0.2924823295694309,
119
+ "learning_rate": 8.130104450771434e-06,
120
+ "loss": 0.3677,
121
+ "step": 80
122
+ },
123
+ {
124
+ "epoch": 5.3125,
125
+ "grad_norm": 0.27686432129420685,
126
+ "learning_rate": 7.0499931544014e-06,
127
+ "loss": 0.359,
128
+ "step": 85
129
+ },
130
+ {
131
+ "epoch": 5.625,
132
+ "grad_norm": 0.28664891133912035,
133
+ "learning_rate": 6.036356630141565e-06,
134
+ "loss": 0.3427,
135
+ "step": 90
136
+ },
137
+ {
138
+ "epoch": 5.9375,
139
+ "grad_norm": 0.29664153422550393,
140
+ "learning_rate": 5.106253394492435e-06,
141
+ "loss": 0.3491,
142
+ "step": 95
143
+ },
144
+ {
145
+ "epoch": 6.25,
146
+ "grad_norm": 0.3194425230255657,
147
+ "learning_rate": 4.275336179979683e-06,
148
+ "loss": 0.3324,
149
+ "step": 100
150
+ },
151
+ {
152
+ "epoch": 6.5625,
153
+ "grad_norm": 0.286323915567118,
154
+ "learning_rate": 3.557588514894843e-06,
155
+ "loss": 0.3379,
156
+ "step": 105
157
+ },
158
+ {
159
+ "epoch": 6.875,
160
+ "grad_norm": 0.2971987909492236,
161
+ "learning_rate": 2.965089394119227e-06,
162
+ "loss": 0.3127,
163
+ "step": 110
164
+ },
165
+ {
166
+ "epoch": 7.1875,
167
+ "grad_norm": 0.2892327179501842,
168
+ "learning_rate": 2.507810001392163e-06,
169
+ "loss": 0.3018,
170
+ "step": 115
171
+ },
172
+ {
173
+ "epoch": 7.5,
174
+ "grad_norm": 0.2896481596251917,
175
+ "learning_rate": 2.1934459039899666e-06,
176
+ "loss": 0.3163,
177
+ "step": 120
178
+ },
179
+ {
180
+ "epoch": 7.8125,
181
+ "grad_norm": 0.29159351077499984,
182
+ "learning_rate": 2.02728754381598e-06,
183
+ "loss": 0.3023,
184
+ "step": 125
185
+ },
186
+ {
187
+ "epoch": 8.0,
188
+ "step": 128,
189
+ "total_flos": 7292854468608.0,
190
+ "train_loss": 0.43769917637109756,
191
+ "train_runtime": 1608.1336,
192
+ "train_samples_per_second": 4.98,
193
+ "train_steps_per_second": 0.08
194
+ }
195
+ ],
196
+ "logging_steps": 5,
197
+ "max_steps": 128,
198
+ "num_input_tokens_seen": 0,
199
+ "num_train_epochs": 8,
200
+ "save_steps": 200,
201
+ "stateful_callbacks": {
202
+ "TrainerControl": {
203
+ "args": {
204
+ "should_epoch_stop": false,
205
+ "should_evaluate": false,
206
+ "should_log": false,
207
+ "should_save": true,
208
+ "should_training_stop": true
209
+ },
210
+ "attributes": {}
211
+ }
212
+ },
213
+ "total_flos": 7292854468608.0,
214
+ "train_batch_size": 8,
215
+ "trial_name": null,
216
+ "trial_params": null
217
+ }