ft-GPT2-with-lyrics
Browse files- README.md +86 -0
- config.json +39 -0
- generation_config.json +6 -0
- model.safetensors +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
base_model: gpt2
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
model-index:
|
7 |
+
- name: ft-GPT2-with-lyrics
|
8 |
+
results: []
|
9 |
+
---
|
10 |
+
|
11 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
12 |
+
should probably proofread and complete it, then remove this comment. -->
|
13 |
+
|
14 |
+
# ft-GPT2-with-lyrics
|
15 |
+
|
16 |
+
This model is a fine-tuned version of [gpt2](https://huggingface.co/gpt2) on the None dataset.
|
17 |
+
It achieves the following results on the evaluation set:
|
18 |
+
- Loss: 1.1112
|
19 |
+
|
20 |
+
## Model description
|
21 |
+
|
22 |
+
More information needed
|
23 |
+
|
24 |
+
## Intended uses & limitations
|
25 |
+
|
26 |
+
More information needed
|
27 |
+
|
28 |
+
## Training and evaluation data
|
29 |
+
|
30 |
+
More information needed
|
31 |
+
|
32 |
+
## Training procedure
|
33 |
+
|
34 |
+
### Training hyperparameters
|
35 |
+
|
36 |
+
The following hyperparameters were used during training:
|
37 |
+
- learning_rate: 2e-05
|
38 |
+
- train_batch_size: 32
|
39 |
+
- eval_batch_size: 32
|
40 |
+
- seed: 42
|
41 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
42 |
+
- lr_scheduler_type: linear
|
43 |
+
- num_epochs: 30
|
44 |
+
|
45 |
+
### Training results
|
46 |
+
|
47 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
48 |
+
|:-------------:|:-----:|:----:|:---------------:|
|
49 |
+
| 2.0058 | 1.0 | 71 | 1.5293 |
|
50 |
+
| 1.5797 | 2.0 | 142 | 1.3814 |
|
51 |
+
| 1.4549 | 3.0 | 213 | 1.3093 |
|
52 |
+
| 1.3837 | 4.0 | 284 | 1.2661 |
|
53 |
+
| 1.3354 | 5.0 | 355 | 1.2328 |
|
54 |
+
| 1.2976 | 6.0 | 426 | 1.2142 |
|
55 |
+
| 1.2678 | 7.0 | 497 | 1.1973 |
|
56 |
+
| 1.2401 | 8.0 | 568 | 1.1825 |
|
57 |
+
| 1.2168 | 9.0 | 639 | 1.1737 |
|
58 |
+
| 1.1971 | 10.0 | 710 | 1.1604 |
|
59 |
+
| 1.1797 | 11.0 | 781 | 1.1529 |
|
60 |
+
| 1.1671 | 12.0 | 852 | 1.1451 |
|
61 |
+
| 1.1517 | 13.0 | 923 | 1.1395 |
|
62 |
+
| 1.1389 | 14.0 | 994 | 1.1357 |
|
63 |
+
| 1.1267 | 15.0 | 1065 | 1.1325 |
|
64 |
+
| 1.1189 | 16.0 | 1136 | 1.1278 |
|
65 |
+
| 1.1076 | 17.0 | 1207 | 1.1246 |
|
66 |
+
| 1.1019 | 18.0 | 1278 | 1.1201 |
|
67 |
+
| 1.0925 | 19.0 | 1349 | 1.1201 |
|
68 |
+
| 1.0885 | 20.0 | 1420 | 1.1159 |
|
69 |
+
| 1.0806 | 21.0 | 1491 | 1.1165 |
|
70 |
+
| 1.0785 | 22.0 | 1562 | 1.1178 |
|
71 |
+
| 1.0703 | 23.0 | 1633 | 1.1171 |
|
72 |
+
| 1.0674 | 24.0 | 1704 | 1.1130 |
|
73 |
+
| 1.0604 | 25.0 | 1775 | 1.1132 |
|
74 |
+
| 1.062 | 26.0 | 1846 | 1.1120 |
|
75 |
+
| 1.0545 | 27.0 | 1917 | 1.1123 |
|
76 |
+
| 1.0534 | 28.0 | 1988 | 1.1106 |
|
77 |
+
| 1.0528 | 29.0 | 2059 | 1.1115 |
|
78 |
+
| 1.0516 | 30.0 | 2130 | 1.1112 |
|
79 |
+
|
80 |
+
|
81 |
+
### Framework versions
|
82 |
+
|
83 |
+
- Transformers 4.35.2
|
84 |
+
- Pytorch 2.1.2
|
85 |
+
- Datasets 2.15.0
|
86 |
+
- Tokenizers 0.15.1
|
config.json
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "gpt2",
|
3 |
+
"activation_function": "gelu_new",
|
4 |
+
"architectures": [
|
5 |
+
"GPT2LMHeadModel"
|
6 |
+
],
|
7 |
+
"attn_pdrop": 0.1,
|
8 |
+
"bos_token_id": 50256,
|
9 |
+
"embd_pdrop": 0.1,
|
10 |
+
"eos_token_id": 50256,
|
11 |
+
"initializer_range": 0.02,
|
12 |
+
"layer_norm_epsilon": 1e-05,
|
13 |
+
"model_type": "gpt2",
|
14 |
+
"n_ctx": 1024,
|
15 |
+
"n_embd": 768,
|
16 |
+
"n_head": 12,
|
17 |
+
"n_inner": null,
|
18 |
+
"n_layer": 12,
|
19 |
+
"n_positions": 1024,
|
20 |
+
"reorder_and_upcast_attn": false,
|
21 |
+
"resid_pdrop": 0.1,
|
22 |
+
"scale_attn_by_inverse_layer_idx": false,
|
23 |
+
"scale_attn_weights": true,
|
24 |
+
"summary_activation": null,
|
25 |
+
"summary_first_dropout": 0.1,
|
26 |
+
"summary_proj_to_labels": true,
|
27 |
+
"summary_type": "cls_index",
|
28 |
+
"summary_use_proj": true,
|
29 |
+
"task_specific_params": {
|
30 |
+
"text-generation": {
|
31 |
+
"do_sample": true,
|
32 |
+
"max_length": 50
|
33 |
+
}
|
34 |
+
},
|
35 |
+
"torch_dtype": "float32",
|
36 |
+
"transformers_version": "4.35.2",
|
37 |
+
"use_cache": true,
|
38 |
+
"vocab_size": 50257
|
39 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 50256,
|
4 |
+
"eos_token_id": 50256,
|
5 |
+
"transformers_version": "4.35.2"
|
6 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6c36d7abf72b62ccb894268e365a9cdfcdcc862b0044f90055835a448f159df5
|
3 |
+
size 497774208
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4615a7c312aea8fcc0703c6eca39b49dcd9ef1ae3775c60c9527057033764fdf
|
3 |
+
size 4600
|