Merry commited on
Commit
116bd67
1 Parent(s): 1e798be

Uploaded 10 files.

Browse files
README.md CHANGED
@@ -1,3 +1,42 @@
1
  ---
2
- license: agpl-3.0
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ tags:
3
+ - generated_from_trainer
4
+ model-index:
5
+ - name: pythia-160m-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-160m-deduped-aid
13
+
14
+ ![Example](https://cdn.discordapp.com/attachments/1042160561808482304/1070428486306631680/Screenshot_2023-02-01_11-40-08.png)
15
+
16
+ ## Model description
17
+
18
+ This model is a finetune of [EleutherAI/pythia-160m-deduped](https://huggingface.co/EleutherAI/pythia-160m-deduped) (from when it was instead `pythia-125m-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.
19
+
20
+ This model was trained for testing purposes as the successor to [Merry/AID-Neo-125M](https://huggingface.co/Merry/AID-Neo-125M) and was intended for use with KoboldAI. A temperature of `0.5` and a repetition penalty of `1.05` were tested.
21
+
22
+ ### Training hyperparameters
23
+
24
+ The following hyperparameters were used during training:
25
+ - learning_rate: 5e-05
26
+ - train_batch_size: 2
27
+ - eval_batch_size: 8
28
+ - seed: 42
29
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
30
+ - lr_scheduler_type: linear
31
+ - num_epochs: 3.0
32
+
33
+ ### Training results
34
+
35
+
36
+
37
+ ### Framework versions
38
+
39
+ - Transformers 4.26.0.dev0
40
+ - Pytorch 1.13.1+cu116
41
+ - Datasets 2.8.0
42
+ - Tokenizers 0.13.2
all_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "train_loss": 2.0144441036196583,
4
+ "train_runtime": 7319.7453,
5
+ "train_samples": 6682,
6
+ "train_samples_per_second": 2.739,
7
+ "train_steps_per_second": 1.369
8
+ }
config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "EleutherAI/pythia-125m-deduped",
3
+ "architectures": [
4
+ "GPTNeoXForCausalLM"
5
+ ],
6
+ "bos_token_id": 0,
7
+ "eos_token_id": 0,
8
+ "hidden_act": "gelu",
9
+ "hidden_size": 768,
10
+ "initializer_range": 0.02,
11
+ "intermediate_size": 3072,
12
+ "layer_norm_eps": 1e-05,
13
+ "max_position_embeddings": 2048,
14
+ "model_type": "gpt_neox",
15
+ "num_attention_heads": 12,
16
+ "num_hidden_layers": 12,
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:97a9b93c1343fee6bcbe12f516a9901c4d9d9cd7dd6056225a56e186b4db2b8e
3
+ size 699685293
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-125m-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.0144441036196583,
4
+ "train_runtime": 7319.7453,
5
+ "train_samples": 6682,
6
+ "train_samples_per_second": 2.739,
7
+ "train_steps_per_second": 1.369
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,145 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 3.0,
5
+ "global_step": 10023,
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.15,
12
+ "learning_rate": 4.75057368053477e-05,
13
+ "loss": 3.0513,
14
+ "step": 500
15
+ },
16
+ {
17
+ "epoch": 0.3,
18
+ "learning_rate": 4.501147361069541e-05,
19
+ "loss": 2.9178,
20
+ "step": 1000
21
+ },
22
+ {
23
+ "epoch": 0.45,
24
+ "learning_rate": 4.25172104160431e-05,
25
+ "loss": 2.7984,
26
+ "step": 1500
27
+ },
28
+ {
29
+ "epoch": 0.6,
30
+ "learning_rate": 4.0022947221390805e-05,
31
+ "loss": 2.7266,
32
+ "step": 2000
33
+ },
34
+ {
35
+ "epoch": 0.75,
36
+ "learning_rate": 3.75286840267385e-05,
37
+ "loss": 2.6317,
38
+ "step": 2500
39
+ },
40
+ {
41
+ "epoch": 0.9,
42
+ "learning_rate": 3.50344208320862e-05,
43
+ "loss": 2.5775,
44
+ "step": 3000
45
+ },
46
+ {
47
+ "epoch": 1.05,
48
+ "learning_rate": 3.2540157637433905e-05,
49
+ "loss": 2.3763,
50
+ "step": 3500
51
+ },
52
+ {
53
+ "epoch": 1.2,
54
+ "learning_rate": 3.00458944427816e-05,
55
+ "loss": 2.0984,
56
+ "step": 4000
57
+ },
58
+ {
59
+ "epoch": 1.35,
60
+ "learning_rate": 2.7551631248129307e-05,
61
+ "loss": 2.0372,
62
+ "step": 4500
63
+ },
64
+ {
65
+ "epoch": 1.5,
66
+ "learning_rate": 2.5057368053477002e-05,
67
+ "loss": 1.9558,
68
+ "step": 5000
69
+ },
70
+ {
71
+ "epoch": 1.65,
72
+ "learning_rate": 2.2563104858824705e-05,
73
+ "loss": 1.9287,
74
+ "step": 5500
75
+ },
76
+ {
77
+ "epoch": 1.8,
78
+ "learning_rate": 2.0068841664172404e-05,
79
+ "loss": 1.8788,
80
+ "step": 6000
81
+ },
82
+ {
83
+ "epoch": 1.95,
84
+ "learning_rate": 1.7574578469520103e-05,
85
+ "loss": 1.828,
86
+ "step": 6500
87
+ },
88
+ {
89
+ "epoch": 2.1,
90
+ "learning_rate": 1.5080315274867803e-05,
91
+ "loss": 1.5557,
92
+ "step": 7000
93
+ },
94
+ {
95
+ "epoch": 2.24,
96
+ "learning_rate": 1.2586052080215504e-05,
97
+ "loss": 1.3987,
98
+ "step": 7500
99
+ },
100
+ {
101
+ "epoch": 2.39,
102
+ "learning_rate": 1.0091788885563205e-05,
103
+ "loss": 1.3584,
104
+ "step": 8000
105
+ },
106
+ {
107
+ "epoch": 2.54,
108
+ "learning_rate": 7.597525690910905e-06,
109
+ "loss": 1.3404,
110
+ "step": 8500
111
+ },
112
+ {
113
+ "epoch": 2.69,
114
+ "learning_rate": 5.103262496258605e-06,
115
+ "loss": 1.3025,
116
+ "step": 9000
117
+ },
118
+ {
119
+ "epoch": 2.84,
120
+ "learning_rate": 2.6089993016063056e-06,
121
+ "loss": 1.2926,
122
+ "step": 9500
123
+ },
124
+ {
125
+ "epoch": 2.99,
126
+ "learning_rate": 1.147361069540058e-07,
127
+ "loss": 1.2727,
128
+ "step": 10000
129
+ },
130
+ {
131
+ "epoch": 3.0,
132
+ "step": 10023,
133
+ "total_flos": 1.5233919932694528e+16,
134
+ "train_loss": 2.0144441036196583,
135
+ "train_runtime": 7319.7453,
136
+ "train_samples_per_second": 2.739,
137
+ "train_steps_per_second": 1.369
138
+ }
139
+ ],
140
+ "max_steps": 10023,
141
+ "num_train_epochs": 3,
142
+ "total_flos": 1.5233919932694528e+16,
143
+ "trial_name": null,
144
+ "trial_params": null
145
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:89162fb42c80994ffb5cf2576404fd1a059f40165b766cdb77b8899ac87d3d5d
3
+ size 3515