yeok commited on
Commit
2ce9736
·
verified ·
1 Parent(s): 5ed0ad4

Model save

Browse files
Files changed (4) hide show
  1. README.md +58 -0
  2. all_results.json +8 -0
  3. train_results.json +8 -0
  4. trainer_state.json +268 -0
README.md ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: Qwen/Qwen2.5-1.5B-Instruct
3
+ library_name: transformers
4
+ model_name: qwen-2.5-1.5B-instruct-sft-lora-countdown-deepseek-6k
5
+ tags:
6
+ - generated_from_trainer
7
+ - trl
8
+ - sft
9
+ licence: license
10
+ ---
11
+
12
+ # Model Card for qwen-2.5-1.5B-instruct-sft-lora-countdown-deepseek-6k
13
+
14
+ This model is a fine-tuned version of [Qwen/Qwen2.5-1.5B-Instruct](https://huggingface.co/Qwen/Qwen2.5-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="yeok/qwen-2.5-1.5B-instruct-sft-lora-countdown-deepseek-6k", 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/yeokch/stream-of-search-train/runs/9x3udzje)
31
+
32
+
33
+ This model was trained with SFT.
34
+
35
+ ### Framework versions
36
+
37
+ - TRL: 0.15.2
38
+ - Transformers: 4.50.0
39
+ - Pytorch: 2.6.0
40
+ - Datasets: 3.5.0
41
+ - Tokenizers: 0.21.1
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": 1.4186790468871782e+17,
3
+ "train_loss": 0.6605893557562548,
4
+ "train_runtime": 6552.0914,
5
+ "train_samples": 6316,
6
+ "train_samples_per_second": 0.334,
7
+ "train_steps_per_second": 0.021
8
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "total_flos": 1.4186790468871782e+17,
3
+ "train_loss": 0.6605893557562548,
4
+ "train_runtime": 6552.0914,
5
+ "train_samples": 6316,
6
+ "train_samples_per_second": 0.334,
7
+ "train_steps_per_second": 0.021
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,268 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": null,
3
+ "best_metric": null,
4
+ "best_model_checkpoint": null,
5
+ "epoch": 0.9945155393053017,
6
+ "eval_steps": 500,
7
+ "global_step": 136,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "epoch": 0.007312614259597806,
14
+ "grad_norm": 0.12043265998363495,
15
+ "learning_rate": 1.4285714285714285e-05,
16
+ "loss": 0.9622,
17
+ "mean_token_accuracy": 0.7244765534996986,
18
+ "step": 1
19
+ },
20
+ {
21
+ "epoch": 0.03656307129798903,
22
+ "grad_norm": 0.1216142550110817,
23
+ "learning_rate": 7.142857142857143e-05,
24
+ "loss": 1.0026,
25
+ "mean_token_accuracy": 0.7134055998176336,
26
+ "step": 5
27
+ },
28
+ {
29
+ "epoch": 0.07312614259597806,
30
+ "grad_norm": 0.11720138788223267,
31
+ "learning_rate": 0.00014285714285714287,
32
+ "loss": 0.9768,
33
+ "mean_token_accuracy": 0.7196862399578094,
34
+ "step": 10
35
+ },
36
+ {
37
+ "epoch": 0.10968921389396709,
38
+ "grad_norm": 0.13313624262809753,
39
+ "learning_rate": 0.0001999668467514313,
40
+ "loss": 0.9109,
41
+ "mean_token_accuracy": 0.7297002755105495,
42
+ "step": 15
43
+ },
44
+ {
45
+ "epoch": 0.14625228519195613,
46
+ "grad_norm": 0.1300281137228012,
47
+ "learning_rate": 0.00019880878960910772,
48
+ "loss": 0.8575,
49
+ "mean_token_accuracy": 0.740726611763239,
50
+ "step": 20
51
+ },
52
+ {
53
+ "epoch": 0.18281535648994515,
54
+ "grad_norm": 0.1045694574713707,
55
+ "learning_rate": 0.00019601498736716017,
56
+ "loss": 0.7773,
57
+ "mean_token_accuracy": 0.759741972386837,
58
+ "step": 25
59
+ },
60
+ {
61
+ "epoch": 0.21937842778793418,
62
+ "grad_norm": 0.09669230878353119,
63
+ "learning_rate": 0.0001916316904487005,
64
+ "loss": 0.7471,
65
+ "mean_token_accuracy": 0.7641573064029217,
66
+ "step": 30
67
+ },
68
+ {
69
+ "epoch": 0.25594149908592323,
70
+ "grad_norm": 0.08908155560493469,
71
+ "learning_rate": 0.00018573146280763324,
72
+ "loss": 0.7116,
73
+ "mean_token_accuracy": 0.7720760576426983,
74
+ "step": 35
75
+ },
76
+ {
77
+ "epoch": 0.29250457038391225,
78
+ "grad_norm": 0.09818249940872192,
79
+ "learning_rate": 0.00017841198065767107,
80
+ "loss": 0.6836,
81
+ "mean_token_accuracy": 0.778372598439455,
82
+ "step": 40
83
+ },
84
+ {
85
+ "epoch": 0.3290676416819013,
86
+ "grad_norm": 0.11527201533317566,
87
+ "learning_rate": 0.00016979441547663435,
88
+ "loss": 0.6559,
89
+ "mean_token_accuracy": 0.7842052198946476,
90
+ "step": 45
91
+ },
92
+ {
93
+ "epoch": 0.3656307129798903,
94
+ "grad_norm": 0.1011962741613388,
95
+ "learning_rate": 0.00016002142805483685,
96
+ "loss": 0.6346,
97
+ "mean_token_accuracy": 0.7901677042245865,
98
+ "step": 50
99
+ },
100
+ {
101
+ "epoch": 0.40219378427787933,
102
+ "grad_norm": 0.1208968386054039,
103
+ "learning_rate": 0.00014925480679538647,
104
+ "loss": 0.6312,
105
+ "mean_token_accuracy": 0.7898989707231522,
106
+ "step": 55
107
+ },
108
+ {
109
+ "epoch": 0.43875685557586835,
110
+ "grad_norm": 0.09324625879526138,
111
+ "learning_rate": 0.00013767278936351854,
112
+ "loss": 0.6049,
113
+ "mean_token_accuracy": 0.7972484216094017,
114
+ "step": 60
115
+ },
116
+ {
117
+ "epoch": 0.4753199268738574,
118
+ "grad_norm": 0.10249213129281998,
119
+ "learning_rate": 0.00012546711202412287,
120
+ "loss": 0.5993,
121
+ "mean_token_accuracy": 0.7985120855271817,
122
+ "step": 65
123
+ },
124
+ {
125
+ "epoch": 0.5118829981718465,
126
+ "grad_norm": 0.11906760931015015,
127
+ "learning_rate": 0.00011283983551465511,
128
+ "loss": 0.5966,
129
+ "mean_token_accuracy": 0.7997283555567265,
130
+ "step": 70
131
+ },
132
+ {
133
+ "epoch": 0.5484460694698354,
134
+ "grad_norm": 0.10403923690319061,
135
+ "learning_rate": 0.0001,
136
+ "loss": 0.5929,
137
+ "mean_token_accuracy": 0.8001663401722908,
138
+ "step": 75
139
+ },
140
+ {
141
+ "epoch": 0.5850091407678245,
142
+ "grad_norm": 0.11625717580318451,
143
+ "learning_rate": 8.71601644853449e-05,
144
+ "loss": 0.5853,
145
+ "mean_token_accuracy": 0.801834324002266,
146
+ "step": 80
147
+ },
148
+ {
149
+ "epoch": 0.6215722120658135,
150
+ "grad_norm": 0.14587707817554474,
151
+ "learning_rate": 7.453288797587714e-05,
152
+ "loss": 0.5772,
153
+ "mean_token_accuracy": 0.8043950639665127,
154
+ "step": 85
155
+ },
156
+ {
157
+ "epoch": 0.6581352833638026,
158
+ "grad_norm": 0.09371322393417358,
159
+ "learning_rate": 6.232721063648148e-05,
160
+ "loss": 0.5775,
161
+ "mean_token_accuracy": 0.8033298641443253,
162
+ "step": 90
163
+ },
164
+ {
165
+ "epoch": 0.6946983546617916,
166
+ "grad_norm": 0.10421498864889145,
167
+ "learning_rate": 5.074519320461357e-05,
168
+ "loss": 0.5726,
169
+ "mean_token_accuracy": 0.8055274039506912,
170
+ "step": 95
171
+ },
172
+ {
173
+ "epoch": 0.7312614259597806,
174
+ "grad_norm": 0.10395624488592148,
175
+ "learning_rate": 3.997857194516319e-05,
176
+ "loss": 0.5734,
177
+ "mean_token_accuracy": 0.805304603278637,
178
+ "step": 100
179
+ },
180
+ {
181
+ "epoch": 0.7678244972577697,
182
+ "grad_norm": 0.10051889717578888,
183
+ "learning_rate": 3.0205584523365626e-05,
184
+ "loss": 0.5767,
185
+ "mean_token_accuracy": 0.8036030374467373,
186
+ "step": 105
187
+ },
188
+ {
189
+ "epoch": 0.8043875685557587,
190
+ "grad_norm": 0.09088820964097977,
191
+ "learning_rate": 2.1588019342328968e-05,
192
+ "loss": 0.5796,
193
+ "mean_token_accuracy": 0.8022675953805447,
194
+ "step": 110
195
+ },
196
+ {
197
+ "epoch": 0.8409506398537477,
198
+ "grad_norm": 0.09396003931760788,
199
+ "learning_rate": 1.426853719236676e-05,
200
+ "loss": 0.5678,
201
+ "mean_token_accuracy": 0.8059396557509899,
202
+ "step": 115
203
+ },
204
+ {
205
+ "epoch": 0.8775137111517367,
206
+ "grad_norm": 0.08524946868419647,
207
+ "learning_rate": 8.368309551299536e-06,
208
+ "loss": 0.5717,
209
+ "mean_token_accuracy": 0.8042348228394985,
210
+ "step": 120
211
+ },
212
+ {
213
+ "epoch": 0.9140767824497258,
214
+ "grad_norm": 0.08044712990522385,
215
+ "learning_rate": 3.985012632839824e-06,
216
+ "loss": 0.5676,
217
+ "mean_token_accuracy": 0.8066093817353248,
218
+ "step": 125
219
+ },
220
+ {
221
+ "epoch": 0.9506398537477148,
222
+ "grad_norm": 0.08666696399450302,
223
+ "learning_rate": 1.1912103908922945e-06,
224
+ "loss": 0.5657,
225
+ "mean_token_accuracy": 0.8065590254962445,
226
+ "step": 130
227
+ },
228
+ {
229
+ "epoch": 0.9872029250457038,
230
+ "grad_norm": 0.0783163458108902,
231
+ "learning_rate": 3.3153248568695835e-08,
232
+ "loss": 0.5627,
233
+ "mean_token_accuracy": 0.8076440550386905,
234
+ "step": 135
235
+ },
236
+ {
237
+ "epoch": 0.9945155393053017,
238
+ "mean_token_accuracy": 0.8013826087117195,
239
+ "step": 136,
240
+ "total_flos": 1.4186790468871782e+17,
241
+ "train_loss": 0.6605893557562548,
242
+ "train_runtime": 6552.0914,
243
+ "train_samples_per_second": 0.334,
244
+ "train_steps_per_second": 0.021
245
+ }
246
+ ],
247
+ "logging_steps": 5,
248
+ "max_steps": 136,
249
+ "num_input_tokens_seen": 0,
250
+ "num_train_epochs": 1,
251
+ "save_steps": 100,
252
+ "stateful_callbacks": {
253
+ "TrainerControl": {
254
+ "args": {
255
+ "should_epoch_stop": false,
256
+ "should_evaluate": false,
257
+ "should_log": false,
258
+ "should_save": true,
259
+ "should_training_stop": true
260
+ },
261
+ "attributes": {}
262
+ }
263
+ },
264
+ "total_flos": 1.4186790468871782e+17,
265
+ "train_batch_size": 1,
266
+ "trial_name": null,
267
+ "trial_params": null
268
+ }