Upload 10 files
Browse files- README.md +38 -1
- all_results.json +8 -0
- config.json +25 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +5 -0
- tokenizer.json +0 -0
- tokenizer_config.json +10 -0
- train_results.json +8 -0
- trainer_state.json +85 -0
- training_args.bin +3 -0
README.md
CHANGED
@@ -1,3 +1,40 @@
|
|
1 |
---
|
2 |
-
|
|
|
|
|
|
|
|
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
+
tags:
|
3 |
+
- generated_from_trainer
|
4 |
+
model-index:
|
5 |
+
- name: pythia-70m-deduped-aid
|
6 |
+
results: []
|
7 |
---
|
8 |
+
|
9 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
10 |
+
should probably proofread and complete it, then remove this comment. -->
|
11 |
+
|
12 |
+
# pythia-70m-deduped-aid
|
13 |
+
|
14 |
+
## Model description
|
15 |
+
|
16 |
+
This model is a finetune of [EleutherAI/pythia-70m-deduped](https://huggingface.co/EleutherAI/pythia-70m-deduped) (from when it was instead `pythia-19m-deduped`), on the [`text_adventures.txt`](https://github.com/Latitude-Archives/AIDungeon/blob/ca098ca7dab480d24e47954c8873b03ba1091ffc/data/text_adventures.txt) dataset originally intended for AI Dungeon 2. Performance will be very poor, as expected by the small model, and generations may be offensive thanks to its training data.
|
17 |
+
|
18 |
+
This model was trained for testing purposes and was intended for use with KoboldAI. A temperature of `0.5` and a repetition penalty of `1.01` were tested.
|
19 |
+
|
20 |
+
### Training hyperparameters
|
21 |
+
|
22 |
+
The following hyperparameters were used during training:
|
23 |
+
- learning_rate: 5e-05
|
24 |
+
- train_batch_size: 4
|
25 |
+
- eval_batch_size: 8
|
26 |
+
- seed: 42
|
27 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
28 |
+
- lr_scheduler_type: linear
|
29 |
+
- num_epochs: 3.0
|
30 |
+
|
31 |
+
### Training results
|
32 |
+
|
33 |
+
|
34 |
+
|
35 |
+
### Framework versions
|
36 |
+
|
37 |
+
- Transformers 4.26.0.dev0
|
38 |
+
- Pytorch 1.13.1+cu116
|
39 |
+
- Datasets 2.8.0
|
40 |
+
- Tokenizers 0.13.2
|
all_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 3.0,
|
3 |
+
"train_loss": 2.7053030034203553,
|
4 |
+
"train_runtime": 2600.5654,
|
5 |
+
"train_samples": 6682,
|
6 |
+
"train_samples_per_second": 7.708,
|
7 |
+
"train_steps_per_second": 1.928
|
8 |
+
}
|
config.json
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "EleutherAI/pythia-19m-deduped",
|
3 |
+
"architectures": [
|
4 |
+
"GPTNeoXForCausalLM"
|
5 |
+
],
|
6 |
+
"bos_token_id": 0,
|
7 |
+
"eos_token_id": 0,
|
8 |
+
"hidden_act": "gelu",
|
9 |
+
"hidden_size": 512,
|
10 |
+
"initializer_range": 0.02,
|
11 |
+
"intermediate_size": 2048,
|
12 |
+
"layer_norm_eps": 1e-05,
|
13 |
+
"max_position_embeddings": 2048,
|
14 |
+
"model_type": "gpt_neox",
|
15 |
+
"num_attention_heads": 8,
|
16 |
+
"num_hidden_layers": 6,
|
17 |
+
"rotary_emb_base": 10000,
|
18 |
+
"rotary_pct": 0.25,
|
19 |
+
"tie_word_embeddings": false,
|
20 |
+
"torch_dtype": "float32",
|
21 |
+
"transformers_version": "4.26.0.dev0",
|
22 |
+
"use_cache": true,
|
23 |
+
"use_parallel_residual": true,
|
24 |
+
"vocab_size": 50304
|
25 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8f949f4a07d0e6a57a76207ee4a55ab4ee6d203a2f81997a43a48fab9438ef8a
|
3 |
+
size 306903691
|
special_tokens_map.json
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": "<|endoftext|>",
|
3 |
+
"eos_token": "<|endoftext|>",
|
4 |
+
"unk_token": "<|endoftext|>"
|
5 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_prefix_space": false,
|
3 |
+
"bos_token": "<|endoftext|>",
|
4 |
+
"eos_token": "<|endoftext|>",
|
5 |
+
"model_max_length": 1000000000000000019884624838656,
|
6 |
+
"name_or_path": "EleutherAI/pythia-19m-deduped",
|
7 |
+
"special_tokens_map_file": "/fsx/home-hailey/.cache/huggingface/hub/models--EleutherAI--gpt-neox-20b/snapshots/3523781c8df75f7741687a4284f6f70e1afa12f4/special_tokens_map.json",
|
8 |
+
"tokenizer_class": "GPTNeoXTokenizer",
|
9 |
+
"unk_token": "<|endoftext|>"
|
10 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 3.0,
|
3 |
+
"train_loss": 2.7053030034203553,
|
4 |
+
"train_runtime": 2600.5654,
|
5 |
+
"train_samples": 6682,
|
6 |
+
"train_samples_per_second": 7.708,
|
7 |
+
"train_steps_per_second": 1.928
|
8 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 3.0,
|
5 |
+
"global_step": 5013,
|
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.3,
|
12 |
+
"learning_rate": 4.501296628765211e-05,
|
13 |
+
"loss": 3.2601,
|
14 |
+
"step": 500
|
15 |
+
},
|
16 |
+
{
|
17 |
+
"epoch": 0.6,
|
18 |
+
"learning_rate": 4.002593257530421e-05,
|
19 |
+
"loss": 3.0867,
|
20 |
+
"step": 1000
|
21 |
+
},
|
22 |
+
{
|
23 |
+
"epoch": 0.9,
|
24 |
+
"learning_rate": 3.5038898862956315e-05,
|
25 |
+
"loss": 2.9927,
|
26 |
+
"step": 1500
|
27 |
+
},
|
28 |
+
{
|
29 |
+
"epoch": 1.2,
|
30 |
+
"learning_rate": 3.005186515060842e-05,
|
31 |
+
"loss": 2.8095,
|
32 |
+
"step": 2000
|
33 |
+
},
|
34 |
+
{
|
35 |
+
"epoch": 1.5,
|
36 |
+
"learning_rate": 2.506483143826052e-05,
|
37 |
+
"loss": 2.6831,
|
38 |
+
"step": 2500
|
39 |
+
},
|
40 |
+
{
|
41 |
+
"epoch": 1.8,
|
42 |
+
"learning_rate": 2.0077797725912628e-05,
|
43 |
+
"loss": 2.6323,
|
44 |
+
"step": 3000
|
45 |
+
},
|
46 |
+
{
|
47 |
+
"epoch": 2.09,
|
48 |
+
"learning_rate": 1.5090764013564732e-05,
|
49 |
+
"loss": 2.5364,
|
50 |
+
"step": 3500
|
51 |
+
},
|
52 |
+
{
|
53 |
+
"epoch": 2.39,
|
54 |
+
"learning_rate": 1.0103730301216837e-05,
|
55 |
+
"loss": 2.3822,
|
56 |
+
"step": 4000
|
57 |
+
},
|
58 |
+
{
|
59 |
+
"epoch": 2.69,
|
60 |
+
"learning_rate": 5.116696588868941e-06,
|
61 |
+
"loss": 2.35,
|
62 |
+
"step": 4500
|
63 |
+
},
|
64 |
+
{
|
65 |
+
"epoch": 2.99,
|
66 |
+
"learning_rate": 1.296628765210453e-07,
|
67 |
+
"loss": 2.332,
|
68 |
+
"step": 5000
|
69 |
+
},
|
70 |
+
{
|
71 |
+
"epoch": 3.0,
|
72 |
+
"step": 5013,
|
73 |
+
"total_flos": 5501794620801024.0,
|
74 |
+
"train_loss": 2.7053030034203553,
|
75 |
+
"train_runtime": 2600.5654,
|
76 |
+
"train_samples_per_second": 7.708,
|
77 |
+
"train_steps_per_second": 1.928
|
78 |
+
}
|
79 |
+
],
|
80 |
+
"max_steps": 5013,
|
81 |
+
"num_train_epochs": 3,
|
82 |
+
"total_flos": 5501794620801024.0,
|
83 |
+
"trial_name": null,
|
84 |
+
"trial_params": null
|
85 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:551c877e293b5ce3197b9d2dbe0c895398d804a7e12af6ffa2f9355b1e8d97b4
|
3 |
+
size 3515
|