chloeli commited on
Commit
d943ea4
·
verified ·
1 Parent(s): 6c33afe

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 +250 -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-qlora-countdown-search-1k
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-qlora-countdown-search-1k
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="chloeli/qwen-2.5-1.5b-instruct-sft-qlora-countdown-search-1k", 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/chloeli/huggingface/runs/lwajntvd)
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.6.0
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": 1.595794234802176e+16,
3
+ "train_loss": 0.08204185473918915,
4
+ "train_runtime": 684.8349,
5
+ "train_samples": 1000,
6
+ "train_samples_per_second": 1.46,
7
+ "train_steps_per_second": 0.183
8
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "total_flos": 1.595794234802176e+16,
3
+ "train_loss": 0.08204185473918915,
4
+ "train_runtime": 684.8349,
5
+ "train_samples": 1000,
6
+ "train_samples_per_second": 1.46,
7
+ "train_steps_per_second": 0.183
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,250 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 1.0,
5
+ "eval_steps": 500,
6
+ "global_step": 125,
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.008,
13
+ "grad_norm": 0.18838398158550262,
14
+ "learning_rate": 1.5384615384615387e-05,
15
+ "loss": 0.3948,
16
+ "mean_token_accuracy": 0.9112365245819092,
17
+ "step": 1
18
+ },
19
+ {
20
+ "epoch": 0.04,
21
+ "grad_norm": 0.17007271945476532,
22
+ "learning_rate": 7.692307692307693e-05,
23
+ "loss": 0.3779,
24
+ "mean_token_accuracy": 0.9201422408223152,
25
+ "step": 5
26
+ },
27
+ {
28
+ "epoch": 0.08,
29
+ "grad_norm": 0.1656438410282135,
30
+ "learning_rate": 0.00015384615384615385,
31
+ "loss": 0.3341,
32
+ "mean_token_accuracy": 0.9201170861721039,
33
+ "step": 10
34
+ },
35
+ {
36
+ "epoch": 0.12,
37
+ "grad_norm": 0.22235730290412903,
38
+ "learning_rate": 0.00019984268150178167,
39
+ "loss": 0.2128,
40
+ "mean_token_accuracy": 0.9411133766174317,
41
+ "step": 15
42
+ },
43
+ {
44
+ "epoch": 0.16,
45
+ "grad_norm": 0.15161848068237305,
46
+ "learning_rate": 0.00019807852804032305,
47
+ "loss": 0.1075,
48
+ "mean_token_accuracy": 0.9636118650436402,
49
+ "step": 20
50
+ },
51
+ {
52
+ "epoch": 0.2,
53
+ "grad_norm": 0.10428358614444733,
54
+ "learning_rate": 0.00019438833303083678,
55
+ "loss": 0.0631,
56
+ "mean_token_accuracy": 0.9756187975406647,
57
+ "step": 25
58
+ },
59
+ {
60
+ "epoch": 0.24,
61
+ "grad_norm": 0.03839333727955818,
62
+ "learning_rate": 0.00018884456359788724,
63
+ "loss": 0.0496,
64
+ "mean_token_accuracy": 0.9804835319519043,
65
+ "step": 30
66
+ },
67
+ {
68
+ "epoch": 0.28,
69
+ "grad_norm": 0.08242008090019226,
70
+ "learning_rate": 0.00018155608689592604,
71
+ "loss": 0.0536,
72
+ "mean_token_accuracy": 0.9777103424072265,
73
+ "step": 35
74
+ },
75
+ {
76
+ "epoch": 0.32,
77
+ "grad_norm": 0.0716392770409584,
78
+ "learning_rate": 0.0001726660322034027,
79
+ "loss": 0.0534,
80
+ "mean_token_accuracy": 0.9774137914180756,
81
+ "step": 40
82
+ },
83
+ {
84
+ "epoch": 0.36,
85
+ "grad_norm": 0.06007474660873413,
86
+ "learning_rate": 0.00016234898018587337,
87
+ "loss": 0.0477,
88
+ "mean_token_accuracy": 0.9796860992908478,
89
+ "step": 45
90
+ },
91
+ {
92
+ "epoch": 0.4,
93
+ "grad_norm": 0.057174865156412125,
94
+ "learning_rate": 0.00015080753452465296,
95
+ "loss": 0.0521,
96
+ "mean_token_accuracy": 0.9778975427150727,
97
+ "step": 50
98
+ },
99
+ {
100
+ "epoch": 0.44,
101
+ "grad_norm": 0.044427528977394104,
102
+ "learning_rate": 0.000138268343236509,
103
+ "loss": 0.0487,
104
+ "mean_token_accuracy": 0.979282945394516,
105
+ "step": 55
106
+ },
107
+ {
108
+ "epoch": 0.48,
109
+ "grad_norm": 0.04425638169050217,
110
+ "learning_rate": 0.0001249776478167227,
111
+ "loss": 0.0489,
112
+ "mean_token_accuracy": 0.9788806915283204,
113
+ "step": 60
114
+ },
115
+ {
116
+ "epoch": 0.52,
117
+ "grad_norm": 0.049495019018650055,
118
+ "learning_rate": 0.00011119644761033078,
119
+ "loss": 0.0464,
120
+ "mean_token_accuracy": 0.9806757926940918,
121
+ "step": 65
122
+ },
123
+ {
124
+ "epoch": 0.56,
125
+ "grad_norm": 0.04672574624419212,
126
+ "learning_rate": 9.719537437241312e-05,
127
+ "loss": 0.0466,
128
+ "mean_token_accuracy": 0.9799793243408204,
129
+ "step": 70
130
+ },
131
+ {
132
+ "epoch": 0.6,
133
+ "grad_norm": 0.03360598906874657,
134
+ "learning_rate": 8.324937766952638e-05,
135
+ "loss": 0.0457,
136
+ "mean_token_accuracy": 0.9792504906654358,
137
+ "step": 75
138
+ },
139
+ {
140
+ "epoch": 0.64,
141
+ "grad_norm": 0.05028126761317253,
142
+ "learning_rate": 6.963232548903853e-05,
143
+ "loss": 0.0477,
144
+ "mean_token_accuracy": 0.9793957650661469,
145
+ "step": 80
146
+ },
147
+ {
148
+ "epoch": 0.68,
149
+ "grad_norm": 0.04520723596215248,
150
+ "learning_rate": 5.6611626088244194e-05,
151
+ "loss": 0.0492,
152
+ "mean_token_accuracy": 0.9786539614200592,
153
+ "step": 85
154
+ },
155
+ {
156
+ "epoch": 0.72,
157
+ "grad_norm": 0.04504053667187691,
158
+ "learning_rate": 4.444297669803981e-05,
159
+ "loss": 0.0449,
160
+ "mean_token_accuracy": 0.9805234730243683,
161
+ "step": 90
162
+ },
163
+ {
164
+ "epoch": 0.76,
165
+ "grad_norm": 0.04639808461070061,
166
+ "learning_rate": 3.336534220479961e-05,
167
+ "loss": 0.048,
168
+ "mean_token_accuracy": 0.979764848947525,
169
+ "step": 95
170
+ },
171
+ {
172
+ "epoch": 0.8,
173
+ "grad_norm": 0.06406909227371216,
174
+ "learning_rate": 2.3596262417839255e-05,
175
+ "loss": 0.0432,
176
+ "mean_token_accuracy": 0.9803461849689483,
177
+ "step": 100
178
+ },
179
+ {
180
+ "epoch": 0.84,
181
+ "grad_norm": 0.04847242683172226,
182
+ "learning_rate": 1.5327580077171587e-05,
183
+ "loss": 0.045,
184
+ "mean_token_accuracy": 0.9807102084159851,
185
+ "step": 105
186
+ },
187
+ {
188
+ "epoch": 0.88,
189
+ "grad_norm": 0.04701913148164749,
190
+ "learning_rate": 8.72167349386811e-06,
191
+ "loss": 0.0468,
192
+ "mean_token_accuracy": 0.9801470816135407,
193
+ "step": 110
194
+ },
195
+ {
196
+ "epoch": 0.92,
197
+ "grad_norm": 0.06175077706575394,
198
+ "learning_rate": 3.908267805490051e-06,
199
+ "loss": 0.0458,
200
+ "mean_token_accuracy": 0.9797519445419312,
201
+ "step": 115
202
+ },
203
+ {
204
+ "epoch": 0.96,
205
+ "grad_norm": 0.07118166238069534,
206
+ "learning_rate": 9.818874663554357e-07,
207
+ "loss": 0.0431,
208
+ "mean_token_accuracy": 0.9812374770641327,
209
+ "step": 120
210
+ },
211
+ {
212
+ "epoch": 1.0,
213
+ "grad_norm": 0.038404762744903564,
214
+ "learning_rate": 0.0,
215
+ "loss": 0.0459,
216
+ "mean_token_accuracy": 0.9809239029884338,
217
+ "step": 125
218
+ },
219
+ {
220
+ "epoch": 1.0,
221
+ "step": 125,
222
+ "total_flos": 1.595794234802176e+16,
223
+ "train_loss": 0.08204185473918915,
224
+ "train_runtime": 684.8349,
225
+ "train_samples_per_second": 1.46,
226
+ "train_steps_per_second": 0.183
227
+ }
228
+ ],
229
+ "logging_steps": 5,
230
+ "max_steps": 125,
231
+ "num_input_tokens_seen": 0,
232
+ "num_train_epochs": 1,
233
+ "save_steps": 100,
234
+ "stateful_callbacks": {
235
+ "TrainerControl": {
236
+ "args": {
237
+ "should_epoch_stop": false,
238
+ "should_evaluate": false,
239
+ "should_log": false,
240
+ "should_save": true,
241
+ "should_training_stop": true
242
+ },
243
+ "attributes": {}
244
+ }
245
+ },
246
+ "total_flos": 1.595794234802176e+16,
247
+ "train_batch_size": 4,
248
+ "trial_name": null,
249
+ "trial_params": null
250
+ }