scottsuk0306
commited on
Commit
•
b76a69c
1
Parent(s):
7b5741e
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-test
|
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-test
|
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.0178
|
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: 16
|
44 |
+
- eval_batch_size: 8
|
45 |
+
- seed: 42
|
46 |
+
- distributed_type: multi-GPU
|
47 |
+
- num_devices: 4
|
48 |
+
- total_train_batch_size: 64
|
49 |
+
- total_eval_batch_size: 32
|
50 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
51 |
+
- lr_scheduler_type: cosine
|
52 |
+
- lr_scheduler_warmup_ratio: 0.1
|
53 |
+
- num_epochs: 10
|
54 |
+
|
55 |
+
### Training results
|
56 |
+
|
57 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
58 |
+
|:-------------:|:-----:|:----:|:---------------:|
|
59 |
+
| 0.8684 | 1.0 | 5 | 0.7914 |
|
60 |
+
| 0.7031 | 2.0 | 10 | 0.5349 |
|
61 |
+
| 0.4888 | 3.0 | 15 | 0.3412 |
|
62 |
+
| 0.302 | 4.0 | 20 | 0.1902 |
|
63 |
+
| 0.1643 | 5.0 | 25 | 0.0890 |
|
64 |
+
| 0.0778 | 6.0 | 30 | 0.0416 |
|
65 |
+
| 0.0404 | 7.0 | 35 | 0.0280 |
|
66 |
+
| 0.0279 | 8.0 | 40 | 0.0219 |
|
67 |
+
| 0.0214 | 9.0 | 45 | 0.0186 |
|
68 |
+
| 0.0183 | 10.0 | 50 | 0.0178 |
|
69 |
+
|
70 |
+
|
71 |
+
### Framework versions
|
72 |
+
|
73 |
+
- Transformers 4.44.2
|
74 |
+
- Pytorch 2.4.1+cu124
|
75 |
+
- Datasets 2.21.0
|
76 |
+
- Tokenizers 0.19.1
|
all_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 10.0,
|
3 |
+
"total_flos": 10468982784000.0,
|
4 |
+
"train_loss": 0.2729184678196907,
|
5 |
+
"train_runtime": 352.114,
|
6 |
+
"train_samples": 2000,
|
7 |
+
"train_samples_per_second": 8.832,
|
8 |
+
"train_steps_per_second": 0.142
|
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": 10468982784000.0,
|
4 |
+
"train_loss": 0.2729184678196907,
|
5 |
+
"train_runtime": 352.114,
|
6 |
+
"train_samples": 2000,
|
7 |
+
"train_samples_per_second": 8.832,
|
8 |
+
"train_steps_per_second": 0.142
|
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": 18.864488225514396,
|
14 |
+
"learning_rate": 2.0000000000000003e-06,
|
15 |
+
"loss": 0.9524,
|
16 |
+
"step": 1
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 1.0,
|
20 |
+
"grad_norm": 16.624666091321274,
|
21 |
+
"learning_rate": 1e-05,
|
22 |
+
"loss": 0.8684,
|
23 |
+
"step": 5
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 1.0,
|
27 |
+
"eval_loss": 0.7913689017295837,
|
28 |
+
"eval_runtime": 5.7172,
|
29 |
+
"eval_samples_per_second": 54.397,
|
30 |
+
"eval_steps_per_second": 1.749,
|
31 |
+
"step": 5
|
32 |
+
},
|
33 |
+
{
|
34 |
+
"epoch": 2.0,
|
35 |
+
"grad_norm": 4.401290119342954,
|
36 |
+
"learning_rate": 9.698463103929542e-06,
|
37 |
+
"loss": 0.7031,
|
38 |
+
"step": 10
|
39 |
+
},
|
40 |
+
{
|
41 |
+
"epoch": 2.0,
|
42 |
+
"eval_loss": 0.5348705053329468,
|
43 |
+
"eval_runtime": 5.7154,
|
44 |
+
"eval_samples_per_second": 54.414,
|
45 |
+
"eval_steps_per_second": 1.75,
|
46 |
+
"step": 10
|
47 |
+
},
|
48 |
+
{
|
49 |
+
"epoch": 3.0,
|
50 |
+
"grad_norm": 3.029002967994018,
|
51 |
+
"learning_rate": 8.83022221559489e-06,
|
52 |
+
"loss": 0.4888,
|
53 |
+
"step": 15
|
54 |
+
},
|
55 |
+
{
|
56 |
+
"epoch": 3.0,
|
57 |
+
"eval_loss": 0.34116050601005554,
|
58 |
+
"eval_runtime": 5.7277,
|
59 |
+
"eval_samples_per_second": 54.298,
|
60 |
+
"eval_steps_per_second": 1.746,
|
61 |
+
"step": 15
|
62 |
+
},
|
63 |
+
{
|
64 |
+
"epoch": 4.0,
|
65 |
+
"grad_norm": 3.1549630858744604,
|
66 |
+
"learning_rate": 7.500000000000001e-06,
|
67 |
+
"loss": 0.302,
|
68 |
+
"step": 20
|
69 |
+
},
|
70 |
+
{
|
71 |
+
"epoch": 4.0,
|
72 |
+
"eval_loss": 0.19024085998535156,
|
73 |
+
"eval_runtime": 5.7234,
|
74 |
+
"eval_samples_per_second": 54.338,
|
75 |
+
"eval_steps_per_second": 1.747,
|
76 |
+
"step": 20
|
77 |
+
},
|
78 |
+
{
|
79 |
+
"epoch": 5.0,
|
80 |
+
"grad_norm": 4.126405291248831,
|
81 |
+
"learning_rate": 5.8682408883346535e-06,
|
82 |
+
"loss": 0.1643,
|
83 |
+
"step": 25
|
84 |
+
},
|
85 |
+
{
|
86 |
+
"epoch": 5.0,
|
87 |
+
"eval_loss": 0.08896404504776001,
|
88 |
+
"eval_runtime": 5.7273,
|
89 |
+
"eval_samples_per_second": 54.301,
|
90 |
+
"eval_steps_per_second": 1.746,
|
91 |
+
"step": 25
|
92 |
+
},
|
93 |
+
{
|
94 |
+
"epoch": 6.0,
|
95 |
+
"grad_norm": 2.870513503322164,
|
96 |
+
"learning_rate": 4.131759111665349e-06,
|
97 |
+
"loss": 0.0778,
|
98 |
+
"step": 30
|
99 |
+
},
|
100 |
+
{
|
101 |
+
"epoch": 6.0,
|
102 |
+
"eval_loss": 0.04157733544707298,
|
103 |
+
"eval_runtime": 5.7247,
|
104 |
+
"eval_samples_per_second": 54.326,
|
105 |
+
"eval_steps_per_second": 1.747,
|
106 |
+
"step": 30
|
107 |
+
},
|
108 |
+
{
|
109 |
+
"epoch": 7.0,
|
110 |
+
"grad_norm": 1.7040194155687554,
|
111 |
+
"learning_rate": 2.5000000000000015e-06,
|
112 |
+
"loss": 0.0404,
|
113 |
+
"step": 35
|
114 |
+
},
|
115 |
+
{
|
116 |
+
"epoch": 7.0,
|
117 |
+
"eval_loss": 0.027967050671577454,
|
118 |
+
"eval_runtime": 5.7274,
|
119 |
+
"eval_samples_per_second": 54.301,
|
120 |
+
"eval_steps_per_second": 1.746,
|
121 |
+
"step": 35
|
122 |
+
},
|
123 |
+
{
|
124 |
+
"epoch": 8.0,
|
125 |
+
"grad_norm": 1.2638859662186757,
|
126 |
+
"learning_rate": 1.1697777844051105e-06,
|
127 |
+
"loss": 0.0279,
|
128 |
+
"step": 40
|
129 |
+
},
|
130 |
+
{
|
131 |
+
"epoch": 8.0,
|
132 |
+
"eval_loss": 0.021927356719970703,
|
133 |
+
"eval_runtime": 5.7381,
|
134 |
+
"eval_samples_per_second": 54.199,
|
135 |
+
"eval_steps_per_second": 1.743,
|
136 |
+
"step": 40
|
137 |
+
},
|
138 |
+
{
|
139 |
+
"epoch": 9.0,
|
140 |
+
"grad_norm": 0.9658748602996367,
|
141 |
+
"learning_rate": 3.015368960704584e-07,
|
142 |
+
"loss": 0.0214,
|
143 |
+
"step": 45
|
144 |
+
},
|
145 |
+
{
|
146 |
+
"epoch": 9.0,
|
147 |
+
"eval_loss": 0.018554512411355972,
|
148 |
+
"eval_runtime": 5.7334,
|
149 |
+
"eval_samples_per_second": 54.244,
|
150 |
+
"eval_steps_per_second": 1.744,
|
151 |
+
"step": 45
|
152 |
+
},
|
153 |
+
{
|
154 |
+
"epoch": 10.0,
|
155 |
+
"grad_norm": 0.5265240066937839,
|
156 |
+
"learning_rate": 0.0,
|
157 |
+
"loss": 0.0183,
|
158 |
+
"step": 50
|
159 |
+
},
|
160 |
+
{
|
161 |
+
"epoch": 10.0,
|
162 |
+
"eval_loss": 0.017760511487722397,
|
163 |
+
"eval_runtime": 5.6974,
|
164 |
+
"eval_samples_per_second": 54.586,
|
165 |
+
"eval_steps_per_second": 1.755,
|
166 |
+
"step": 50
|
167 |
+
},
|
168 |
+
{
|
169 |
+
"epoch": 10.0,
|
170 |
+
"step": 50,
|
171 |
+
"total_flos": 10468982784000.0,
|
172 |
+
"train_loss": 0.2729184678196907,
|
173 |
+
"train_runtime": 352.114,
|
174 |
+
"train_samples_per_second": 8.832,
|
175 |
+
"train_steps_per_second": 0.142
|
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": 10468982784000.0,
|
196 |
+
"train_batch_size": 16,
|
197 |
+
"trial_name": null,
|
198 |
+
"trial_params": null
|
199 |
+
}
|