Upload 12 files
Browse files- README.md +63 -0
- config.json +41 -0
- eval_results.json +10 -0
- merges.txt +0 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +1 -0
- tokenizer.json +0 -0
- tokenizer_config.json +1 -0
- train_results.json +8 -0
- trainer_state.json +70 -0
- training_args.bin +3 -0
- vocab.json +0 -0
README.md
ADDED
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags:
|
3 |
+
- generated_from_trainer
|
4 |
+
metrics:
|
5 |
+
- accuracy
|
6 |
+
model-index:
|
7 |
+
- name: checkpoint_gpt2-medium_lyrics_meaning_2022-03-10-16-16-32
|
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 |
+
# checkpoint_gpt2-medium_lyrics_meaning_2022-03-10-16-16-32
|
15 |
+
|
16 |
+
This model is a fine-tuned version of [gpt2-medium](https://huggingface.co/gpt2-medium) on an unknown dataset.
|
17 |
+
It achieves the following results on the evaluation set:
|
18 |
+
- Loss: 2.5896
|
19 |
+
- Accuracy: 0.4923
|
20 |
+
|
21 |
+
## Model description
|
22 |
+
|
23 |
+
More information needed
|
24 |
+
|
25 |
+
## Intended uses & limitations
|
26 |
+
|
27 |
+
More information needed
|
28 |
+
|
29 |
+
## Training and evaluation data
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Training procedure
|
34 |
+
|
35 |
+
### Training hyperparameters
|
36 |
+
|
37 |
+
The following hyperparameters were used during training:
|
38 |
+
- learning_rate: 5e-05
|
39 |
+
- train_batch_size: 2
|
40 |
+
- eval_batch_size: 8
|
41 |
+
- seed: 42
|
42 |
+
- gradient_accumulation_steps: 16
|
43 |
+
- total_train_batch_size: 32
|
44 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
45 |
+
- lr_scheduler_type: linear
|
46 |
+
- num_epochs: 4.0
|
47 |
+
- mixed_precision_training: Native AMP
|
48 |
+
|
49 |
+
### Training results
|
50 |
+
|
51 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
52 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
53 |
+
| 2.7781 | 1.01 | 128 | 2.6284 | 0.4875 |
|
54 |
+
| 2.6217 | 2.02 | 256 | 2.6022 | 0.4908 |
|
55 |
+
| 2.569 | 3.02 | 384 | 2.5928 | 0.4917 |
|
56 |
+
|
57 |
+
|
58 |
+
### Framework versions
|
59 |
+
|
60 |
+
- Transformers 4.18.0.dev0
|
61 |
+
- Pytorch 1.10.1
|
62 |
+
- Datasets 1.18.3
|
63 |
+
- Tokenizers 0.11.6
|
config.json
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "gpt2-medium",
|
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": 1024,
|
16 |
+
"n_head": 16,
|
17 |
+
"n_inner": null,
|
18 |
+
"n_layer": 24,
|
19 |
+
"n_positions": 1024,
|
20 |
+
"n_special": 0,
|
21 |
+
"predict_special_tokens": true,
|
22 |
+
"reorder_and_upcast_attn": false,
|
23 |
+
"resid_pdrop": 0.1,
|
24 |
+
"scale_attn_by_inverse_layer_idx": false,
|
25 |
+
"scale_attn_weights": true,
|
26 |
+
"summary_activation": null,
|
27 |
+
"summary_first_dropout": 0.1,
|
28 |
+
"summary_proj_to_labels": true,
|
29 |
+
"summary_type": "cls_index",
|
30 |
+
"summary_use_proj": true,
|
31 |
+
"task_specific_params": {
|
32 |
+
"text-generation": {
|
33 |
+
"do_sample": true,
|
34 |
+
"max_length": 50
|
35 |
+
}
|
36 |
+
},
|
37 |
+
"torch_dtype": "float32",
|
38 |
+
"transformers_version": "4.18.0.dev0",
|
39 |
+
"use_cache": true,
|
40 |
+
"vocab_size": 50257
|
41 |
+
}
|
eval_results.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 4.0,
|
3 |
+
"eval_accuracy": 0.49230193310949055,
|
4 |
+
"eval_loss": 2.589608907699585,
|
5 |
+
"eval_runtime": 70.704,
|
6 |
+
"eval_samples": 1021,
|
7 |
+
"eval_samples_per_second": 14.44,
|
8 |
+
"eval_steps_per_second": 1.81,
|
9 |
+
"perplexity": 13.324559451438118
|
10 |
+
}
|
merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4d19048d74dcd3fce959448487e9e32a5eaa54cd7e5ffe24862643f364450ac9
|
3 |
+
size 1444582489
|
special_tokens_map.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"bos_token": "<|endoftext|>", "eos_token": "<|endoftext|>", "unk_token": "<|endoftext|>"}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +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": "gpt2-medium", "tokenizer_class": "GPT2Tokenizer"}
|
train_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 4.0,
|
3 |
+
"train_loss": 2.6286109864242433,
|
4 |
+
"train_runtime": 3384.5609,
|
5 |
+
"train_samples": 4064,
|
6 |
+
"train_samples_per_second": 4.803,
|
7 |
+
"train_steps_per_second": 0.15
|
8 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 4.0,
|
5 |
+
"global_step": 508,
|
6 |
+
"is_hyper_param_search": false,
|
7 |
+
"is_local_process_zero": true,
|
8 |
+
"is_world_process_zero": true,
|
9 |
+
"log_history": [
|
10 |
+
{
|
11 |
+
"epoch": 1.01,
|
12 |
+
"learning_rate": 3.740157480314961e-05,
|
13 |
+
"loss": 2.7781,
|
14 |
+
"step": 128
|
15 |
+
},
|
16 |
+
{
|
17 |
+
"epoch": 1.01,
|
18 |
+
"eval_accuracy": 0.4874660477958952,
|
19 |
+
"eval_loss": 2.6284313201904297,
|
20 |
+
"eval_runtime": 69.4322,
|
21 |
+
"eval_samples_per_second": 14.705,
|
22 |
+
"eval_steps_per_second": 1.844,
|
23 |
+
"step": 128
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 2.02,
|
27 |
+
"learning_rate": 2.4803149606299215e-05,
|
28 |
+
"loss": 2.6217,
|
29 |
+
"step": 256
|
30 |
+
},
|
31 |
+
{
|
32 |
+
"epoch": 2.02,
|
33 |
+
"eval_accuracy": 0.49078252111331633,
|
34 |
+
"eval_loss": 2.6022448539733887,
|
35 |
+
"eval_runtime": 70.8747,
|
36 |
+
"eval_samples_per_second": 14.406,
|
37 |
+
"eval_steps_per_second": 1.806,
|
38 |
+
"step": 256
|
39 |
+
},
|
40 |
+
{
|
41 |
+
"epoch": 3.02,
|
42 |
+
"learning_rate": 1.220472440944882e-05,
|
43 |
+
"loss": 2.569,
|
44 |
+
"step": 384
|
45 |
+
},
|
46 |
+
{
|
47 |
+
"epoch": 3.02,
|
48 |
+
"eval_accuracy": 0.49170738058924846,
|
49 |
+
"eval_loss": 2.5927629470825195,
|
50 |
+
"eval_runtime": 76.8807,
|
51 |
+
"eval_samples_per_second": 13.28,
|
52 |
+
"eval_steps_per_second": 1.665,
|
53 |
+
"step": 384
|
54 |
+
},
|
55 |
+
{
|
56 |
+
"epoch": 4.0,
|
57 |
+
"step": 508,
|
58 |
+
"total_flos": 3.0193916980494336e+16,
|
59 |
+
"train_loss": 2.6286109864242433,
|
60 |
+
"train_runtime": 3384.5609,
|
61 |
+
"train_samples_per_second": 4.803,
|
62 |
+
"train_steps_per_second": 0.15
|
63 |
+
}
|
64 |
+
],
|
65 |
+
"max_steps": 508,
|
66 |
+
"num_train_epochs": 4,
|
67 |
+
"total_flos": 3.0193916980494336e+16,
|
68 |
+
"trial_name": null,
|
69 |
+
"trial_params": null
|
70 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ef767971109884443aa3fbe5fdc2fe385a2b6e6f54a82d6cee943d7408da89a6
|
3 |
+
size 3183
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|