scottsuk0306
commited on
Commit
•
1c92f7a
1
Parent(s):
9f43479
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 +199 -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-math-case-6
|
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-math-case-6
|
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.0198
|
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 |
+
| 0.8827 | 1.0 | 5 | 0.7429 |
|
60 |
+
| 0.6709 | 2.0 | 10 | 0.5531 |
|
61 |
+
| 0.5071 | 3.0 | 15 | 0.4035 |
|
62 |
+
| 0.3519 | 4.0 | 20 | 0.2455 |
|
63 |
+
| 0.2036 | 5.0 | 25 | 0.1302 |
|
64 |
+
| 0.1035 | 6.0 | 30 | 0.0602 |
|
65 |
+
| 0.0527 | 7.0 | 35 | 0.0356 |
|
66 |
+
| 0.0321 | 8.0 | 40 | 0.0249 |
|
67 |
+
| 0.0236 | 9.0 | 45 | 0.0206 |
|
68 |
+
| 0.0202 | 10.0 | 50 | 0.0198 |
|
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": 20937965568000.0,
|
4 |
+
"train_loss": 0.28585494235157966,
|
5 |
+
"train_runtime": 720.2074,
|
6 |
+
"train_samples": 4000,
|
7 |
+
"train_samples_per_second": 3.652,
|
8 |
+
"train_steps_per_second": 0.069
|
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": 20937965568000.0,
|
4 |
+
"train_loss": 0.28585494235157966,
|
5 |
+
"train_runtime": 720.2074,
|
6 |
+
"train_samples": 4000,
|
7 |
+
"train_samples_per_second": 3.652,
|
8 |
+
"train_steps_per_second": 0.069
|
9 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,199 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 10.0,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 50,
|
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.2,
|
13 |
+
"grad_norm": 24.890761216715067,
|
14 |
+
"learning_rate": 5e-06,
|
15 |
+
"loss": 0.9347,
|
16 |
+
"step": 1
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 1.0,
|
20 |
+
"grad_norm": 6.27322744929223,
|
21 |
+
"learning_rate": 9.903926402016153e-06,
|
22 |
+
"loss": 0.8827,
|
23 |
+
"step": 5
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 1.0,
|
27 |
+
"eval_loss": 0.7428836822509766,
|
28 |
+
"eval_runtime": 13.5132,
|
29 |
+
"eval_samples_per_second": 19.463,
|
30 |
+
"eval_steps_per_second": 0.37,
|
31 |
+
"step": 5
|
32 |
+
},
|
33 |
+
{
|
34 |
+
"epoch": 2.0,
|
35 |
+
"grad_norm": 3.4763297090491645,
|
36 |
+
"learning_rate": 9.330127018922195e-06,
|
37 |
+
"loss": 0.6709,
|
38 |
+
"step": 10
|
39 |
+
},
|
40 |
+
{
|
41 |
+
"epoch": 2.0,
|
42 |
+
"eval_loss": 0.5530853867530823,
|
43 |
+
"eval_runtime": 13.3663,
|
44 |
+
"eval_samples_per_second": 19.676,
|
45 |
+
"eval_steps_per_second": 0.374,
|
46 |
+
"step": 10
|
47 |
+
},
|
48 |
+
{
|
49 |
+
"epoch": 3.0,
|
50 |
+
"grad_norm": 3.9858549062244277,
|
51 |
+
"learning_rate": 8.296729075500345e-06,
|
52 |
+
"loss": 0.5071,
|
53 |
+
"step": 15
|
54 |
+
},
|
55 |
+
{
|
56 |
+
"epoch": 3.0,
|
57 |
+
"eval_loss": 0.4035380482673645,
|
58 |
+
"eval_runtime": 13.3538,
|
59 |
+
"eval_samples_per_second": 19.695,
|
60 |
+
"eval_steps_per_second": 0.374,
|
61 |
+
"step": 15
|
62 |
+
},
|
63 |
+
{
|
64 |
+
"epoch": 4.0,
|
65 |
+
"grad_norm": 4.012038571620908,
|
66 |
+
"learning_rate": 6.913417161825449e-06,
|
67 |
+
"loss": 0.3519,
|
68 |
+
"step": 20
|
69 |
+
},
|
70 |
+
{
|
71 |
+
"epoch": 4.0,
|
72 |
+
"eval_loss": 0.24551308155059814,
|
73 |
+
"eval_runtime": 13.3982,
|
74 |
+
"eval_samples_per_second": 19.63,
|
75 |
+
"eval_steps_per_second": 0.373,
|
76 |
+
"step": 20
|
77 |
+
},
|
78 |
+
{
|
79 |
+
"epoch": 5.0,
|
80 |
+
"grad_norm": 3.9052862275719975,
|
81 |
+
"learning_rate": 5.327015646150716e-06,
|
82 |
+
"loss": 0.2036,
|
83 |
+
"step": 25
|
84 |
+
},
|
85 |
+
{
|
86 |
+
"epoch": 5.0,
|
87 |
+
"eval_loss": 0.1301579624414444,
|
88 |
+
"eval_runtime": 13.3478,
|
89 |
+
"eval_samples_per_second": 19.704,
|
90 |
+
"eval_steps_per_second": 0.375,
|
91 |
+
"step": 25
|
92 |
+
},
|
93 |
+
{
|
94 |
+
"epoch": 6.0,
|
95 |
+
"grad_norm": 2.7865230440629105,
|
96 |
+
"learning_rate": 3.705904774487396e-06,
|
97 |
+
"loss": 0.1035,
|
98 |
+
"step": 30
|
99 |
+
},
|
100 |
+
{
|
101 |
+
"epoch": 6.0,
|
102 |
+
"eval_loss": 0.060157448053359985,
|
103 |
+
"eval_runtime": 13.3892,
|
104 |
+
"eval_samples_per_second": 19.643,
|
105 |
+
"eval_steps_per_second": 0.373,
|
106 |
+
"step": 30
|
107 |
+
},
|
108 |
+
{
|
109 |
+
"epoch": 7.0,
|
110 |
+
"grad_norm": 2.798134146722217,
|
111 |
+
"learning_rate": 2.2221488349019903e-06,
|
112 |
+
"loss": 0.0527,
|
113 |
+
"step": 35
|
114 |
+
},
|
115 |
+
{
|
116 |
+
"epoch": 7.0,
|
117 |
+
"eval_loss": 0.03557642176747322,
|
118 |
+
"eval_runtime": 13.3867,
|
119 |
+
"eval_samples_per_second": 19.646,
|
120 |
+
"eval_steps_per_second": 0.374,
|
121 |
+
"step": 35
|
122 |
+
},
|
123 |
+
{
|
124 |
+
"epoch": 8.0,
|
125 |
+
"grad_norm": 1.2741605399529363,
|
126 |
+
"learning_rate": 1.0332332985438248e-06,
|
127 |
+
"loss": 0.0321,
|
128 |
+
"step": 40
|
129 |
+
},
|
130 |
+
{
|
131 |
+
"epoch": 8.0,
|
132 |
+
"eval_loss": 0.024869758635759354,
|
133 |
+
"eval_runtime": 13.3698,
|
134 |
+
"eval_samples_per_second": 19.671,
|
135 |
+
"eval_steps_per_second": 0.374,
|
136 |
+
"step": 40
|
137 |
+
},
|
138 |
+
{
|
139 |
+
"epoch": 9.0,
|
140 |
+
"grad_norm": 0.6581840143146274,
|
141 |
+
"learning_rate": 2.653493525244721e-07,
|
142 |
+
"loss": 0.0236,
|
143 |
+
"step": 45
|
144 |
+
},
|
145 |
+
{
|
146 |
+
"epoch": 9.0,
|
147 |
+
"eval_loss": 0.02064005844295025,
|
148 |
+
"eval_runtime": 13.4054,
|
149 |
+
"eval_samples_per_second": 19.619,
|
150 |
+
"eval_steps_per_second": 0.373,
|
151 |
+
"step": 45
|
152 |
+
},
|
153 |
+
{
|
154 |
+
"epoch": 10.0,
|
155 |
+
"grad_norm": 0.4976189909335096,
|
156 |
+
"learning_rate": 0.0,
|
157 |
+
"loss": 0.0202,
|
158 |
+
"step": 50
|
159 |
+
},
|
160 |
+
{
|
161 |
+
"epoch": 10.0,
|
162 |
+
"eval_loss": 0.019776934757828712,
|
163 |
+
"eval_runtime": 13.3303,
|
164 |
+
"eval_samples_per_second": 19.729,
|
165 |
+
"eval_steps_per_second": 0.375,
|
166 |
+
"step": 50
|
167 |
+
},
|
168 |
+
{
|
169 |
+
"epoch": 10.0,
|
170 |
+
"step": 50,
|
171 |
+
"total_flos": 20937965568000.0,
|
172 |
+
"train_loss": 0.28585494235157966,
|
173 |
+
"train_runtime": 720.2074,
|
174 |
+
"train_samples_per_second": 3.652,
|
175 |
+
"train_steps_per_second": 0.069
|
176 |
+
}
|
177 |
+
],
|
178 |
+
"logging_steps": 5,
|
179 |
+
"max_steps": 50,
|
180 |
+
"num_input_tokens_seen": 0,
|
181 |
+
"num_train_epochs": 10,
|
182 |
+
"save_steps": 100,
|
183 |
+
"stateful_callbacks": {
|
184 |
+
"TrainerControl": {
|
185 |
+
"args": {
|
186 |
+
"should_epoch_stop": false,
|
187 |
+
"should_evaluate": false,
|
188 |
+
"should_log": false,
|
189 |
+
"should_save": true,
|
190 |
+
"should_training_stop": true
|
191 |
+
},
|
192 |
+
"attributes": {}
|
193 |
+
}
|
194 |
+
},
|
195 |
+
"total_flos": 20937965568000.0,
|
196 |
+
"train_batch_size": 8,
|
197 |
+
"trial_name": null,
|
198 |
+
"trial_params": null
|
199 |
+
}
|