AdAstraAbyssoque commited on
Commit
cd9bcf7
·
verified ·
1 Parent(s): 67ea18f

Model save

Browse files
README.md ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ model_name: MCP-Qwen2.5-1.5B-Open-R1-GRPO
4
+ tags:
5
+ - generated_from_trainer
6
+ - trl
7
+ - grpo
8
+ licence: license
9
+ ---
10
+
11
+ # Model Card for MCP-Qwen2.5-1.5B-Open-R1-GRPO
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="AdAstraAbyssoque/MCP-Qwen2.5-1.5B-Open-R1-GRPO", 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
+ [<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/bowen_liu-hkust/huggingface/runs/uce3tlfn)
30
+
31
+
32
+ This model was trained with GRPO, a method introduced in [DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models](https://huggingface.co/papers/2402.03300).
33
+
34
+ ### Framework versions
35
+
36
+ - TRL: 0.16.0.dev0
37
+ - Transformers: 4.49.0
38
+ - Pytorch: 2.5.1
39
+ - Datasets: 3.3.2
40
+ - Tokenizers: 0.21.0
41
+
42
+ ## Citations
43
+
44
+ Cite GRPO as:
45
+
46
+ ```bibtex
47
+ @article{zhihong2024deepseekmath,
48
+ title = {{DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models}},
49
+ author = {Zhihong Shao and Peiyi Wang and Qihao Zhu and Runxin Xu and Junxiao Song and Mingchuan Zhang and Y. K. Li and Y. Wu and Daya Guo},
50
+ year = 2024,
51
+ eprint = {arXiv:2402.03300},
52
+ }
53
+
54
+ ```
55
+
56
+ Cite TRL as:
57
+
58
+ ```bibtex
59
+ @misc{vonwerra2022trl,
60
+ title = {{TRL: Transformer Reinforcement Learning}},
61
+ 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},
62
+ year = 2020,
63
+ journal = {GitHub repository},
64
+ publisher = {GitHub},
65
+ howpublished = {\url{https://github.com/huggingface/trl}}
66
+ }
67
+ ```
all_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "total_flos": 0.0,
3
+ "train_loss": -0.0018907431845686265,
4
+ "train_runtime": 2665.9182,
5
+ "train_samples": 400,
6
+ "train_samples_per_second": 0.15,
7
+ "train_steps_per_second": 0.005
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": 0.0,
3
+ "train_loss": -0.0018907431845686265,
4
+ "train_runtime": 2665.9182,
5
+ "train_samples": 400,
6
+ "train_samples_per_second": 0.15,
7
+ "train_steps_per_second": 0.005
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,238 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 0.9655172413793104,
5
+ "eval_steps": 500,
6
+ "global_step": 14,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "clip_ratio": 0.0,
13
+ "completion_length": 396.88172149658203,
14
+ "epoch": 0.06896551724137931,
15
+ "grad_norm": 0.3486388921737671,
16
+ "kl": 0.0,
17
+ "learning_rate": 1e-05,
18
+ "loss": -0.0087,
19
+ "reward": 0.337053582072258,
20
+ "reward_std": 0.7216125279664993,
21
+ "rewards/<lambda>": 0.3169643059372902,
22
+ "rewards/format_reward": 0.020089286845177412,
23
+ "step": 1
24
+ },
25
+ {
26
+ "clip_ratio": 0.0,
27
+ "completion_length": 402.25001525878906,
28
+ "epoch": 0.13793103448275862,
29
+ "grad_norm": 0.31598225235939026,
30
+ "kl": 0.0,
31
+ "learning_rate": 2e-05,
32
+ "loss": -0.0083,
33
+ "reward": 0.3638393059372902,
34
+ "reward_std": 0.7311068773269653,
35
+ "rewards/<lambda>": 0.3526785895228386,
36
+ "rewards/format_reward": 0.011160714784637094,
37
+ "step": 2
38
+ },
39
+ {
40
+ "clip_ratio": 0.0,
41
+ "completion_length": 401.2143020629883,
42
+ "epoch": 0.20689655172413793,
43
+ "grad_norm": 0.3833157420158386,
44
+ "kl": 0.008453369140625,
45
+ "learning_rate": 1.9659258262890683e-05,
46
+ "loss": 0.0091,
47
+ "reward": 0.3660714477300644,
48
+ "reward_std": 0.700179249048233,
49
+ "rewards/<lambda>": 0.3392857238650322,
50
+ "rewards/format_reward": 0.026785716181620955,
51
+ "step": 3
52
+ },
53
+ {
54
+ "clip_ratio": 0.0,
55
+ "completion_length": 300.3839416503906,
56
+ "epoch": 0.27586206896551724,
57
+ "grad_norm": 131.17250061035156,
58
+ "kl": 1.0369873046875,
59
+ "learning_rate": 1.866025403784439e-05,
60
+ "loss": 0.0823,
61
+ "reward": 0.486607164144516,
62
+ "reward_std": 0.8625286668539047,
63
+ "rewards/<lambda>": 0.4508928880095482,
64
+ "rewards/format_reward": 0.035714288242161274,
65
+ "step": 4
66
+ },
67
+ {
68
+ "clip_ratio": 0.0,
69
+ "completion_length": 373.6428680419922,
70
+ "epoch": 0.3448275862068966,
71
+ "grad_norm": 3.0509426593780518,
72
+ "kl": 0.2314453125,
73
+ "learning_rate": 1.7071067811865477e-05,
74
+ "loss": -0.0147,
75
+ "reward": 0.6294643133878708,
76
+ "reward_std": 0.9069008827209473,
77
+ "rewards/<lambda>": 0.5178571566939354,
78
+ "rewards/format_reward": 0.11160714738070965,
79
+ "step": 5
80
+ },
81
+ {
82
+ "clip_ratio": 0.0,
83
+ "completion_length": 426.9553756713867,
84
+ "epoch": 0.41379310344827586,
85
+ "grad_norm": 4.6992268562316895,
86
+ "kl": 0.201904296875,
87
+ "learning_rate": 1.5000000000000002e-05,
88
+ "loss": 0.0026,
89
+ "reward": 0.558035746216774,
90
+ "reward_std": 0.906622901558876,
91
+ "rewards/<lambda>": 0.5178571566939354,
92
+ "rewards/format_reward": 0.0401785746216774,
93
+ "step": 6
94
+ },
95
+ {
96
+ "clip_ratio": 0.0,
97
+ "completion_length": 455.0915298461914,
98
+ "epoch": 0.4827586206896552,
99
+ "grad_norm": 0.3951745331287384,
100
+ "kl": 0.177734375,
101
+ "learning_rate": 1.2588190451025209e-05,
102
+ "loss": 0.001,
103
+ "reward": 0.4508928805589676,
104
+ "reward_std": 0.8413252383470535,
105
+ "rewards/<lambda>": 0.4508928805589676,
106
+ "rewards/format_reward": 0.0,
107
+ "step": 7
108
+ },
109
+ {
110
+ "clip_ratio": 0.0,
111
+ "completion_length": 450.3794860839844,
112
+ "epoch": 0.5517241379310345,
113
+ "grad_norm": 0.369406521320343,
114
+ "kl": 0.164306640625,
115
+ "learning_rate": 1e-05,
116
+ "loss": 0.0424,
117
+ "reward": 0.500000037252903,
118
+ "reward_std": 0.8601988106966019,
119
+ "rewards/<lambda>": 0.500000037252903,
120
+ "rewards/format_reward": 0.0,
121
+ "step": 8
122
+ },
123
+ {
124
+ "clip_ratio": 0.0,
125
+ "completion_length": 423.6205596923828,
126
+ "epoch": 0.6206896551724138,
127
+ "grad_norm": 0.39313390851020813,
128
+ "kl": 0.155029296875,
129
+ "learning_rate": 7.411809548974792e-06,
130
+ "loss": -0.0279,
131
+ "reward": 0.5223214626312256,
132
+ "reward_std": 0.8841909915208817,
133
+ "rewards/<lambda>": 0.5223214626312256,
134
+ "rewards/format_reward": 0.0,
135
+ "step": 9
136
+ },
137
+ {
138
+ "clip_ratio": 0.0,
139
+ "completion_length": 438.4888610839844,
140
+ "epoch": 0.6896551724137931,
141
+ "grad_norm": 0.3800601661205292,
142
+ "kl": 0.149169921875,
143
+ "learning_rate": 5.000000000000003e-06,
144
+ "loss": -0.0136,
145
+ "reward": 0.549107164144516,
146
+ "reward_std": 0.8823030292987823,
147
+ "rewards/<lambda>": 0.549107164144516,
148
+ "rewards/format_reward": 0.0,
149
+ "step": 10
150
+ },
151
+ {
152
+ "clip_ratio": 0.0,
153
+ "completion_length": 398.26341247558594,
154
+ "epoch": 0.7586206896551724,
155
+ "grad_norm": 0.3832401931285858,
156
+ "kl": 0.141845703125,
157
+ "learning_rate": 2.9289321881345257e-06,
158
+ "loss": -0.0314,
159
+ "reward": 0.5089286118745804,
160
+ "reward_std": 0.8833121657371521,
161
+ "rewards/<lambda>": 0.5089286118745804,
162
+ "rewards/format_reward": 0.0,
163
+ "step": 11
164
+ },
165
+ {
166
+ "clip_ratio": 0.0,
167
+ "completion_length": 424.11832427978516,
168
+ "epoch": 0.8275862068965517,
169
+ "grad_norm": 0.3395453095436096,
170
+ "kl": 0.134521484375,
171
+ "learning_rate": 1.339745962155613e-06,
172
+ "loss": -0.0237,
173
+ "reward": 0.5758928954601288,
174
+ "reward_std": 0.9218239635229111,
175
+ "rewards/<lambda>": 0.5758928954601288,
176
+ "rewards/format_reward": 0.0,
177
+ "step": 12
178
+ },
179
+ {
180
+ "clip_ratio": 0.0,
181
+ "completion_length": 397.5379638671875,
182
+ "epoch": 0.896551724137931,
183
+ "grad_norm": 0.3803483247756958,
184
+ "kl": 0.1341552734375,
185
+ "learning_rate": 3.4074173710931804e-07,
186
+ "loss": -0.0323,
187
+ "reward": 0.5625000149011612,
188
+ "reward_std": 0.9007573574781418,
189
+ "rewards/<lambda>": 0.5625000149011612,
190
+ "rewards/format_reward": 0.0,
191
+ "step": 13
192
+ },
193
+ {
194
+ "clip_ratio": 0.0,
195
+ "completion_length": 413.578125,
196
+ "epoch": 0.9655172413793104,
197
+ "grad_norm": 0.33767423033714294,
198
+ "kl": 0.13232421875,
199
+ "learning_rate": 0.0,
200
+ "loss": -0.0033,
201
+ "reward": 0.5558035969734192,
202
+ "reward_std": 0.8983689099550247,
203
+ "rewards/<lambda>": 0.5535714477300644,
204
+ "rewards/format_reward": 0.0022321429569274187,
205
+ "step": 14
206
+ },
207
+ {
208
+ "epoch": 0.9655172413793104,
209
+ "step": 14,
210
+ "total_flos": 0.0,
211
+ "train_loss": -0.0018907431845686265,
212
+ "train_runtime": 2665.9182,
213
+ "train_samples_per_second": 0.15,
214
+ "train_steps_per_second": 0.005
215
+ }
216
+ ],
217
+ "logging_steps": 1,
218
+ "max_steps": 14,
219
+ "num_input_tokens_seen": 0,
220
+ "num_train_epochs": 1,
221
+ "save_steps": 500,
222
+ "stateful_callbacks": {
223
+ "TrainerControl": {
224
+ "args": {
225
+ "should_epoch_stop": false,
226
+ "should_evaluate": false,
227
+ "should_log": false,
228
+ "should_save": true,
229
+ "should_training_stop": true
230
+ },
231
+ "attributes": {}
232
+ }
233
+ },
234
+ "total_flos": 0.0,
235
+ "train_batch_size": 16,
236
+ "trial_name": null,
237
+ "trial_params": null
238
+ }