Model save
Browse files- README.md +66 -0
- all_results.json +9 -0
- generation_config.json +10 -0
- train_results.json +9 -0
- trainer_state.json +275 -0
README.md
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
base_model: kykim0/Llama-2-7b-ultrachat200k-2e
|
4 |
+
tags:
|
5 |
+
- trl
|
6 |
+
- sft
|
7 |
+
- generated_from_trainer
|
8 |
+
model-index:
|
9 |
+
- name: Llama-2-7b-ultrachat-code
|
10 |
+
results: []
|
11 |
+
---
|
12 |
+
|
13 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
14 |
+
should probably proofread and complete it, then remove this comment. -->
|
15 |
+
|
16 |
+
# Llama-2-7b-ultrachat-code
|
17 |
+
|
18 |
+
This model is a fine-tuned version of [kykim0/Llama-2-7b-ultrachat200k-2e](https://huggingface.co/kykim0/Llama-2-7b-ultrachat200k-2e) on the None dataset.
|
19 |
+
It achieves the following results on the evaluation set:
|
20 |
+
- Loss: 0.3676
|
21 |
+
|
22 |
+
## Model description
|
23 |
+
|
24 |
+
More information needed
|
25 |
+
|
26 |
+
## Intended uses & limitations
|
27 |
+
|
28 |
+
More information needed
|
29 |
+
|
30 |
+
## Training and evaluation data
|
31 |
+
|
32 |
+
More information needed
|
33 |
+
|
34 |
+
## Training procedure
|
35 |
+
|
36 |
+
### Training hyperparameters
|
37 |
+
|
38 |
+
The following hyperparameters were used during training:
|
39 |
+
- learning_rate: 2e-05
|
40 |
+
- train_batch_size: 1
|
41 |
+
- eval_batch_size: 4
|
42 |
+
- seed: 42
|
43 |
+
- distributed_type: multi-GPU
|
44 |
+
- num_devices: 4
|
45 |
+
- gradient_accumulation_steps: 32
|
46 |
+
- total_train_batch_size: 128
|
47 |
+
- total_eval_batch_size: 16
|
48 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
49 |
+
- lr_scheduler_type: cosine
|
50 |
+
- lr_scheduler_warmup_ratio: 0.1
|
51 |
+
- num_epochs: 2
|
52 |
+
|
53 |
+
### Training results
|
54 |
+
|
55 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
56 |
+
|:-------------:|:------:|:----:|:---------------:|
|
57 |
+
| 0.6476 | 0.9974 | 156 | 0.4590 |
|
58 |
+
| 0.4531 | 1.9948 | 312 | 0.3676 |
|
59 |
+
|
60 |
+
|
61 |
+
### Framework versions
|
62 |
+
|
63 |
+
- Transformers 4.44.2
|
64 |
+
- Pytorch 2.1.2
|
65 |
+
- Datasets 2.14.6
|
66 |
+
- Tokenizers 0.19.1
|
all_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 1.9948051948051948,
|
3 |
+
"total_flos": 7897890299904.0,
|
4 |
+
"train_loss": 0.556142369332986,
|
5 |
+
"train_runtime": 8555.603,
|
6 |
+
"train_samples": 20019,
|
7 |
+
"train_samples_per_second": 4.68,
|
8 |
+
"train_steps_per_second": 0.036
|
9 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token_id": 1,
|
3 |
+
"do_sample": true,
|
4 |
+
"eos_token_id": 2,
|
5 |
+
"max_length": 4096,
|
6 |
+
"pad_token_id": 0,
|
7 |
+
"temperature": 0.6,
|
8 |
+
"top_p": 0.9,
|
9 |
+
"transformers_version": "4.44.2"
|
10 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 1.9948051948051948,
|
3 |
+
"total_flos": 7897890299904.0,
|
4 |
+
"train_loss": 0.556142369332986,
|
5 |
+
"train_runtime": 8555.603,
|
6 |
+
"train_samples": 20019,
|
7 |
+
"train_samples_per_second": 4.68,
|
8 |
+
"train_steps_per_second": 0.036
|
9 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,275 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 1.9948051948051948,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 312,
|
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.06393606393606394,
|
13 |
+
"grad_norm": 3.3491440222437325,
|
14 |
+
"learning_rate": 6.25e-06,
|
15 |
+
"loss": 0.7822,
|
16 |
+
"step": 10
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 0.12787212787212787,
|
20 |
+
"grad_norm": 1.3482958544910333,
|
21 |
+
"learning_rate": 1.25e-05,
|
22 |
+
"loss": 0.6792,
|
23 |
+
"step": 20
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 0.1918081918081918,
|
27 |
+
"grad_norm": 1.2739067783847393,
|
28 |
+
"learning_rate": 1.8750000000000002e-05,
|
29 |
+
"loss": 0.6622,
|
30 |
+
"step": 30
|
31 |
+
},
|
32 |
+
{
|
33 |
+
"epoch": 0.25574425574425574,
|
34 |
+
"grad_norm": 1.4126840004973826,
|
35 |
+
"learning_rate": 1.9959742939952393e-05,
|
36 |
+
"loss": 0.6878,
|
37 |
+
"step": 40
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"epoch": 0.3196803196803197,
|
41 |
+
"grad_norm": 1.47342628958793,
|
42 |
+
"learning_rate": 1.9796753984232357e-05,
|
43 |
+
"loss": 0.6892,
|
44 |
+
"step": 50
|
45 |
+
},
|
46 |
+
{
|
47 |
+
"epoch": 0.3836163836163836,
|
48 |
+
"grad_norm": 1.1817516625418099,
|
49 |
+
"learning_rate": 1.9510565162951538e-05,
|
50 |
+
"loss": 0.6479,
|
51 |
+
"step": 60
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"epoch": 0.44755244755244755,
|
55 |
+
"grad_norm": 0.9607345989729658,
|
56 |
+
"learning_rate": 1.9104775466588162e-05,
|
57 |
+
"loss": 0.6489,
|
58 |
+
"step": 70
|
59 |
+
},
|
60 |
+
{
|
61 |
+
"epoch": 0.5114885114885115,
|
62 |
+
"grad_norm": 0.9554376895753519,
|
63 |
+
"learning_rate": 1.8584487936018663e-05,
|
64 |
+
"loss": 0.6422,
|
65 |
+
"step": 80
|
66 |
+
},
|
67 |
+
{
|
68 |
+
"epoch": 0.5754245754245755,
|
69 |
+
"grad_norm": 0.8588614657212066,
|
70 |
+
"learning_rate": 1.795624548881781e-05,
|
71 |
+
"loss": 0.6491,
|
72 |
+
"step": 90
|
73 |
+
},
|
74 |
+
{
|
75 |
+
"epoch": 0.6393606393606394,
|
76 |
+
"grad_norm": 1.4520057403638673,
|
77 |
+
"learning_rate": 1.7227948638273918e-05,
|
78 |
+
"loss": 0.6619,
|
79 |
+
"step": 100
|
80 |
+
},
|
81 |
+
{
|
82 |
+
"epoch": 0.7032967032967034,
|
83 |
+
"grad_norm": 1.0532745435041297,
|
84 |
+
"learning_rate": 1.6408756139850243e-05,
|
85 |
+
"loss": 0.6289,
|
86 |
+
"step": 110
|
87 |
+
},
|
88 |
+
{
|
89 |
+
"epoch": 0.7672327672327672,
|
90 |
+
"grad_norm": 0.9433790775247752,
|
91 |
+
"learning_rate": 1.5508969814521026e-05,
|
92 |
+
"loss": 0.629,
|
93 |
+
"step": 120
|
94 |
+
},
|
95 |
+
{
|
96 |
+
"epoch": 0.8311688311688312,
|
97 |
+
"grad_norm": 0.8339993692400886,
|
98 |
+
"learning_rate": 1.4539904997395468e-05,
|
99 |
+
"loss": 0.6141,
|
100 |
+
"step": 130
|
101 |
+
},
|
102 |
+
{
|
103 |
+
"epoch": 0.8951048951048951,
|
104 |
+
"grad_norm": 0.7531686166026066,
|
105 |
+
"learning_rate": 1.3513748240813429e-05,
|
106 |
+
"loss": 0.6362,
|
107 |
+
"step": 140
|
108 |
+
},
|
109 |
+
{
|
110 |
+
"epoch": 0.9590409590409591,
|
111 |
+
"grad_norm": 1.2639265367588755,
|
112 |
+
"learning_rate": 1.2443404061378941e-05,
|
113 |
+
"loss": 0.6476,
|
114 |
+
"step": 150
|
115 |
+
},
|
116 |
+
{
|
117 |
+
"epoch": 0.9974025974025974,
|
118 |
+
"eval_loss": 0.4589642882347107,
|
119 |
+
"eval_runtime": 14.7204,
|
120 |
+
"eval_samples_per_second": 67.933,
|
121 |
+
"eval_steps_per_second": 4.28,
|
122 |
+
"step": 156
|
123 |
+
},
|
124 |
+
{
|
125 |
+
"epoch": 1.022977022977023,
|
126 |
+
"grad_norm": 0.679884478272212,
|
127 |
+
"learning_rate": 1.1342332658176556e-05,
|
128 |
+
"loss": 0.5553,
|
129 |
+
"step": 160
|
130 |
+
},
|
131 |
+
{
|
132 |
+
"epoch": 1.086913086913087,
|
133 |
+
"grad_norm": 1.5094669264122595,
|
134 |
+
"learning_rate": 1.0224380642958052e-05,
|
135 |
+
"loss": 0.4756,
|
136 |
+
"step": 170
|
137 |
+
},
|
138 |
+
{
|
139 |
+
"epoch": 1.150849150849151,
|
140 |
+
"grad_norm": 0.9718462479778894,
|
141 |
+
"learning_rate": 9.103606910965666e-06,
|
142 |
+
"loss": 0.4631,
|
143 |
+
"step": 180
|
144 |
+
},
|
145 |
+
{
|
146 |
+
"epoch": 1.2147852147852147,
|
147 |
+
"grad_norm": 0.8605924611208216,
|
148 |
+
"learning_rate": 7.994105842167274e-06,
|
149 |
+
"loss": 0.4556,
|
150 |
+
"step": 190
|
151 |
+
},
|
152 |
+
{
|
153 |
+
"epoch": 1.2787212787212787,
|
154 |
+
"grad_norm": 0.8216831927901586,
|
155 |
+
"learning_rate": 6.909830056250527e-06,
|
156 |
+
"loss": 0.4543,
|
157 |
+
"step": 200
|
158 |
+
},
|
159 |
+
{
|
160 |
+
"epoch": 1.3426573426573427,
|
161 |
+
"grad_norm": 0.7371920955382064,
|
162 |
+
"learning_rate": 5.864414950334796e-06,
|
163 |
+
"loss": 0.4646,
|
164 |
+
"step": 210
|
165 |
+
},
|
166 |
+
{
|
167 |
+
"epoch": 1.4065934065934065,
|
168 |
+
"grad_norm": 0.6686619113001689,
|
169 |
+
"learning_rate": 4.87100722594094e-06,
|
170 |
+
"loss": 0.4512,
|
171 |
+
"step": 220
|
172 |
+
},
|
173 |
+
{
|
174 |
+
"epoch": 1.4705294705294705,
|
175 |
+
"grad_norm": 0.9735666328660604,
|
176 |
+
"learning_rate": 3.942099561591802e-06,
|
177 |
+
"loss": 0.4536,
|
178 |
+
"step": 230
|
179 |
+
},
|
180 |
+
{
|
181 |
+
"epoch": 1.5344655344655345,
|
182 |
+
"grad_norm": 0.8730632761771147,
|
183 |
+
"learning_rate": 3.089373510131354e-06,
|
184 |
+
"loss": 0.4431,
|
185 |
+
"step": 240
|
186 |
+
},
|
187 |
+
{
|
188 |
+
"epoch": 1.5984015984015985,
|
189 |
+
"grad_norm": 0.7626268236928374,
|
190 |
+
"learning_rate": 2.323552596419889e-06,
|
191 |
+
"loss": 0.4482,
|
192 |
+
"step": 250
|
193 |
+
},
|
194 |
+
{
|
195 |
+
"epoch": 1.6623376623376624,
|
196 |
+
"grad_norm": 0.732159467773922,
|
197 |
+
"learning_rate": 1.6542674627869738e-06,
|
198 |
+
"loss": 0.447,
|
199 |
+
"step": 260
|
200 |
+
},
|
201 |
+
{
|
202 |
+
"epoch": 1.7262737262737264,
|
203 |
+
"grad_norm": 0.6142439228810679,
|
204 |
+
"learning_rate": 1.0899347581163222e-06,
|
205 |
+
"loss": 0.454,
|
206 |
+
"step": 270
|
207 |
+
},
|
208 |
+
{
|
209 |
+
"epoch": 1.7902097902097902,
|
210 |
+
"grad_norm": 0.887179653704021,
|
211 |
+
"learning_rate": 6.37651293602628e-07,
|
212 |
+
"loss": 0.4459,
|
213 |
+
"step": 280
|
214 |
+
},
|
215 |
+
{
|
216 |
+
"epoch": 1.8541458541458542,
|
217 |
+
"grad_norm": 0.9443697905388456,
|
218 |
+
"learning_rate": 3.0310479623313125e-07,
|
219 |
+
"loss": 0.4389,
|
220 |
+
"step": 290
|
221 |
+
},
|
222 |
+
{
|
223 |
+
"epoch": 1.918081918081918,
|
224 |
+
"grad_norm": 0.7646985408632654,
|
225 |
+
"learning_rate": 9.0502382320653e-08,
|
226 |
+
"loss": 0.4491,
|
227 |
+
"step": 300
|
228 |
+
},
|
229 |
+
{
|
230 |
+
"epoch": 1.982017982017982,
|
231 |
+
"grad_norm": 0.8089131548200502,
|
232 |
+
"learning_rate": 2.5176505749346937e-09,
|
233 |
+
"loss": 0.4531,
|
234 |
+
"step": 310
|
235 |
+
},
|
236 |
+
{
|
237 |
+
"epoch": 1.9948051948051948,
|
238 |
+
"eval_loss": 0.36759093403816223,
|
239 |
+
"eval_runtime": 17.3353,
|
240 |
+
"eval_samples_per_second": 57.686,
|
241 |
+
"eval_steps_per_second": 3.634,
|
242 |
+
"step": 312
|
243 |
+
},
|
244 |
+
{
|
245 |
+
"epoch": 1.9948051948051948,
|
246 |
+
"step": 312,
|
247 |
+
"total_flos": 7897890299904.0,
|
248 |
+
"train_loss": 0.556142369332986,
|
249 |
+
"train_runtime": 8555.603,
|
250 |
+
"train_samples_per_second": 4.68,
|
251 |
+
"train_steps_per_second": 0.036
|
252 |
+
}
|
253 |
+
],
|
254 |
+
"logging_steps": 10,
|
255 |
+
"max_steps": 312,
|
256 |
+
"num_input_tokens_seen": 0,
|
257 |
+
"num_train_epochs": 2,
|
258 |
+
"save_steps": 100,
|
259 |
+
"stateful_callbacks": {
|
260 |
+
"TrainerControl": {
|
261 |
+
"args": {
|
262 |
+
"should_epoch_stop": false,
|
263 |
+
"should_evaluate": false,
|
264 |
+
"should_log": false,
|
265 |
+
"should_save": true,
|
266 |
+
"should_training_stop": true
|
267 |
+
},
|
268 |
+
"attributes": {}
|
269 |
+
}
|
270 |
+
},
|
271 |
+
"total_flos": 7897890299904.0,
|
272 |
+
"train_batch_size": 1,
|
273 |
+
"trial_name": null,
|
274 |
+
"trial_params": null
|
275 |
+
}
|