AlekseyKorshuk
commited on
Commit
·
7495459
1
Parent(s):
cf5a035
huggingartists
Browse files- README.md +3 -3
- config.json +2 -2
- evaluation.txt +1 -1
- flax_model.msgpack +1 -1
- optimizer.pt +2 -2
- pytorch_model.bin +1 -1
- rng_state.pth +2 -2
- scheduler.pt +1 -1
- tokenizer_config.json +1 -1
- trainer_state.json +109 -151
- training_args.bin +2 -2
README.md
CHANGED
@@ -45,15 +45,15 @@ from datasets import load_dataset
|
|
45 |
dataset = load_dataset("huggingartists/pharaoh")
|
46 |
```
|
47 |
|
48 |
-
[Explore the data](https://wandb.ai/huggingartists/huggingartists/runs/
|
49 |
|
50 |
## Training procedure
|
51 |
|
52 |
The model is based on a pre-trained [GPT-2](https://huggingface.co/gpt2) which is fine-tuned on PHARAOH's lyrics.
|
53 |
|
54 |
-
Hyperparameters and metrics are recorded in the [W&B training run](https://wandb.ai/huggingartists/huggingartists/runs/
|
55 |
|
56 |
-
At the end of training, [the final model](https://wandb.ai/huggingartists/huggingartists/runs/
|
57 |
|
58 |
## How to use
|
59 |
|
|
|
45 |
dataset = load_dataset("huggingartists/pharaoh")
|
46 |
```
|
47 |
|
48 |
+
[Explore the data](https://wandb.ai/huggingartists/huggingartists/runs/3kao1xf5/artifacts), which is tracked with [W&B artifacts](https://docs.wandb.com/artifacts) at every step of the pipeline.
|
49 |
|
50 |
## Training procedure
|
51 |
|
52 |
The model is based on a pre-trained [GPT-2](https://huggingface.co/gpt2) which is fine-tuned on PHARAOH's lyrics.
|
53 |
|
54 |
+
Hyperparameters and metrics are recorded in the [W&B training run](https://wandb.ai/huggingartists/huggingartists/runs/xsxegmjq) for full transparency and reproducibility.
|
55 |
|
56 |
+
At the end of training, [the final model](https://wandb.ai/huggingartists/huggingartists/runs/xsxegmjq/artifacts) is logged and versioned.
|
57 |
|
58 |
## How to use
|
59 |
|
config.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "
|
3 |
"activation_function": "gelu_new",
|
4 |
"architectures": [
|
5 |
"GPT2LMHeadModel"
|
@@ -35,7 +35,7 @@
|
|
35 |
}
|
36 |
},
|
37 |
"torch_dtype": "float32",
|
38 |
-
"transformers_version": "4.
|
39 |
"use_cache": true,
|
40 |
"vocab_size": 50257
|
41 |
}
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "huggingartists/pharaoh",
|
3 |
"activation_function": "gelu_new",
|
4 |
"architectures": [
|
5 |
"GPT2LMHeadModel"
|
|
|
35 |
}
|
36 |
},
|
37 |
"torch_dtype": "float32",
|
38 |
+
"transformers_version": "4.11.2",
|
39 |
"use_cache": true,
|
40 |
"vocab_size": 50257
|
41 |
}
|
evaluation.txt
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"eval_loss": 1.
|
|
|
1 |
+
{"eval_loss": 1.7224986553192139, "eval_runtime": 22.1306, "eval_samples_per_second": 22.548, "eval_steps_per_second": 2.847, "epoch": 2.0}
|
flax_model.msgpack
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 497764120
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9a2b4c5319db04b9872d2055b5b79d1b4807f1c3915b4626047165c4d8e7d4ec
|
3 |
size 497764120
|
optimizer.pt
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:26bbacfce71425f128a87fdb7029463499be8bc995eb14eb839740e92b47317a
|
3 |
+
size 995604017
|
pytorch_model.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 510403817
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bff62d0348d173b28829e07fec717386e9eef99e506d12c023aa35c55239ae7d
|
3 |
size 510403817
|
rng_state.pth
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9da0f194b462662f09bef1ea47010e6352ae99c4cb094909f982d2deeb47ae8b
|
3 |
+
size 14567
|
scheduler.pt
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 623
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3ed819f11a0f4645df58a01f50e8c26eb756310ea7f77b118bb1ec57797118f8
|
3 |
size 623
|
tokenizer_config.json
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"unk_token": "<|endoftext|>", "bos_token": "<|endoftext|>", "eos_token": "<|endoftext|>", "add_prefix_space": false, "model_max_length": 1024, "special_tokens_map_file": null, "name_or_path": "
|
|
|
1 |
+
{"unk_token": "<|endoftext|>", "bos_token": "<|endoftext|>", "eos_token": "<|endoftext|>", "add_prefix_space": false, "model_max_length": 1024, "special_tokens_map_file": null, "name_or_path": "huggingartists/pharaoh", "tokenizer_class": "GPT2Tokenizer"}
|
trainer_state.json
CHANGED
@@ -1,264 +1,222 @@
|
|
1 |
{
|
2 |
-
"best_metric": 1.
|
3 |
-
"best_model_checkpoint": "output/pharaoh/checkpoint-
|
4 |
"epoch": 1.0,
|
5 |
-
"global_step":
|
6 |
"is_hyper_param_search": false,
|
7 |
"is_local_process_zero": true,
|
8 |
"is_world_process_zero": true,
|
9 |
"log_history": [
|
10 |
{
|
11 |
"epoch": 0.03,
|
12 |
-
"learning_rate": 0.
|
13 |
-
"loss":
|
14 |
"step": 5
|
15 |
},
|
16 |
{
|
17 |
-
"epoch": 0.
|
18 |
-
"learning_rate": 0.
|
19 |
-
"loss":
|
20 |
"step": 10
|
21 |
},
|
22 |
{
|
23 |
-
"epoch": 0.
|
24 |
-
"learning_rate": 0.
|
25 |
-
"loss":
|
26 |
"step": 15
|
27 |
},
|
28 |
{
|
29 |
-
"epoch": 0.
|
30 |
-
"learning_rate": 0.
|
31 |
-
"loss":
|
32 |
"step": 20
|
33 |
},
|
34 |
{
|
35 |
-
"epoch": 0.
|
36 |
-
"learning_rate": 0.
|
37 |
-
"loss":
|
38 |
"step": 25
|
39 |
},
|
40 |
{
|
41 |
-
"epoch": 0.
|
42 |
-
"learning_rate": 0.
|
43 |
-
"loss": 1.
|
44 |
"step": 30
|
45 |
},
|
46 |
{
|
47 |
-
"epoch": 0.
|
48 |
-
"learning_rate": 0.
|
49 |
-
"loss":
|
50 |
"step": 35
|
51 |
},
|
52 |
{
|
53 |
-
"epoch": 0.
|
54 |
-
"learning_rate": 0.
|
55 |
-
"loss":
|
56 |
"step": 40
|
57 |
},
|
58 |
{
|
59 |
-
"epoch": 0.
|
60 |
-
"learning_rate": 0.
|
61 |
-
"loss": 1.
|
62 |
"step": 45
|
63 |
},
|
64 |
{
|
65 |
-
"epoch": 0.
|
66 |
-
"learning_rate": 0.
|
67 |
-
"loss":
|
68 |
"step": 50
|
69 |
},
|
70 |
{
|
71 |
-
"epoch": 0.
|
72 |
-
"learning_rate": 0.
|
73 |
-
"loss": 1.
|
74 |
"step": 55
|
75 |
},
|
76 |
{
|
77 |
-
"epoch": 0.
|
78 |
-
"learning_rate":
|
79 |
-
"loss":
|
80 |
"step": 60
|
81 |
},
|
82 |
{
|
83 |
-
"epoch": 0.
|
84 |
-
"learning_rate":
|
85 |
-
"loss": 1.
|
86 |
"step": 65
|
87 |
},
|
88 |
{
|
89 |
-
"epoch": 0.
|
90 |
-
"learning_rate":
|
91 |
-
"loss": 1.
|
92 |
"step": 70
|
93 |
},
|
94 |
{
|
95 |
-
"epoch": 0.
|
96 |
-
"learning_rate":
|
97 |
-
"loss": 1.
|
98 |
"step": 75
|
99 |
},
|
100 |
{
|
101 |
-
"epoch": 0.
|
102 |
-
"learning_rate":
|
103 |
-
"loss": 1.
|
104 |
"step": 80
|
105 |
},
|
106 |
{
|
107 |
-
"epoch": 0.
|
108 |
-
"learning_rate":
|
109 |
-
"loss": 1.
|
110 |
"step": 85
|
111 |
},
|
112 |
{
|
113 |
-
"epoch": 0.
|
114 |
-
"learning_rate":
|
115 |
-
"loss": 1.
|
116 |
"step": 90
|
117 |
},
|
118 |
{
|
119 |
-
"epoch": 0.
|
120 |
-
"learning_rate":
|
121 |
-
"loss": 1.
|
122 |
"step": 95
|
123 |
},
|
124 |
{
|
125 |
-
"epoch": 0.
|
126 |
-
"learning_rate":
|
127 |
-
"loss": 1.
|
128 |
"step": 100
|
129 |
},
|
130 |
{
|
131 |
-
"epoch": 0.
|
132 |
-
"learning_rate":
|
133 |
-
"loss": 1.
|
134 |
"step": 105
|
135 |
},
|
136 |
{
|
137 |
-
"epoch": 0.
|
138 |
-
"learning_rate":
|
139 |
-
"loss": 1.
|
140 |
"step": 110
|
141 |
},
|
142 |
{
|
143 |
-
"epoch": 0.
|
144 |
-
"learning_rate":
|
145 |
-
"loss": 1.
|
146 |
"step": 115
|
147 |
},
|
148 |
{
|
149 |
-
"epoch": 0.
|
150 |
-
"learning_rate":
|
151 |
-
"loss": 1.
|
152 |
"step": 120
|
153 |
},
|
154 |
{
|
155 |
-
"epoch": 0.
|
156 |
-
"learning_rate":
|
157 |
-
"loss": 1.
|
158 |
"step": 125
|
159 |
},
|
160 |
{
|
161 |
-
"epoch": 0.
|
162 |
-
"learning_rate":
|
163 |
-
"loss": 1.
|
164 |
"step": 130
|
165 |
},
|
166 |
{
|
167 |
-
"epoch": 0.
|
168 |
-
"learning_rate":
|
169 |
-
"loss": 1.
|
170 |
"step": 135
|
171 |
},
|
172 |
{
|
173 |
-
"epoch": 0.
|
174 |
-
"learning_rate":
|
175 |
-
"loss": 1.
|
176 |
"step": 140
|
177 |
},
|
178 |
{
|
179 |
-
"epoch": 0.
|
180 |
-
"learning_rate":
|
181 |
-
"loss": 1.
|
182 |
"step": 145
|
183 |
},
|
184 |
{
|
185 |
-
"epoch": 0.
|
186 |
-
"learning_rate":
|
187 |
-
"loss": 1.
|
188 |
"step": 150
|
189 |
},
|
190 |
{
|
191 |
-
"epoch": 0.
|
192 |
-
"learning_rate": 1.
|
193 |
-
"loss": 1.
|
194 |
"step": 155
|
195 |
},
|
196 |
{
|
197 |
-
"epoch": 0.
|
198 |
-
"learning_rate":
|
199 |
-
"loss": 1.
|
200 |
"step": 160
|
201 |
},
|
202 |
{
|
203 |
-
"epoch": 0.
|
204 |
-
"learning_rate":
|
205 |
-
"loss": 1.
|
206 |
"step": 165
|
207 |
},
|
208 |
-
{
|
209 |
-
"epoch": 0.85,
|
210 |
-
"learning_rate": 7.476952440677969e-06,
|
211 |
-
"loss": 1.8265,
|
212 |
-
"step": 170
|
213 |
-
},
|
214 |
-
{
|
215 |
-
"epoch": 0.88,
|
216 |
-
"learning_rate": 5.22186406972573e-06,
|
217 |
-
"loss": 1.7538,
|
218 |
-
"step": 175
|
219 |
-
},
|
220 |
-
{
|
221 |
-
"epoch": 0.9,
|
222 |
-
"learning_rate": 3.357522982152468e-06,
|
223 |
-
"loss": 1.7725,
|
224 |
-
"step": 180
|
225 |
-
},
|
226 |
-
{
|
227 |
-
"epoch": 0.93,
|
228 |
-
"learning_rate": 1.8954234607193881e-06,
|
229 |
-
"loss": 1.8434,
|
230 |
-
"step": 185
|
231 |
-
},
|
232 |
-
{
|
233 |
-
"epoch": 0.95,
|
234 |
-
"learning_rate": 8.445798351735566e-07,
|
235 |
-
"loss": 1.7535,
|
236 |
-
"step": 190
|
237 |
-
},
|
238 |
-
{
|
239 |
-
"epoch": 0.97,
|
240 |
-
"learning_rate": 2.1147090590742169e-07,
|
241 |
-
"loss": 1.8311,
|
242 |
-
"step": 195
|
243 |
-
},
|
244 |
-
{
|
245 |
-
"epoch": 1.0,
|
246 |
-
"learning_rate": 0.0,
|
247 |
-
"loss": 1.862,
|
248 |
-
"step": 200
|
249 |
-
},
|
250 |
{
|
251 |
"epoch": 1.0,
|
252 |
-
"eval_loss": 1.
|
253 |
-
"eval_runtime":
|
254 |
-
"eval_samples_per_second": 22.
|
255 |
-
"eval_steps_per_second": 2.
|
256 |
-
"step":
|
257 |
}
|
258 |
],
|
259 |
-
"max_steps":
|
260 |
-
"num_train_epochs":
|
261 |
-
"total_flos":
|
262 |
"trial_name": null,
|
263 |
"trial_params": null
|
264 |
}
|
|
|
1 |
{
|
2 |
+
"best_metric": 1.7224986553192139,
|
3 |
+
"best_model_checkpoint": "output/pharaoh/checkpoint-167",
|
4 |
"epoch": 1.0,
|
5 |
+
"global_step": 167,
|
6 |
"is_hyper_param_search": false,
|
7 |
"is_local_process_zero": true,
|
8 |
"is_world_process_zero": true,
|
9 |
"log_history": [
|
10 |
{
|
11 |
"epoch": 0.03,
|
12 |
+
"learning_rate": 0.00013689676402972123,
|
13 |
+
"loss": 1.6111,
|
14 |
"step": 5
|
15 |
},
|
16 |
{
|
17 |
+
"epoch": 0.06,
|
18 |
+
"learning_rate": 0.0001359897369367762,
|
19 |
+
"loss": 1.6407,
|
20 |
"step": 10
|
21 |
},
|
22 |
{
|
23 |
+
"epoch": 0.09,
|
24 |
+
"learning_rate": 0.00013448693747453513,
|
25 |
+
"loss": 1.7296,
|
26 |
"step": 15
|
27 |
},
|
28 |
{
|
29 |
+
"epoch": 0.12,
|
30 |
+
"learning_rate": 0.0001324016514404635,
|
31 |
+
"loss": 1.6351,
|
32 |
"step": 20
|
33 |
},
|
34 |
{
|
35 |
+
"epoch": 0.15,
|
36 |
+
"learning_rate": 0.00012975231422038792,
|
37 |
+
"loss": 1.6431,
|
38 |
"step": 25
|
39 |
},
|
40 |
{
|
41 |
+
"epoch": 0.18,
|
42 |
+
"learning_rate": 0.0001265623478068018,
|
43 |
+
"loss": 1.5934,
|
44 |
"step": 30
|
45 |
},
|
46 |
{
|
47 |
+
"epoch": 0.21,
|
48 |
+
"learning_rate": 0.00012285995373208355,
|
49 |
+
"loss": 1.6383,
|
50 |
"step": 35
|
51 |
},
|
52 |
{
|
53 |
+
"epoch": 0.24,
|
54 |
+
"learning_rate": 0.00011867786374724195,
|
55 |
+
"loss": 1.688,
|
56 |
"step": 40
|
57 |
},
|
58 |
{
|
59 |
+
"epoch": 0.27,
|
60 |
+
"learning_rate": 0.00011405305045036307,
|
61 |
+
"loss": 1.7355,
|
62 |
"step": 45
|
63 |
},
|
64 |
{
|
65 |
+
"epoch": 0.3,
|
66 |
+
"learning_rate": 0.00010902640042300463,
|
67 |
+
"loss": 1.6672,
|
68 |
"step": 50
|
69 |
},
|
70 |
{
|
71 |
+
"epoch": 0.33,
|
72 |
+
"learning_rate": 0.00010364235276424244,
|
73 |
+
"loss": 1.6835,
|
74 |
"step": 55
|
75 |
},
|
76 |
{
|
77 |
+
"epoch": 0.36,
|
78 |
+
"learning_rate": 9.794850621797833e-05,
|
79 |
+
"loss": 1.5821,
|
80 |
"step": 60
|
81 |
},
|
82 |
{
|
83 |
+
"epoch": 0.39,
|
84 |
+
"learning_rate": 9.199519836678021e-05,
|
85 |
+
"loss": 1.701,
|
86 |
"step": 65
|
87 |
},
|
88 |
{
|
89 |
+
"epoch": 0.42,
|
90 |
+
"learning_rate": 8.583506061247361e-05,
|
91 |
+
"loss": 1.6752,
|
92 |
"step": 70
|
93 |
},
|
94 |
{
|
95 |
+
"epoch": 0.45,
|
96 |
+
"learning_rate": 7.95225528777695e-05,
|
97 |
+
"loss": 1.6845,
|
98 |
"step": 75
|
99 |
},
|
100 |
{
|
101 |
+
"epoch": 0.48,
|
102 |
+
"learning_rate": 7.311348214248791e-05,
|
103 |
+
"loss": 1.6935,
|
104 |
"step": 80
|
105 |
},
|
106 |
{
|
107 |
+
"epoch": 0.51,
|
108 |
+
"learning_rate": 6.666450907085589e-05,
|
109 |
+
"loss": 1.7025,
|
110 |
"step": 85
|
111 |
},
|
112 |
{
|
113 |
+
"epoch": 0.54,
|
114 |
+
"learning_rate": 6.023264709163982e-05,
|
115 |
+
"loss": 1.6483,
|
116 |
"step": 90
|
117 |
},
|
118 |
{
|
119 |
+
"epoch": 0.57,
|
120 |
+
"learning_rate": 5.387475835959079e-05,
|
121 |
+
"loss": 1.5692,
|
122 |
"step": 95
|
123 |
},
|
124 |
{
|
125 |
+
"epoch": 0.6,
|
126 |
+
"learning_rate": 4.7647051054259744e-05,
|
127 |
+
"loss": 1.6434,
|
128 |
"step": 100
|
129 |
},
|
130 |
{
|
131 |
+
"epoch": 0.63,
|
132 |
+
"learning_rate": 4.1604582460408433e-05,
|
133 |
+
"loss": 1.661,
|
134 |
"step": 105
|
135 |
},
|
136 |
{
|
137 |
+
"epoch": 0.66,
|
138 |
+
"learning_rate": 3.580077222313727e-05,
|
139 |
+
"loss": 1.6785,
|
140 |
"step": 110
|
141 |
},
|
142 |
{
|
143 |
+
"epoch": 0.69,
|
144 |
+
"learning_rate": 3.0286930080889863e-05,
|
145 |
+
"loss": 1.6299,
|
146 |
"step": 115
|
147 |
},
|
148 |
{
|
149 |
+
"epoch": 0.72,
|
150 |
+
"learning_rate": 2.511180225150775e-05,
|
151 |
+
"loss": 1.6296,
|
152 |
"step": 120
|
153 |
},
|
154 |
{
|
155 |
+
"epoch": 0.75,
|
156 |
+
"learning_rate": 2.0321140481598987e-05,
|
157 |
+
"loss": 1.6131,
|
158 |
"step": 125
|
159 |
},
|
160 |
{
|
161 |
+
"epoch": 0.78,
|
162 |
+
"learning_rate": 1.595729756912515e-05,
|
163 |
+
"loss": 1.6039,
|
164 |
"step": 130
|
165 |
},
|
166 |
{
|
167 |
+
"epoch": 0.81,
|
168 |
+
"learning_rate": 1.2058852935068877e-05,
|
169 |
+
"loss": 1.696,
|
170 |
"step": 135
|
171 |
},
|
172 |
{
|
173 |
+
"epoch": 0.84,
|
174 |
+
"learning_rate": 8.660271554391817e-06,
|
175 |
+
"loss": 1.6846,
|
176 |
"step": 140
|
177 |
},
|
178 |
{
|
179 |
+
"epoch": 0.87,
|
180 |
+
"learning_rate": 5.791599261570497e-06,
|
181 |
+
"loss": 1.6253,
|
182 |
"step": 145
|
183 |
},
|
184 |
{
|
185 |
+
"epoch": 0.9,
|
186 |
+
"learning_rate": 3.4781971244218827e-06,
|
187 |
+
"loss": 1.5759,
|
188 |
"step": 150
|
189 |
},
|
190 |
{
|
191 |
+
"epoch": 0.93,
|
192 |
+
"learning_rate": 1.7405172345409156e-06,
|
193 |
+
"loss": 1.628,
|
194 |
"step": 155
|
195 |
},
|
196 |
{
|
197 |
+
"epoch": 0.96,
|
198 |
+
"learning_rate": 5.939218965176846e-07,
|
199 |
+
"loss": 1.6359,
|
200 |
"step": 160
|
201 |
},
|
202 |
{
|
203 |
+
"epoch": 0.99,
|
204 |
+
"learning_rate": 4.8547814429227996e-08,
|
205 |
+
"loss": 1.614,
|
206 |
"step": 165
|
207 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
208 |
{
|
209 |
"epoch": 1.0,
|
210 |
+
"eval_loss": 1.7224986553192139,
|
211 |
+
"eval_runtime": 22.2232,
|
212 |
+
"eval_samples_per_second": 22.454,
|
213 |
+
"eval_steps_per_second": 2.835,
|
214 |
+
"step": 167
|
215 |
}
|
216 |
],
|
217 |
+
"max_steps": 334,
|
218 |
+
"num_train_epochs": 2,
|
219 |
+
"total_flos": 174412431360000.0,
|
220 |
"trial_name": null,
|
221 |
"trial_params": null
|
222 |
}
|
training_args.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ce0544ae26ed18e0692923459bb51b32637aeec0f8caa1502a1b6bf0910ecd6d
|
3 |
+
size 2863
|