aidando73 commited on
Commit
55cc3dd
·
verified ·
1 Parent(s): d19dd33

Model save

Browse files
README.md ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: aidando73/Qwen-2.5-7B-Simple-RL-v2
3
+ library_name: transformers
4
+ model_name: Qwen-2.5-7B-Simple-RL-v3
5
+ tags:
6
+ - generated_from_trainer
7
+ - trl
8
+ - grpo
9
+ licence: license
10
+ ---
11
+
12
+ # Model Card for Qwen-2.5-7B-Simple-RL-v3
13
+
14
+ This model is a fine-tuned version of [aidando73/Qwen-2.5-7B-Simple-RL-v2](https://huggingface.co/aidando73/Qwen-2.5-7B-Simple-RL-v2).
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="aidando73/Qwen-2.5-7B-Simple-RL-v3", 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/aidando73-personal/huggingface/runs/dlr1639u)
31
+
32
+
33
+ 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).
34
+
35
+ ### Framework versions
36
+
37
+ - TRL: 0.16.0.dev0
38
+ - Transformers: 4.49.0
39
+ - Pytorch: 2.5.1
40
+ - Datasets: 3.4.1
41
+ - Tokenizers: 0.21.1
42
+
43
+ ## Citations
44
+
45
+ Cite GRPO as:
46
+
47
+ ```bibtex
48
+ @article{zhihong2024deepseekmath,
49
+ title = {{DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models}},
50
+ 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},
51
+ year = 2024,
52
+ eprint = {arXiv:2402.03300},
53
+ }
54
+
55
+ ```
56
+
57
+ Cite TRL as:
58
+
59
+ ```bibtex
60
+ @misc{vonwerra2022trl,
61
+ title = {{TRL: Transformer Reinforcement Learning}},
62
+ 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},
63
+ year = 2020,
64
+ journal = {GitHub repository},
65
+ publisher = {GitHub},
66
+ howpublished = {\url{https://github.com/huggingface/trl}}
67
+ }
68
+ ```
all_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "total_flos": 0.0,
3
+ "train_loss": 0.1568015617286337,
4
+ "train_runtime": 9197.0383,
5
+ "train_samples": 7500,
6
+ "train_samples_per_second": 0.815,
7
+ "train_steps_per_second": 0.006
8
+ }
generation_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 151643,
3
+ "eos_token_id": 151643,
4
+ "max_new_tokens": 2048,
5
+ "transformers_version": "4.49.0"
6
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "total_flos": 0.0,
3
+ "train_loss": 0.1568015617286337,
4
+ "train_runtime": 9197.0383,
5
+ "train_samples": 7500,
6
+ "train_samples_per_second": 0.815,
7
+ "train_steps_per_second": 0.006
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,217 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 0.9893390191897654,
5
+ "eval_steps": 100,
6
+ "global_step": 58,
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": 490.39622497558594,
14
+ "epoch": 0.017057569296375266,
15
+ "grad_norm": 0.48167672753334045,
16
+ "kl": 0.0,
17
+ "learning_rate": 5e-07,
18
+ "loss": 0.0927,
19
+ "reward": 1.4520089775323868,
20
+ "reward_std": 0.4626273363828659,
21
+ "rewards/accuracy_reward": 0.731026828289032,
22
+ "rewards/format_reward": 0.7209821715950966,
23
+ "step": 1
24
+ },
25
+ {
26
+ "clip_ratio": 0.0,
27
+ "completion_length": 495.0767583847046,
28
+ "epoch": 0.08528784648187633,
29
+ "grad_norm": 0.48367658257484436,
30
+ "kl": 0.00019475817680358887,
31
+ "learning_rate": 2.5e-06,
32
+ "loss": 0.0758,
33
+ "reward": 1.3839286305010319,
34
+ "reward_std": 0.47902860026806593,
35
+ "rewards/accuracy_reward": 0.6654576193541288,
36
+ "rewards/format_reward": 0.7184710167348385,
37
+ "step": 5
38
+ },
39
+ {
40
+ "clip_ratio": 0.0,
41
+ "completion_length": 469.24533462524414,
42
+ "epoch": 0.17057569296375266,
43
+ "grad_norm": 1055.7178955078125,
44
+ "kl": 0.09486055374145508,
45
+ "learning_rate": 2.956412726139078e-06,
46
+ "loss": 0.0696,
47
+ "reward": 1.559375074505806,
48
+ "reward_std": 0.39700488820672036,
49
+ "rewards/accuracy_reward": 0.6868303894996644,
50
+ "rewards/format_reward": 0.8725446864962578,
51
+ "step": 10
52
+ },
53
+ {
54
+ "clip_ratio": 0.0,
55
+ "completion_length": 447.36073303222656,
56
+ "epoch": 0.255863539445629,
57
+ "grad_norm": 0.46586015820503235,
58
+ "kl": 0.008279037475585938,
59
+ "learning_rate": 2.7836719084521715e-06,
60
+ "loss": 0.068,
61
+ "reward": 1.6738840073347092,
62
+ "reward_std": 0.30874924659729003,
63
+ "rewards/accuracy_reward": 0.7267857491970062,
64
+ "rewards/format_reward": 0.9470982506871224,
65
+ "step": 15
66
+ },
67
+ {
68
+ "clip_ratio": 0.0,
69
+ "completion_length": 444.303369140625,
70
+ "epoch": 0.3411513859275053,
71
+ "grad_norm": 0.7344509363174438,
72
+ "kl": 0.01377105712890625,
73
+ "learning_rate": 2.4946839873611927e-06,
74
+ "loss": 0.0591,
75
+ "reward": 1.6803572088479997,
76
+ "reward_std": 0.31110375486314296,
77
+ "rewards/accuracy_reward": 0.7267857447266579,
78
+ "rewards/format_reward": 0.9535714685916901,
79
+ "step": 20
80
+ },
81
+ {
82
+ "clip_ratio": 0.0,
83
+ "completion_length": 480.18819122314454,
84
+ "epoch": 0.42643923240938164,
85
+ "grad_norm": 0.34691816568374634,
86
+ "kl": 0.0154571533203125,
87
+ "learning_rate": 2.1156192081791355e-06,
88
+ "loss": 0.0959,
89
+ "reward": 1.6316965013742446,
90
+ "reward_std": 0.3553690694272518,
91
+ "rewards/accuracy_reward": 0.6892857432365418,
92
+ "rewards/format_reward": 0.9424107536673546,
93
+ "step": 25
94
+ },
95
+ {
96
+ "clip_ratio": 0.0,
97
+ "completion_length": 519.4330619812011,
98
+ "epoch": 0.511727078891258,
99
+ "grad_norm": 1.267974853515625,
100
+ "kl": 0.0434295654296875,
101
+ "learning_rate": 1.6808050203829845e-06,
102
+ "loss": 0.1268,
103
+ "reward": 1.561160784959793,
104
+ "reward_std": 0.3939851924777031,
105
+ "rewards/accuracy_reward": 0.6450893133878708,
106
+ "rewards/format_reward": 0.9160714745521545,
107
+ "step": 30
108
+ },
109
+ {
110
+ "clip_ratio": 0.0,
111
+ "completion_length": 571.6105178833008,
112
+ "epoch": 0.5970149253731343,
113
+ "grad_norm": 2.5649266242980957,
114
+ "kl": 0.14027099609375,
115
+ "learning_rate": 1.2296174432791415e-06,
116
+ "loss": 0.1967,
117
+ "reward": 1.4618304252624512,
118
+ "reward_std": 0.5041121542453766,
119
+ "rewards/accuracy_reward": 0.5946428827941418,
120
+ "rewards/format_reward": 0.8671875417232513,
121
+ "step": 35
122
+ },
123
+ {
124
+ "clip_ratio": 0.0,
125
+ "completion_length": 581.8879707336425,
126
+ "epoch": 0.6823027718550106,
127
+ "grad_norm": 10.305343627929688,
128
+ "kl": 0.2900634765625,
129
+ "learning_rate": 8.029152419343472e-07,
130
+ "loss": 0.234,
131
+ "reward": 1.3854911401867867,
132
+ "reward_std": 0.5583220794796944,
133
+ "rewards/accuracy_reward": 0.5649553827941418,
134
+ "rewards/format_reward": 0.8205357566475868,
135
+ "step": 40
136
+ },
137
+ {
138
+ "clip_ratio": 0.0,
139
+ "completion_length": 593.7596252441406,
140
+ "epoch": 0.767590618336887,
141
+ "grad_norm": 12.518046379089355,
142
+ "kl": 0.358349609375,
143
+ "learning_rate": 4.3933982822017883e-07,
144
+ "loss": 0.2316,
145
+ "reward": 1.353571480512619,
146
+ "reward_std": 0.5827566109597683,
147
+ "rewards/accuracy_reward": 0.5622768118977547,
148
+ "rewards/format_reward": 0.791294677555561,
149
+ "step": 45
150
+ },
151
+ {
152
+ "clip_ratio": 0.0,
153
+ "completion_length": 578.9877510070801,
154
+ "epoch": 0.8528784648187633,
155
+ "grad_norm": 13.292229652404785,
156
+ "kl": 0.45947265625,
157
+ "learning_rate": 1.718159615201853e-07,
158
+ "loss": 0.2462,
159
+ "reward": 1.3236607640981675,
160
+ "reward_std": 0.6153911039233207,
161
+ "rewards/accuracy_reward": 0.5506696633994579,
162
+ "rewards/format_reward": 0.7729911044239998,
163
+ "step": 50
164
+ },
165
+ {
166
+ "clip_ratio": 0.0,
167
+ "completion_length": 556.6399826049804,
168
+ "epoch": 0.9381663113006397,
169
+ "grad_norm": 13.38757038116455,
170
+ "kl": 0.5525390625,
171
+ "learning_rate": 2.4570139579284723e-08,
172
+ "loss": 0.2526,
173
+ "reward": 1.3421875596046449,
174
+ "reward_std": 0.6172608032822609,
175
+ "rewards/accuracy_reward": 0.5716518081724644,
176
+ "rewards/format_reward": 0.7705357447266579,
177
+ "step": 55
178
+ },
179
+ {
180
+ "clip_ratio": 0.0,
181
+ "completion_length": 546.5475145975748,
182
+ "epoch": 0.9893390191897654,
183
+ "kl": 0.59619140625,
184
+ "reward": 1.3314732909202576,
185
+ "reward_std": 0.5954927864174048,
186
+ "rewards/accuracy_reward": 0.5625000235935053,
187
+ "rewards/format_reward": 0.7689732511838278,
188
+ "step": 58,
189
+ "total_flos": 0.0,
190
+ "train_loss": 0.1568015617286337,
191
+ "train_runtime": 9197.0383,
192
+ "train_samples_per_second": 0.815,
193
+ "train_steps_per_second": 0.006
194
+ }
195
+ ],
196
+ "logging_steps": 5,
197
+ "max_steps": 58,
198
+ "num_input_tokens_seen": 0,
199
+ "num_train_epochs": 1,
200
+ "save_steps": 500,
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": 0.0,
214
+ "train_batch_size": 16,
215
+ "trial_name": null,
216
+ "trial_params": null
217
+ }