Blancy commited on
Commit
8661df7
·
verified ·
1 Parent(s): f18aff8

Model save

Browse files
README.md ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: Qwen/Qwen2.5-0.5B-Instruct
3
+ library_name: transformers
4
+ model_name: Qwen2.5-0.5B-Open-R1-Distill
5
+ tags:
6
+ - generated_from_trainer
7
+ - trl
8
+ - sft
9
+ licence: license
10
+ ---
11
+
12
+ # Model Card for Qwen2.5-0.5B-Open-R1-Distill
13
+
14
+ This model is a fine-tuned version of [Qwen/Qwen2.5-0.5B-Instruct](https://huggingface.co/Qwen/Qwen2.5-0.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="Blancy/Qwen2.5-0.5B-Open-R1-Distill", 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/224015062-chinese-university-of-hong-kong-shenzhen/huggingface/runs/2vdrtqap)
31
+
32
+
33
+ This model was trained with SFT.
34
+
35
+ ### Framework versions
36
+
37
+ - TRL: 0.15.2
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": 4079631728640.0,
3
+ "train_loss": 1.5182941075029044,
4
+ "train_runtime": 127.2004,
5
+ "train_samples": 1000,
6
+ "train_samples_per_second": 72.728,
7
+ "train_steps_per_second": 1.14
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
+ }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:70a0cf8e9668152d355deeafad38baaa98554c85dc088840d68f23a263519524
3
  size 988097824
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a3c39edbff1078192bae4a27cfa917e03fa5eb62fe6ffcd38cde8344746bcb85
3
  size 988097824
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "total_flos": 4079631728640.0,
3
+ "train_loss": 1.5182941075029044,
4
+ "train_runtime": 127.2004,
5
+ "train_samples": 1000,
6
+ "train_samples_per_second": 72.728,
7
+ "train_steps_per_second": 1.14
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,245 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 1.0,
5
+ "eval_steps": 500,
6
+ "global_step": 145,
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.034482758620689655,
13
+ "grad_norm": 5.118941856424631,
14
+ "learning_rate": 3.125e-05,
15
+ "loss": 1.7914,
16
+ "step": 5
17
+ },
18
+ {
19
+ "epoch": 0.06896551724137931,
20
+ "grad_norm": 2.9573423689762866,
21
+ "learning_rate": 4.997634107543713e-05,
22
+ "loss": 1.666,
23
+ "step": 10
24
+ },
25
+ {
26
+ "epoch": 0.10344827586206896,
27
+ "grad_norm": 2.039420630897441,
28
+ "learning_rate": 4.971074924974395e-05,
29
+ "loss": 1.6124,
30
+ "step": 15
31
+ },
32
+ {
33
+ "epoch": 0.13793103448275862,
34
+ "grad_norm": 2.1953763522509946,
35
+ "learning_rate": 4.915349129238729e-05,
36
+ "loss": 1.5929,
37
+ "step": 20
38
+ },
39
+ {
40
+ "epoch": 0.1724137931034483,
41
+ "grad_norm": 2.049453928196352,
42
+ "learning_rate": 4.8311884978689945e-05,
43
+ "loss": 1.5655,
44
+ "step": 25
45
+ },
46
+ {
47
+ "epoch": 0.20689655172413793,
48
+ "grad_norm": 1.7738134431283565,
49
+ "learning_rate": 4.719698207710602e-05,
50
+ "loss": 1.5665,
51
+ "step": 30
52
+ },
53
+ {
54
+ "epoch": 0.2413793103448276,
55
+ "grad_norm": 1.7877365606373776,
56
+ "learning_rate": 4.582342322009812e-05,
57
+ "loss": 1.5434,
58
+ "step": 35
59
+ },
60
+ {
61
+ "epoch": 0.27586206896551724,
62
+ "grad_norm": 1.6827790459654124,
63
+ "learning_rate": 4.4209245646929606e-05,
64
+ "loss": 1.5528,
65
+ "step": 40
66
+ },
67
+ {
68
+ "epoch": 0.3103448275862069,
69
+ "grad_norm": 1.6193600867831015,
70
+ "learning_rate": 4.2375646343046135e-05,
71
+ "loss": 1.5286,
72
+ "step": 45
73
+ },
74
+ {
75
+ "epoch": 0.3448275862068966,
76
+ "grad_norm": 1.6304628801910557,
77
+ "learning_rate": 4.034670368644256e-05,
78
+ "loss": 1.5466,
79
+ "step": 50
80
+ },
81
+ {
82
+ "epoch": 0.3793103448275862,
83
+ "grad_norm": 1.5317716414980957,
84
+ "learning_rate": 3.8149061256287007e-05,
85
+ "loss": 1.5496,
86
+ "step": 55
87
+ },
88
+ {
89
+ "epoch": 0.41379310344827586,
90
+ "grad_norm": 1.5527683273021031,
91
+ "learning_rate": 3.581157795594989e-05,
92
+ "loss": 1.4883,
93
+ "step": 60
94
+ },
95
+ {
96
+ "epoch": 0.4482758620689655,
97
+ "grad_norm": 1.593847047843435,
98
+ "learning_rate": 3.3364949044936924e-05,
99
+ "loss": 1.5387,
100
+ "step": 65
101
+ },
102
+ {
103
+ "epoch": 0.4827586206896552,
104
+ "grad_norm": 1.4396115722574465,
105
+ "learning_rate": 3.084130305624209e-05,
106
+ "loss": 1.511,
107
+ "step": 70
108
+ },
109
+ {
110
+ "epoch": 0.5172413793103449,
111
+ "grad_norm": 1.6057921876869088,
112
+ "learning_rate": 2.8273779892303337e-05,
113
+ "loss": 1.4434,
114
+ "step": 75
115
+ },
116
+ {
117
+ "epoch": 0.5517241379310345,
118
+ "grad_norm": 1.5280825241631029,
119
+ "learning_rate": 2.5696095639901996e-05,
120
+ "loss": 1.5058,
121
+ "step": 80
122
+ },
123
+ {
124
+ "epoch": 0.5862068965517241,
125
+ "grad_norm": 1.5666909004892384,
126
+ "learning_rate": 2.314209981875008e-05,
127
+ "loss": 1.5186,
128
+ "step": 85
129
+ },
130
+ {
131
+ "epoch": 0.6206896551724138,
132
+ "grad_norm": 1.4281308841157434,
133
+ "learning_rate": 2.0645330877869e-05,
134
+ "loss": 1.4822,
135
+ "step": 90
136
+ },
137
+ {
138
+ "epoch": 0.6551724137931034,
139
+ "grad_norm": 1.3745413443273744,
140
+ "learning_rate": 1.8238575776872595e-05,
141
+ "loss": 1.4529,
142
+ "step": 95
143
+ },
144
+ {
145
+ "epoch": 0.6896551724137931,
146
+ "grad_norm": 1.5081595406938955,
147
+ "learning_rate": 1.5953439435625384e-05,
148
+ "loss": 1.4762,
149
+ "step": 100
150
+ },
151
+ {
152
+ "epoch": 0.7241379310344828,
153
+ "grad_norm": 1.3768197030526457,
154
+ "learning_rate": 1.3819929706157959e-05,
155
+ "loss": 1.4915,
156
+ "step": 105
157
+ },
158
+ {
159
+ "epoch": 0.7586206896551724,
160
+ "grad_norm": 1.4228532169763397,
161
+ "learning_rate": 1.1866063316886964e-05,
162
+ "loss": 1.4761,
163
+ "step": 110
164
+ },
165
+ {
166
+ "epoch": 0.7931034482758621,
167
+ "grad_norm": 1.3531199760661987,
168
+ "learning_rate": 1.0117497963783762e-05,
169
+ "loss": 1.4597,
170
+ "step": 115
171
+ },
172
+ {
173
+ "epoch": 0.8275862068965517,
174
+ "grad_norm": 1.297275568713758,
175
+ "learning_rate": 8.597195379780726e-06,
176
+ "loss": 1.4838,
177
+ "step": 120
178
+ },
179
+ {
180
+ "epoch": 0.8620689655172413,
181
+ "grad_norm": 1.2780573701142792,
182
+ "learning_rate": 7.3251198069053465e-06,
183
+ "loss": 1.4329,
184
+ "step": 125
185
+ },
186
+ {
187
+ "epoch": 0.896551724137931,
188
+ "grad_norm": 1.3276253224901293,
189
+ "learning_rate": 6.317975830732497e-06,
190
+ "loss": 1.4417,
191
+ "step": 130
192
+ },
193
+ {
194
+ "epoch": 0.9310344827586207,
195
+ "grad_norm": 1.2548059361443487,
196
+ "learning_rate": 5.588989019848609e-06,
197
+ "loss": 1.4287,
198
+ "step": 135
199
+ },
200
+ {
201
+ "epoch": 0.9655172413793104,
202
+ "grad_norm": 1.2798168590694643,
203
+ "learning_rate": 5.147732250916841e-06,
204
+ "loss": 1.462,
205
+ "step": 140
206
+ },
207
+ {
208
+ "epoch": 1.0,
209
+ "grad_norm": 1.2571681575699087,
210
+ "learning_rate": 5e-06,
211
+ "loss": 1.4216,
212
+ "step": 145
213
+ },
214
+ {
215
+ "epoch": 1.0,
216
+ "step": 145,
217
+ "total_flos": 4079631728640.0,
218
+ "train_loss": 1.5182941075029044,
219
+ "train_runtime": 127.2004,
220
+ "train_samples_per_second": 72.728,
221
+ "train_steps_per_second": 1.14
222
+ }
223
+ ],
224
+ "logging_steps": 5,
225
+ "max_steps": 145,
226
+ "num_input_tokens_seen": 0,
227
+ "num_train_epochs": 1,
228
+ "save_steps": 100,
229
+ "stateful_callbacks": {
230
+ "TrainerControl": {
231
+ "args": {
232
+ "should_epoch_stop": false,
233
+ "should_evaluate": false,
234
+ "should_log": false,
235
+ "should_save": true,
236
+ "should_training_stop": true
237
+ },
238
+ "attributes": {}
239
+ }
240
+ },
241
+ "total_flos": 4079631728640.0,
242
+ "train_batch_size": 16,
243
+ "trial_name": null,
244
+ "trial_params": null
245
+ }