josephimperial commited on
Commit
2f20b34
1 Parent(s): 8b2905b

Upload 14 files

Browse files
README.md CHANGED
@@ -1,3 +1,56 @@
1
  ---
2
- license: openrail
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: mit
3
+ tags:
4
+ - generated_from_trainer
5
+ metrics:
6
+ - accuracy
7
+ model-index:
8
+ - name: wp_med
9
+ results: []
10
  ---
11
+
12
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
13
+ should probably proofread and complete it, then remove this comment. -->
14
+
15
+ # wp_med
16
+
17
+ This model is a fine-tuned version of [gpt2-medium](https://huggingface.co/gpt2-medium) on an unknown dataset.
18
+ It achieves the following results on the evaluation set:
19
+ - Loss: 4.6055
20
+ - Accuracy: 0.3032
21
+
22
+ ## Model description
23
+
24
+ More information needed
25
+
26
+ ## Intended uses & limitations
27
+
28
+ More information needed
29
+
30
+ ## Training and evaluation data
31
+
32
+ More information needed
33
+
34
+ ## Training procedure
35
+
36
+ ### Training hyperparameters
37
+
38
+ The following hyperparameters were used during training:
39
+ - learning_rate: 5e-05
40
+ - train_batch_size: 8
41
+ - eval_batch_size: 32
42
+ - seed: 42
43
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
44
+ - lr_scheduler_type: linear
45
+ - num_epochs: 3.0
46
+
47
+ ### Training results
48
+
49
+
50
+
51
+ ### Framework versions
52
+
53
+ - Transformers 4.30.0.dev0
54
+ - Pytorch 2.0.1+cu117
55
+ - Datasets 2.12.0
56
+ - Tokenizers 0.12.1
all_results.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.31,
3
+ "eval_accuracy": 0.30315584561438536,
4
+ "eval_loss": 4.605535507202148,
5
+ "eval_runtime": 50.5416,
6
+ "eval_samples": 631,
7
+ "eval_samples_per_second": 12.485,
8
+ "eval_steps_per_second": 0.396,
9
+ "perplexity": 100.03653879519784,
10
+ "train_loss": 0.0,
11
+ "train_runtime": 72.3486,
12
+ "train_samples": 12194,
13
+ "train_samples_per_second": 505.635,
14
+ "train_steps_per_second": 63.235
15
+ }
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.30.0.dev0",
39
+ "use_cache": true,
40
+ "vocab_size": 50257
41
+ }
eval_results.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.31,
3
+ "eval_accuracy": 0.30315584561438536,
4
+ "eval_loss": 4.605535507202148,
5
+ "eval_runtime": 50.5416,
6
+ "eval_samples": 631,
7
+ "eval_samples_per_second": 12.485,
8
+ "eval_steps_per_second": 0.396,
9
+ "perplexity": 100.03653879519784
10
+ }
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.30.0.dev0"
6
+ }
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:767f1a5b406c90574d0343673f414e07d84835fb799e37940a028af6c11957c5
3
+ size 1419387869
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,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "bos_token": "<|endoftext|>",
4
+ "clean_up_tokenization_spaces": true,
5
+ "eos_token": "<|endoftext|>",
6
+ "model_max_length": 1024,
7
+ "tokenizer_class": "GPT2Tokenizer",
8
+ "unk_token": "<|endoftext|>"
9
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.31,
3
+ "train_loss": 0.0,
4
+ "train_runtime": 72.3486,
5
+ "train_samples": 12194,
6
+ "train_samples_per_second": 505.635,
7
+ "train_steps_per_second": 63.235
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,235 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 0.31358073359972766,
5
+ "global_step": 17500,
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.01,
12
+ "learning_rate": 4.985067584114299e-05,
13
+ "loss": 2.6076,
14
+ "step": 500
15
+ },
16
+ {
17
+ "epoch": 0.02,
18
+ "learning_rate": 4.970135168228597e-05,
19
+ "loss": 2.5834,
20
+ "step": 1000
21
+ },
22
+ {
23
+ "epoch": 0.03,
24
+ "learning_rate": 4.955202752342896e-05,
25
+ "loss": 2.5955,
26
+ "step": 1500
27
+ },
28
+ {
29
+ "epoch": 0.04,
30
+ "learning_rate": 4.940270336457195e-05,
31
+ "loss": 2.5908,
32
+ "step": 2000
33
+ },
34
+ {
35
+ "epoch": 0.04,
36
+ "learning_rate": 4.925337920571494e-05,
37
+ "loss": 2.5974,
38
+ "step": 2500
39
+ },
40
+ {
41
+ "epoch": 0.05,
42
+ "learning_rate": 4.9104055046857924e-05,
43
+ "loss": 3.0537,
44
+ "step": 3000
45
+ },
46
+ {
47
+ "epoch": 0.06,
48
+ "learning_rate": 4.895473088800091e-05,
49
+ "loss": 3.0324,
50
+ "step": 3500
51
+ },
52
+ {
53
+ "epoch": 0.07,
54
+ "learning_rate": 4.88054067291439e-05,
55
+ "loss": 3.0167,
56
+ "step": 4000
57
+ },
58
+ {
59
+ "epoch": 0.08,
60
+ "learning_rate": 4.865608257028688e-05,
61
+ "loss": 3.0234,
62
+ "step": 4500
63
+ },
64
+ {
65
+ "epoch": 0.09,
66
+ "learning_rate": 4.850675841142987e-05,
67
+ "loss": 3.0113,
68
+ "step": 5000
69
+ },
70
+ {
71
+ "epoch": 0.1,
72
+ "learning_rate": 4.835743425257286e-05,
73
+ "loss": 3.0151,
74
+ "step": 5500
75
+ },
76
+ {
77
+ "epoch": 0.11,
78
+ "learning_rate": 4.8208110093715845e-05,
79
+ "loss": 2.9967,
80
+ "step": 6000
81
+ },
82
+ {
83
+ "epoch": 0.12,
84
+ "learning_rate": 4.805878593485883e-05,
85
+ "loss": 2.998,
86
+ "step": 6500
87
+ },
88
+ {
89
+ "epoch": 0.13,
90
+ "learning_rate": 4.790946177600182e-05,
91
+ "loss": 2.9781,
92
+ "step": 7000
93
+ },
94
+ {
95
+ "epoch": 0.13,
96
+ "learning_rate": 4.776013761714481e-05,
97
+ "loss": 2.9997,
98
+ "step": 7500
99
+ },
100
+ {
101
+ "epoch": 0.14,
102
+ "learning_rate": 4.761081345828779e-05,
103
+ "loss": 2.9812,
104
+ "step": 8000
105
+ },
106
+ {
107
+ "epoch": 0.15,
108
+ "learning_rate": 4.746148929943078e-05,
109
+ "loss": 2.97,
110
+ "step": 8500
111
+ },
112
+ {
113
+ "epoch": 0.16,
114
+ "learning_rate": 4.7312165140573766e-05,
115
+ "loss": 2.9958,
116
+ "step": 9000
117
+ },
118
+ {
119
+ "epoch": 0.17,
120
+ "learning_rate": 4.7162840981716754e-05,
121
+ "loss": 2.9818,
122
+ "step": 9500
123
+ },
124
+ {
125
+ "epoch": 0.18,
126
+ "learning_rate": 4.7013516822859735e-05,
127
+ "loss": 2.973,
128
+ "step": 10000
129
+ },
130
+ {
131
+ "epoch": 0.19,
132
+ "learning_rate": 4.686419266400272e-05,
133
+ "loss": 2.9652,
134
+ "step": 10500
135
+ },
136
+ {
137
+ "epoch": 0.2,
138
+ "learning_rate": 4.671486850514572e-05,
139
+ "loss": 2.9503,
140
+ "step": 11000
141
+ },
142
+ {
143
+ "epoch": 0.21,
144
+ "learning_rate": 4.65655443462887e-05,
145
+ "loss": 2.9483,
146
+ "step": 11500
147
+ },
148
+ {
149
+ "epoch": 0.22,
150
+ "learning_rate": 4.641622018743169e-05,
151
+ "loss": 2.9592,
152
+ "step": 12000
153
+ },
154
+ {
155
+ "epoch": 0.22,
156
+ "learning_rate": 4.6266896028574675e-05,
157
+ "loss": 2.9615,
158
+ "step": 12500
159
+ },
160
+ {
161
+ "epoch": 0.23,
162
+ "learning_rate": 4.611757186971766e-05,
163
+ "loss": 2.9652,
164
+ "step": 13000
165
+ },
166
+ {
167
+ "epoch": 0.24,
168
+ "learning_rate": 4.5968247710860644e-05,
169
+ "loss": 2.9406,
170
+ "step": 13500
171
+ },
172
+ {
173
+ "epoch": 0.25,
174
+ "learning_rate": 4.581892355200363e-05,
175
+ "loss": 2.9328,
176
+ "step": 14000
177
+ },
178
+ {
179
+ "epoch": 0.26,
180
+ "learning_rate": 4.566959939314662e-05,
181
+ "loss": 2.939,
182
+ "step": 14500
183
+ },
184
+ {
185
+ "epoch": 0.27,
186
+ "learning_rate": 4.552027523428961e-05,
187
+ "loss": 2.9252,
188
+ "step": 15000
189
+ },
190
+ {
191
+ "epoch": 0.28,
192
+ "learning_rate": 4.5370951075432596e-05,
193
+ "loss": 2.9352,
194
+ "step": 15500
195
+ },
196
+ {
197
+ "epoch": 0.29,
198
+ "learning_rate": 4.5221626916575584e-05,
199
+ "loss": 2.9564,
200
+ "step": 16000
201
+ },
202
+ {
203
+ "epoch": 0.3,
204
+ "learning_rate": 4.5072302757718565e-05,
205
+ "loss": 2.943,
206
+ "step": 16500
207
+ },
208
+ {
209
+ "epoch": 0.3,
210
+ "learning_rate": 4.492297859886155e-05,
211
+ "loss": 2.9285,
212
+ "step": 17000
213
+ },
214
+ {
215
+ "epoch": 0.31,
216
+ "learning_rate": 4.477365444000454e-05,
217
+ "loss": 2.929,
218
+ "step": 17500
219
+ },
220
+ {
221
+ "epoch": 0.31,
222
+ "step": 17500,
223
+ "total_flos": 3.250452430848e+16,
224
+ "train_loss": 0.0,
225
+ "train_runtime": 72.3486,
226
+ "train_samples_per_second": 505.635,
227
+ "train_steps_per_second": 63.235
228
+ }
229
+ ],
230
+ "max_steps": 4575,
231
+ "num_train_epochs": 3,
232
+ "total_flos": 3.250452430848e+16,
233
+ "trial_name": null,
234
+ "trial_params": null
235
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8ec1d37572bb2b60f9d09cf9fcc3e26cd309de0f5346c75112e857e7fe03ad5e
3
+ size 3899
vocab.json ADDED
The diff for this file is too large to render. See raw diff