Commit ·
be61806
1
Parent(s): ed1b9ce
huggingartists
Browse files- README.md +3 -3
- config.json +4 -2
- evaluation.txt +1 -1
- flax_model.msgpack +1 -1
- optimizer.pt +1 -1
- pytorch_model.bin +1 -1
- rng_state.pth +1 -1
- scheduler.pt +1 -1
- tokenizer.json +0 -0
- tokenizer_config.json +1 -1
- trainer_state.json +65 -7
- training_args.bin +2 -2
README.md
CHANGED
|
@@ -45,15 +45,15 @@ from datasets import load_dataset
|
|
| 45 |
dataset = load_dataset("huggingartists/nirvana")
|
| 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 Nirvana'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/nirvana")
|
| 46 |
```
|
| 47 |
|
| 48 |
+
[Explore the data](https://wandb.ai/huggingartists/huggingartists/runs/2so60o7u/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 Nirvana's lyrics.
|
| 53 |
|
| 54 |
+
Hyperparameters and metrics are recorded in the [W&B training run](https://wandb.ai/huggingartists/huggingartists/runs/l6zav1kr) for full transparency and reproducibility.
|
| 55 |
|
| 56 |
+
At the end of training, [the final model](https://wandb.ai/huggingartists/huggingartists/runs/l6zav1kr/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"
|
|
@@ -18,7 +18,9 @@
|
|
| 18 |
"n_inner": null,
|
| 19 |
"n_layer": 12,
|
| 20 |
"n_positions": 1024,
|
|
|
|
| 21 |
"resid_pdrop": 0.1,
|
|
|
|
| 22 |
"scale_attn_weights": true,
|
| 23 |
"summary_activation": null,
|
| 24 |
"summary_first_dropout": 0.1,
|
|
@@ -35,7 +37,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": "nirvana",
|
| 3 |
"activation_function": "gelu_new",
|
| 4 |
"architectures": [
|
| 5 |
"GPT2LMHeadModel"
|
|
|
|
| 18 |
"n_inner": null,
|
| 19 |
"n_layer": 12,
|
| 20 |
"n_positions": 1024,
|
| 21 |
+
"reorder_and_upcast_attn": false,
|
| 22 |
"resid_pdrop": 0.1,
|
| 23 |
+
"scale_attn_by_inverse_layer_idx": false,
|
| 24 |
"scale_attn_weights": true,
|
| 25 |
"summary_activation": null,
|
| 26 |
"summary_first_dropout": 0.1,
|
|
|
|
| 37 |
}
|
| 38 |
},
|
| 39 |
"torch_dtype": "float32",
|
| 40 |
+
"transformers_version": "4.16.1",
|
| 41 |
"use_cache": true,
|
| 42 |
"vocab_size": 50257
|
| 43 |
}
|
evaluation.txt
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
{"eval_loss": 2.
|
|
|
|
| 1 |
+
{"eval_loss": 2.128573179244995, "eval_runtime": 1.2287, "eval_samples_per_second": 43.137, "eval_steps_per_second": 5.697, "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:1740b9403c2980e1c12ea39ca34dd90e719cb426af2e560c4662fb685a4adc5c
|
| 3 |
size 497764120
|
optimizer.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 995603825
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:99c7d18d91a68d3aac0f231a3453ae4f8448552fe1cceca43dfeddf734b115cf
|
| 3 |
size 995603825
|
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:190fc0c852d0ebcb0d529ca1ef8faf27bb0e63a90b3312da7edff4f56cd84c70
|
| 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 14567
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1d8690557d45fc8d72f6eb673bd42b9a6c47364d62cbc2a5af224d1d6fa8d651
|
| 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:95317d63b9a0922ed3de67fdcb9f6bbf4898f9cd35c41f60f3577d5b1e618ec0
|
| 3 |
size 623
|
tokenizer.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
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/nirvana", "tokenizer_class": "GPT2Tokenizer"}
|
trainer_state.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
{
|
| 2 |
-
"best_metric": 2.
|
| 3 |
-
"best_model_checkpoint": "output/nirvana/checkpoint-
|
| 4 |
-
"epoch":
|
| 5 |
-
"global_step":
|
| 6 |
"is_hyper_param_search": false,
|
| 7 |
"is_local_process_zero": true,
|
| 8 |
"is_world_process_zero": true,
|
|
@@ -56,11 +56,69 @@
|
|
| 56 |
"eval_samples_per_second": 22.504,
|
| 57 |
"eval_steps_per_second": 2.813,
|
| 58 |
"step": 35
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
}
|
| 60 |
],
|
| 61 |
-
"max_steps":
|
| 62 |
-
"num_train_epochs":
|
| 63 |
-
"total_flos":
|
| 64 |
"trial_name": null,
|
| 65 |
"trial_params": null
|
| 66 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"best_metric": 2.128573179244995,
|
| 3 |
+
"best_model_checkpoint": "output/nirvana/checkpoint-72",
|
| 4 |
+
"epoch": 2.0,
|
| 5 |
+
"global_step": 72,
|
| 6 |
"is_hyper_param_search": false,
|
| 7 |
"is_local_process_zero": true,
|
| 8 |
"is_world_process_zero": true,
|
|
|
|
| 56 |
"eval_samples_per_second": 22.504,
|
| 57 |
"eval_steps_per_second": 2.813,
|
| 58 |
"step": 35
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"epoch": 1.0,
|
| 62 |
+
"eval_loss": 2.3264973163604736,
|
| 63 |
+
"eval_runtime": 1.1647,
|
| 64 |
+
"eval_samples_per_second": 45.506,
|
| 65 |
+
"eval_steps_per_second": 6.01,
|
| 66 |
+
"step": 36
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"epoch": 1.11,
|
| 70 |
+
"learning_rate": 4.137086214086682e-06,
|
| 71 |
+
"loss": 2.6774,
|
| 72 |
+
"step": 40
|
| 73 |
+
},
|
| 74 |
+
{
|
| 75 |
+
"epoch": 1.25,
|
| 76 |
+
"learning_rate": 2.009247481060283e-05,
|
| 77 |
+
"loss": 2.4577,
|
| 78 |
+
"step": 45
|
| 79 |
+
},
|
| 80 |
+
{
|
| 81 |
+
"epoch": 1.39,
|
| 82 |
+
"learning_rate": 4.513741816785908e-05,
|
| 83 |
+
"loss": 2.2823,
|
| 84 |
+
"step": 50
|
| 85 |
+
},
|
| 86 |
+
{
|
| 87 |
+
"epoch": 1.53,
|
| 88 |
+
"learning_rate": 7.457888395248933e-05,
|
| 89 |
+
"loss": 2.298,
|
| 90 |
+
"step": 55
|
| 91 |
+
},
|
| 92 |
+
{
|
| 93 |
+
"epoch": 1.67,
|
| 94 |
+
"learning_rate": 0.00010290000000000001,
|
| 95 |
+
"loss": 2.4088,
|
| 96 |
+
"step": 60
|
| 97 |
+
},
|
| 98 |
+
{
|
| 99 |
+
"epoch": 1.81,
|
| 100 |
+
"learning_rate": 0.00012479383023822482,
|
| 101 |
+
"loss": 2.2944,
|
| 102 |
+
"step": 65
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"epoch": 1.94,
|
| 106 |
+
"learning_rate": 0.00013615781185663748,
|
| 107 |
+
"loss": 2.0032,
|
| 108 |
+
"step": 70
|
| 109 |
+
},
|
| 110 |
+
{
|
| 111 |
+
"epoch": 2.0,
|
| 112 |
+
"eval_loss": 2.128573179244995,
|
| 113 |
+
"eval_runtime": 1.1938,
|
| 114 |
+
"eval_samples_per_second": 44.396,
|
| 115 |
+
"eval_steps_per_second": 5.864,
|
| 116 |
+
"step": 72
|
| 117 |
}
|
| 118 |
],
|
| 119 |
+
"max_steps": 72,
|
| 120 |
+
"num_train_epochs": 2,
|
| 121 |
+
"total_flos": 73161768960000.0,
|
| 122 |
"trial_name": null,
|
| 123 |
"trial_params": null
|
| 124 |
}
|
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:5ccf6b2194f29afd6fd696a5ff25947b9d920926b5a6ac01723ed2e5798c9d44
|
| 3 |
+
size 3055
|