scottsuk0306
commited on
Commit
•
91c05b0
1
Parent(s):
eab91ad
Model save
Browse files- README.md +76 -0
- all_results.json +9 -0
- generation_config.json +6 -0
- train_results.json +9 -0
- trainer_state.json +227 -0
README.md
ADDED
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
license: apache-2.0
|
4 |
+
base_model: alignment-handbook/zephyr-7b-sft-full
|
5 |
+
tags:
|
6 |
+
- trl
|
7 |
+
- sft
|
8 |
+
- generated_from_trainer
|
9 |
+
datasets:
|
10 |
+
- generator
|
11 |
+
model-index:
|
12 |
+
- name: zephyr-7b-stem-case-7
|
13 |
+
results: []
|
14 |
+
---
|
15 |
+
|
16 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
17 |
+
should probably proofread and complete it, then remove this comment. -->
|
18 |
+
|
19 |
+
# zephyr-7b-stem-case-7
|
20 |
+
|
21 |
+
This model is a fine-tuned version of [alignment-handbook/zephyr-7b-sft-full](https://huggingface.co/alignment-handbook/zephyr-7b-sft-full) on the generator dataset.
|
22 |
+
It achieves the following results on the evaluation set:
|
23 |
+
- Loss: 0.0095
|
24 |
+
|
25 |
+
## Model description
|
26 |
+
|
27 |
+
More information needed
|
28 |
+
|
29 |
+
## Intended uses & limitations
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Training and evaluation data
|
34 |
+
|
35 |
+
More information needed
|
36 |
+
|
37 |
+
## Training procedure
|
38 |
+
|
39 |
+
### Training hyperparameters
|
40 |
+
|
41 |
+
The following hyperparameters were used during training:
|
42 |
+
- learning_rate: 1e-05
|
43 |
+
- train_batch_size: 8
|
44 |
+
- eval_batch_size: 8
|
45 |
+
- seed: 42
|
46 |
+
- distributed_type: multi-GPU
|
47 |
+
- num_devices: 8
|
48 |
+
- total_train_batch_size: 64
|
49 |
+
- total_eval_batch_size: 64
|
50 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
51 |
+
- lr_scheduler_type: cosine
|
52 |
+
- lr_scheduler_warmup_ratio: 0.03
|
53 |
+
- num_epochs: 10
|
54 |
+
|
55 |
+
### Training results
|
56 |
+
|
57 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
58 |
+
|:-------------:|:-----:|:----:|:---------------:|
|
59 |
+
| 1.035 | 1.0 | 7 | 0.8066 |
|
60 |
+
| 0.8612 | 2.0 | 14 | 0.5046 |
|
61 |
+
| 0.4464 | 3.0 | 21 | 0.2836 |
|
62 |
+
| 0.2872 | 4.0 | 28 | 0.1444 |
|
63 |
+
| 0.1132 | 5.0 | 35 | 0.0621 |
|
64 |
+
| 0.0555 | 6.0 | 42 | 0.0280 |
|
65 |
+
| 0.0371 | 7.0 | 49 | 0.0172 |
|
66 |
+
| 0.017 | 8.0 | 56 | 0.0122 |
|
67 |
+
| 0.0126 | 9.0 | 63 | 0.0100 |
|
68 |
+
| 0.0099 | 10.0 | 70 | 0.0095 |
|
69 |
+
|
70 |
+
|
71 |
+
### Framework versions
|
72 |
+
|
73 |
+
- Transformers 4.44.2
|
74 |
+
- Pytorch 2.4.1+cu121
|
75 |
+
- Datasets 3.0.0
|
76 |
+
- Tokenizers 0.19.1
|
all_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 10.0,
|
3 |
+
"total_flos": 29313151795200.0,
|
4 |
+
"train_loss": 0.2696564427443913,
|
5 |
+
"train_runtime": 988.8828,
|
6 |
+
"train_samples": 2847,
|
7 |
+
"train_samples_per_second": 4.53,
|
8 |
+
"train_steps_per_second": 0.071
|
9 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 1,
|
4 |
+
"eos_token_id": 2,
|
5 |
+
"transformers_version": "4.44.2"
|
6 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 10.0,
|
3 |
+
"total_flos": 29313151795200.0,
|
4 |
+
"train_loss": 0.2696564427443913,
|
5 |
+
"train_runtime": 988.8828,
|
6 |
+
"train_samples": 2847,
|
7 |
+
"train_samples_per_second": 4.53,
|
8 |
+
"train_steps_per_second": 0.071
|
9 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,227 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 10.0,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 70,
|
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.14285714285714285,
|
13 |
+
"grad_norm": 7.2481944316327,
|
14 |
+
"learning_rate": 3.3333333333333333e-06,
|
15 |
+
"loss": 1.1087,
|
16 |
+
"step": 1
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 0.7142857142857143,
|
20 |
+
"grad_norm": 6.492266623182951,
|
21 |
+
"learning_rate": 9.978029910109491e-06,
|
22 |
+
"loss": 1.035,
|
23 |
+
"step": 5
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 1.0,
|
27 |
+
"eval_loss": 0.8065708875656128,
|
28 |
+
"eval_runtime": 18.8479,
|
29 |
+
"eval_samples_per_second": 23.769,
|
30 |
+
"eval_steps_per_second": 0.371,
|
31 |
+
"step": 7
|
32 |
+
},
|
33 |
+
{
|
34 |
+
"epoch": 1.4285714285714286,
|
35 |
+
"grad_norm": 4.2798539792652965,
|
36 |
+
"learning_rate": 9.733078376452172e-06,
|
37 |
+
"loss": 0.8612,
|
38 |
+
"step": 10
|
39 |
+
},
|
40 |
+
{
|
41 |
+
"epoch": 2.0,
|
42 |
+
"eval_loss": 0.5046278834342957,
|
43 |
+
"eval_runtime": 18.7201,
|
44 |
+
"eval_samples_per_second": 23.931,
|
45 |
+
"eval_steps_per_second": 0.374,
|
46 |
+
"step": 14
|
47 |
+
},
|
48 |
+
{
|
49 |
+
"epoch": 2.142857142857143,
|
50 |
+
"grad_norm": 3.8618869981058155,
|
51 |
+
"learning_rate": 9.229160296295488e-06,
|
52 |
+
"loss": 0.6608,
|
53 |
+
"step": 15
|
54 |
+
},
|
55 |
+
{
|
56 |
+
"epoch": 2.857142857142857,
|
57 |
+
"grad_norm": 2.5003252439116106,
|
58 |
+
"learning_rate": 8.49384713889421e-06,
|
59 |
+
"loss": 0.4464,
|
60 |
+
"step": 20
|
61 |
+
},
|
62 |
+
{
|
63 |
+
"epoch": 3.0,
|
64 |
+
"eval_loss": 0.2836165726184845,
|
65 |
+
"eval_runtime": 18.7006,
|
66 |
+
"eval_samples_per_second": 23.956,
|
67 |
+
"eval_steps_per_second": 0.374,
|
68 |
+
"step": 21
|
69 |
+
},
|
70 |
+
{
|
71 |
+
"epoch": 3.571428571428571,
|
72 |
+
"grad_norm": 3.8783540297730106,
|
73 |
+
"learning_rate": 7.56737096757421e-06,
|
74 |
+
"loss": 0.2872,
|
75 |
+
"step": 25
|
76 |
+
},
|
77 |
+
{
|
78 |
+
"epoch": 4.0,
|
79 |
+
"eval_loss": 0.14440329372882843,
|
80 |
+
"eval_runtime": 18.7131,
|
81 |
+
"eval_samples_per_second": 23.94,
|
82 |
+
"eval_steps_per_second": 0.374,
|
83 |
+
"step": 28
|
84 |
+
},
|
85 |
+
{
|
86 |
+
"epoch": 4.285714285714286,
|
87 |
+
"grad_norm": 2.6373488856495295,
|
88 |
+
"learning_rate": 6.500423175001705e-06,
|
89 |
+
"loss": 0.1884,
|
90 |
+
"step": 30
|
91 |
+
},
|
92 |
+
{
|
93 |
+
"epoch": 5.0,
|
94 |
+
"grad_norm": 2.524435640105693,
|
95 |
+
"learning_rate": 5.351380944726465e-06,
|
96 |
+
"loss": 0.1132,
|
97 |
+
"step": 35
|
98 |
+
},
|
99 |
+
{
|
100 |
+
"epoch": 5.0,
|
101 |
+
"eval_loss": 0.062061700969934464,
|
102 |
+
"eval_runtime": 18.7255,
|
103 |
+
"eval_samples_per_second": 23.925,
|
104 |
+
"eval_steps_per_second": 0.374,
|
105 |
+
"step": 35
|
106 |
+
},
|
107 |
+
{
|
108 |
+
"epoch": 5.714285714285714,
|
109 |
+
"grad_norm": 1.7870565823017404,
|
110 |
+
"learning_rate": 4.183113190907349e-06,
|
111 |
+
"loss": 0.0555,
|
112 |
+
"step": 40
|
113 |
+
},
|
114 |
+
{
|
115 |
+
"epoch": 6.0,
|
116 |
+
"eval_loss": 0.028033925220370293,
|
117 |
+
"eval_runtime": 18.7711,
|
118 |
+
"eval_samples_per_second": 23.866,
|
119 |
+
"eval_steps_per_second": 0.373,
|
120 |
+
"step": 42
|
121 |
+
},
|
122 |
+
{
|
123 |
+
"epoch": 6.428571428571429,
|
124 |
+
"grad_norm": 0.93279002933571,
|
125 |
+
"learning_rate": 3.059540736638751e-06,
|
126 |
+
"loss": 0.0371,
|
127 |
+
"step": 45
|
128 |
+
},
|
129 |
+
{
|
130 |
+
"epoch": 7.0,
|
131 |
+
"eval_loss": 0.017189698293805122,
|
132 |
+
"eval_runtime": 18.7331,
|
133 |
+
"eval_samples_per_second": 23.915,
|
134 |
+
"eval_steps_per_second": 0.374,
|
135 |
+
"step": 49
|
136 |
+
},
|
137 |
+
{
|
138 |
+
"epoch": 7.142857142857143,
|
139 |
+
"grad_norm": 0.6713728183393005,
|
140 |
+
"learning_rate": 2.042138937932388e-06,
|
141 |
+
"loss": 0.0254,
|
142 |
+
"step": 50
|
143 |
+
},
|
144 |
+
{
|
145 |
+
"epoch": 7.857142857142857,
|
146 |
+
"grad_norm": 0.6733311496948943,
|
147 |
+
"learning_rate": 1.186574109448091e-06,
|
148 |
+
"loss": 0.017,
|
149 |
+
"step": 55
|
150 |
+
},
|
151 |
+
{
|
152 |
+
"epoch": 8.0,
|
153 |
+
"eval_loss": 0.012202958576381207,
|
154 |
+
"eval_runtime": 18.6716,
|
155 |
+
"eval_samples_per_second": 23.994,
|
156 |
+
"eval_steps_per_second": 0.375,
|
157 |
+
"step": 56
|
158 |
+
},
|
159 |
+
{
|
160 |
+
"epoch": 8.571428571428571,
|
161 |
+
"grad_norm": 0.3925640628854087,
|
162 |
+
"learning_rate": 5.396577872130676e-07,
|
163 |
+
"loss": 0.0126,
|
164 |
+
"step": 60
|
165 |
+
},
|
166 |
+
{
|
167 |
+
"epoch": 9.0,
|
168 |
+
"eval_loss": 0.0099651413038373,
|
169 |
+
"eval_runtime": 18.7021,
|
170 |
+
"eval_samples_per_second": 23.955,
|
171 |
+
"eval_steps_per_second": 0.374,
|
172 |
+
"step": 63
|
173 |
+
},
|
174 |
+
{
|
175 |
+
"epoch": 9.285714285714286,
|
176 |
+
"grad_norm": 0.30666444604194676,
|
177 |
+
"learning_rate": 1.3678547337593494e-07,
|
178 |
+
"loss": 0.0107,
|
179 |
+
"step": 65
|
180 |
+
},
|
181 |
+
{
|
182 |
+
"epoch": 10.0,
|
183 |
+
"grad_norm": 0.3132195964128779,
|
184 |
+
"learning_rate": 0.0,
|
185 |
+
"loss": 0.0099,
|
186 |
+
"step": 70
|
187 |
+
},
|
188 |
+
{
|
189 |
+
"epoch": 10.0,
|
190 |
+
"eval_loss": 0.009540632367134094,
|
191 |
+
"eval_runtime": 18.6112,
|
192 |
+
"eval_samples_per_second": 24.071,
|
193 |
+
"eval_steps_per_second": 0.376,
|
194 |
+
"step": 70
|
195 |
+
},
|
196 |
+
{
|
197 |
+
"epoch": 10.0,
|
198 |
+
"step": 70,
|
199 |
+
"total_flos": 29313151795200.0,
|
200 |
+
"train_loss": 0.2696564427443913,
|
201 |
+
"train_runtime": 988.8828,
|
202 |
+
"train_samples_per_second": 4.53,
|
203 |
+
"train_steps_per_second": 0.071
|
204 |
+
}
|
205 |
+
],
|
206 |
+
"logging_steps": 5,
|
207 |
+
"max_steps": 70,
|
208 |
+
"num_input_tokens_seen": 0,
|
209 |
+
"num_train_epochs": 10,
|
210 |
+
"save_steps": 100,
|
211 |
+
"stateful_callbacks": {
|
212 |
+
"TrainerControl": {
|
213 |
+
"args": {
|
214 |
+
"should_epoch_stop": false,
|
215 |
+
"should_evaluate": false,
|
216 |
+
"should_log": false,
|
217 |
+
"should_save": true,
|
218 |
+
"should_training_stop": true
|
219 |
+
},
|
220 |
+
"attributes": {}
|
221 |
+
}
|
222 |
+
},
|
223 |
+
"total_flos": 29313151795200.0,
|
224 |
+
"train_batch_size": 8,
|
225 |
+
"trial_name": null,
|
226 |
+
"trial_params": null
|
227 |
+
}
|