stevenjunliu
commited on
Commit
•
26638be
1
Parent(s):
e317669
Model save
Browse files- README.md +3 -11
- all_results.json +5 -5
- model.safetensors +1 -1
- train_results.json +5 -5
- trainer_state.json +173 -40
README.md
CHANGED
@@ -2,16 +2,11 @@
|
|
2 |
license: mit
|
3 |
base_model: gpt2
|
4 |
tags:
|
5 |
-
- alignment-handbook
|
6 |
- trl
|
7 |
- sft
|
8 |
- generated_from_trainer
|
9 |
-
- trl
|
10 |
-
- sft
|
11 |
-
- alignment-handbook
|
12 |
-
- generated_from_trainer
|
13 |
datasets:
|
14 |
-
-
|
15 |
model-index:
|
16 |
- name: gpt2-cpt-white
|
17 |
results: []
|
@@ -22,7 +17,7 @@ should probably proofread and complete it, then remove this comment. -->
|
|
22 |
|
23 |
# gpt2-cpt-white
|
24 |
|
25 |
-
This model is a fine-tuned version of [gpt2](https://huggingface.co/gpt2) on the
|
26 |
|
27 |
## Model description
|
28 |
|
@@ -46,13 +41,10 @@ The following hyperparameters were used during training:
|
|
46 |
- eval_batch_size: 8
|
47 |
- seed: 42
|
48 |
- distributed_type: multi-GPU
|
49 |
-
- num_devices: 2
|
50 |
-
- total_train_batch_size: 32
|
51 |
-
- total_eval_batch_size: 16
|
52 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
53 |
- lr_scheduler_type: cosine
|
54 |
- lr_scheduler_warmup_ratio: 0.1
|
55 |
-
- num_epochs:
|
56 |
|
57 |
### Training results
|
58 |
|
|
|
2 |
license: mit
|
3 |
base_model: gpt2
|
4 |
tags:
|
|
|
5 |
- trl
|
6 |
- sft
|
7 |
- generated_from_trainer
|
|
|
|
|
|
|
|
|
8 |
datasets:
|
9 |
+
- generator
|
10 |
model-index:
|
11 |
- name: gpt2-cpt-white
|
12 |
results: []
|
|
|
17 |
|
18 |
# gpt2-cpt-white
|
19 |
|
20 |
+
This model is a fine-tuned version of [gpt2](https://huggingface.co/gpt2) on the generator dataset.
|
21 |
|
22 |
## Model description
|
23 |
|
|
|
41 |
- eval_batch_size: 8
|
42 |
- seed: 42
|
43 |
- distributed_type: multi-GPU
|
|
|
|
|
|
|
44 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
45 |
- lr_scheduler_type: cosine
|
46 |
- lr_scheduler_warmup_ratio: 0.1
|
47 |
+
- num_epochs: 8.0
|
48 |
|
49 |
### Training results
|
50 |
|
all_results.json
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
{
|
2 |
-
"epoch":
|
3 |
-
"train_loss": 5.
|
4 |
-
"train_runtime":
|
5 |
"train_samples": 91,
|
6 |
-
"train_samples_per_second":
|
7 |
-
"train_steps_per_second":
|
8 |
}
|
|
|
1 |
{
|
2 |
+
"epoch": 8.0,
|
3 |
+
"train_loss": 5.653645019978285,
|
4 |
+
"train_runtime": 83.1481,
|
5 |
"train_samples": 91,
|
6 |
+
"train_samples_per_second": 24.15,
|
7 |
+
"train_steps_per_second": 1.539
|
8 |
}
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 248894656
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d739b2f6e5ebb5f1d67d6a09c779f5d491a40cebc35a5ccae1f04013479c89f4
|
3 |
size 248894656
|
train_results.json
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
{
|
2 |
-
"epoch":
|
3 |
-
"train_loss": 5.
|
4 |
-
"train_runtime":
|
5 |
"train_samples": 91,
|
6 |
-
"train_samples_per_second":
|
7 |
-
"train_steps_per_second":
|
8 |
}
|
|
|
1 |
{
|
2 |
+
"epoch": 8.0,
|
3 |
+
"train_loss": 5.653645019978285,
|
4 |
+
"train_runtime": 83.1481,
|
5 |
"train_samples": 91,
|
6 |
+
"train_samples_per_second": 24.15,
|
7 |
+
"train_steps_per_second": 1.539
|
8 |
}
|
trainer_state.json
CHANGED
@@ -1,78 +1,211 @@
|
|
1 |
{
|
2 |
"best_metric": null,
|
3 |
"best_model_checkpoint": null,
|
4 |
-
"epoch":
|
5 |
"eval_steps": 500,
|
6 |
-
"global_step":
|
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.
|
13 |
-
"grad_norm":
|
14 |
-
"learning_rate":
|
15 |
-
"loss": 6.
|
16 |
"step": 1
|
17 |
},
|
18 |
{
|
19 |
-
"epoch": 0.
|
20 |
-
"grad_norm":
|
21 |
-
"learning_rate":
|
22 |
-
"loss": 6.
|
23 |
"step": 5
|
24 |
},
|
25 |
{
|
26 |
-
"epoch":
|
27 |
-
"grad_norm":
|
28 |
-
"learning_rate": 0.
|
29 |
-
"loss": 6.
|
30 |
"step": 10
|
31 |
},
|
32 |
{
|
33 |
-
"epoch":
|
34 |
-
"grad_norm":
|
35 |
-
"learning_rate": 0.
|
36 |
-
"loss":
|
37 |
"step": 15
|
38 |
},
|
39 |
{
|
40 |
-
"epoch":
|
41 |
-
"grad_norm":
|
42 |
-
"learning_rate":
|
43 |
-
"loss": 5.
|
44 |
"step": 20
|
45 |
},
|
46 |
{
|
47 |
-
"epoch":
|
48 |
-
"grad_norm": 2.
|
49 |
-
"learning_rate":
|
50 |
-
"loss": 5.
|
51 |
"step": 25
|
52 |
},
|
53 |
{
|
54 |
-
"epoch":
|
55 |
-
"grad_norm": 2.
|
56 |
-
"learning_rate":
|
57 |
-
"loss": 5.
|
58 |
"step": 30
|
59 |
},
|
60 |
{
|
61 |
-
"epoch":
|
62 |
-
"
|
63 |
-
"
|
64 |
-
"
|
65 |
-
"
|
66 |
-
|
67 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
}
|
69 |
],
|
70 |
"logging_steps": 5,
|
71 |
-
"max_steps":
|
72 |
"num_input_tokens_seen": 0,
|
73 |
-
"num_train_epochs":
|
74 |
"save_steps": 100,
|
75 |
-
"total_flos":
|
76 |
"train_batch_size": 16,
|
77 |
"trial_name": null,
|
78 |
"trial_params": null
|
|
|
1 |
{
|
2 |
"best_metric": null,
|
3 |
"best_model_checkpoint": null,
|
4 |
+
"epoch": 8.0,
|
5 |
"eval_steps": 500,
|
6 |
+
"global_step": 128,
|
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.06,
|
13 |
+
"grad_norm": 7.65625,
|
14 |
+
"learning_rate": 1.5384615384615387e-05,
|
15 |
+
"loss": 6.3526,
|
16 |
"step": 1
|
17 |
},
|
18 |
{
|
19 |
+
"epoch": 0.31,
|
20 |
+
"grad_norm": 6.3125,
|
21 |
+
"learning_rate": 7.692307692307693e-05,
|
22 |
+
"loss": 6.3681,
|
23 |
"step": 5
|
24 |
},
|
25 |
{
|
26 |
+
"epoch": 0.62,
|
27 |
+
"grad_norm": 5.09375,
|
28 |
+
"learning_rate": 0.00015384615384615385,
|
29 |
+
"loss": 6.1993,
|
30 |
"step": 10
|
31 |
},
|
32 |
{
|
33 |
+
"epoch": 0.94,
|
34 |
+
"grad_norm": 4.78125,
|
35 |
+
"learning_rate": 0.0001998507803482828,
|
36 |
+
"loss": 6.199,
|
37 |
"step": 15
|
38 |
},
|
39 |
{
|
40 |
+
"epoch": 1.25,
|
41 |
+
"grad_norm": 3.203125,
|
42 |
+
"learning_rate": 0.00019817716940755586,
|
43 |
+
"loss": 5.9857,
|
44 |
"step": 20
|
45 |
},
|
46 |
{
|
47 |
+
"epoch": 1.56,
|
48 |
+
"grad_norm": 2.96875,
|
49 |
+
"learning_rate": 0.00019467470355910438,
|
50 |
+
"loss": 5.9041,
|
51 |
"step": 25
|
52 |
},
|
53 |
{
|
54 |
+
"epoch": 1.88,
|
55 |
+
"grad_norm": 2.859375,
|
56 |
+
"learning_rate": 0.00018940862711476513,
|
57 |
+
"loss": 5.8063,
|
58 |
"step": 30
|
59 |
},
|
60 |
{
|
61 |
+
"epoch": 2.19,
|
62 |
+
"grad_norm": 2.609375,
|
63 |
+
"learning_rate": 0.00018247703711489686,
|
64 |
+
"loss": 5.8111,
|
65 |
+
"step": 35
|
66 |
+
},
|
67 |
+
{
|
68 |
+
"epoch": 2.5,
|
69 |
+
"grad_norm": 2.3125,
|
70 |
+
"learning_rate": 0.0001740090559661252,
|
71 |
+
"loss": 5.6765,
|
72 |
+
"step": 40
|
73 |
+
},
|
74 |
+
{
|
75 |
+
"epoch": 2.81,
|
76 |
+
"grad_norm": 2.3125,
|
77 |
+
"learning_rate": 0.0001641624261352161,
|
78 |
+
"loss": 5.7295,
|
79 |
+
"step": 45
|
80 |
+
},
|
81 |
+
{
|
82 |
+
"epoch": 3.12,
|
83 |
+
"grad_norm": 2.1875,
|
84 |
+
"learning_rate": 0.00015312057170538035,
|
85 |
+
"loss": 5.5331,
|
86 |
+
"step": 50
|
87 |
+
},
|
88 |
+
{
|
89 |
+
"epoch": 3.44,
|
90 |
+
"grad_norm": 2.171875,
|
91 |
+
"learning_rate": 0.00014108918153265485,
|
92 |
+
"loss": 5.5281,
|
93 |
+
"step": 55
|
94 |
+
},
|
95 |
+
{
|
96 |
+
"epoch": 3.75,
|
97 |
+
"grad_norm": 2.046875,
|
98 |
+
"learning_rate": 0.000128292377651693,
|
99 |
+
"loss": 5.605,
|
100 |
+
"step": 60
|
101 |
+
},
|
102 |
+
{
|
103 |
+
"epoch": 4.06,
|
104 |
+
"grad_norm": 1.9296875,
|
105 |
+
"learning_rate": 0.00011496854030631443,
|
106 |
+
"loss": 5.5033,
|
107 |
+
"step": 65
|
108 |
+
},
|
109 |
+
{
|
110 |
+
"epoch": 4.38,
|
111 |
+
"grad_norm": 1.8671875,
|
112 |
+
"learning_rate": 0.0001013658673765951,
|
113 |
+
"loss": 5.5589,
|
114 |
+
"step": 70
|
115 |
+
},
|
116 |
+
{
|
117 |
+
"epoch": 4.69,
|
118 |
+
"grad_norm": 1.8984375,
|
119 |
+
"learning_rate": 8.773775092197017e-05,
|
120 |
+
"loss": 5.5488,
|
121 |
+
"step": 75
|
122 |
+
},
|
123 |
+
{
|
124 |
+
"epoch": 5.0,
|
125 |
+
"grad_norm": 2.125,
|
126 |
+
"learning_rate": 7.433805696660266e-05,
|
127 |
+
"loss": 5.3959,
|
128 |
+
"step": 80
|
129 |
+
},
|
130 |
+
{
|
131 |
+
"epoch": 5.31,
|
132 |
+
"grad_norm": 1.9140625,
|
133 |
+
"learning_rate": 6.141639645568646e-05,
|
134 |
+
"loss": 5.4935,
|
135 |
+
"step": 85
|
136 |
+
},
|
137 |
+
{
|
138 |
+
"epoch": 5.62,
|
139 |
+
"grad_norm": 1.796875,
|
140 |
+
"learning_rate": 4.921347547581939e-05,
|
141 |
+
"loss": 5.4818,
|
142 |
+
"step": 90
|
143 |
+
},
|
144 |
+
{
|
145 |
+
"epoch": 5.94,
|
146 |
+
"grad_norm": 1.703125,
|
147 |
+
"learning_rate": 3.795661135604319e-05,
|
148 |
+
"loss": 5.4362,
|
149 |
+
"step": 95
|
150 |
+
},
|
151 |
+
{
|
152 |
+
"epoch": 6.25,
|
153 |
+
"grad_norm": 1.8671875,
|
154 |
+
"learning_rate": 2.7855498176104434e-05,
|
155 |
+
"loss": 5.3928,
|
156 |
+
"step": 100
|
157 |
+
},
|
158 |
+
{
|
159 |
+
"epoch": 6.56,
|
160 |
+
"grad_norm": 1.8125,
|
161 |
+
"learning_rate": 1.9098300562505266e-05,
|
162 |
+
"loss": 5.5188,
|
163 |
+
"step": 105
|
164 |
+
},
|
165 |
+
{
|
166 |
+
"epoch": 6.88,
|
167 |
+
"grad_norm": 1.7421875,
|
168 |
+
"learning_rate": 1.1848148537532843e-05,
|
169 |
+
"loss": 5.4886,
|
170 |
+
"step": 110
|
171 |
+
},
|
172 |
+
{
|
173 |
+
"epoch": 7.19,
|
174 |
+
"grad_norm": 1.84375,
|
175 |
+
"learning_rate": 6.240098715597975e-06,
|
176 |
+
"loss": 5.3798,
|
177 |
+
"step": 115
|
178 |
+
},
|
179 |
+
{
|
180 |
+
"epoch": 7.5,
|
181 |
+
"grad_norm": 1.7265625,
|
182 |
+
"learning_rate": 2.3786184540455448e-06,
|
183 |
+
"loss": 5.4869,
|
184 |
+
"step": 120
|
185 |
+
},
|
186 |
+
{
|
187 |
+
"epoch": 7.81,
|
188 |
+
"grad_norm": 1.8984375,
|
189 |
+
"learning_rate": 3.3563982394704266e-07,
|
190 |
+
"loss": 5.4311,
|
191 |
+
"step": 125
|
192 |
+
},
|
193 |
+
{
|
194 |
+
"epoch": 8.0,
|
195 |
+
"step": 128,
|
196 |
+
"total_flos": 1049348792123392.0,
|
197 |
+
"train_loss": 5.653645019978285,
|
198 |
+
"train_runtime": 83.1481,
|
199 |
+
"train_samples_per_second": 24.15,
|
200 |
+
"train_steps_per_second": 1.539
|
201 |
}
|
202 |
],
|
203 |
"logging_steps": 5,
|
204 |
+
"max_steps": 128,
|
205 |
"num_input_tokens_seen": 0,
|
206 |
+
"num_train_epochs": 8,
|
207 |
"save_steps": 100,
|
208 |
+
"total_flos": 1049348792123392.0,
|
209 |
"train_batch_size": 16,
|
210 |
"trial_name": null,
|
211 |
"trial_params": null
|