sgarrett commited on
Commit
1a379c9
1 Parent(s): 7006401

Upload 15 files

Browse files
README.md ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: nferruz/ProtGPT2
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ model-index:
9
+ - name: model_output_21_equal
10
+ results: []
11
+ ---
12
+
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
+
16
+ # model_output_21_equal
17
+
18
+ This model is a fine-tuned version of [nferruz/ProtGPT2](https://huggingface.co/nferruz/ProtGPT2) on an unknown dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 6.4423
21
+ - Accuracy: 0.6613
22
+
23
+ ## Model description
24
+
25
+ More information needed
26
+
27
+ ## Intended uses & limitations
28
+
29
+ More information needed
30
+
31
+ ## Training and evaluation data
32
+
33
+ More information needed
34
+
35
+ ## Training procedure
36
+
37
+ ### Training hyperparameters
38
+
39
+ The following hyperparameters were used during training:
40
+ - learning_rate: 0.001
41
+ - train_batch_size: 8
42
+ - eval_batch_size: 8
43
+ - seed: 42
44
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
45
+ - lr_scheduler_type: linear
46
+ - num_epochs: 200.0
47
+
48
+ ### Training results
49
+
50
+
51
+
52
+ ### Framework versions
53
+
54
+ - Transformers 4.42.0.dev0
55
+ - Pytorch 2.0.1
56
+ - Datasets 2.19.1
57
+ - Tokenizers 0.19.1
added_tokens.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "<PAD>": 50263,
3
+ "<endoftext>": 50262,
4
+ "<startoftext>": 50261,
5
+ "LABEL:": 50258,
6
+ "NEGATIVE": 50260,
7
+ "POSITIVE": 50259,
8
+ "SEQUENCE:": 50257
9
+ }
all_results.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 200.0,
3
+ "eval_accuracy": 0.6613279193924355,
4
+ "eval_loss": 6.44227409362793,
5
+ "eval_runtime": 5.1836,
6
+ "eval_samples": 39,
7
+ "eval_samples_per_second": 7.524,
8
+ "eval_steps_per_second": 0.965,
9
+ "perplexity": 627.8329284838932,
10
+ "total_flos": 3.0988736397312e+17,
11
+ "train_loss": 0.08202355481265636,
12
+ "train_runtime": 28705.9446,
13
+ "train_samples": 356,
14
+ "train_samples_per_second": 2.48,
15
+ "train_steps_per_second": 0.62
16
+ }
config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "nferruz/ProtGPT2",
3
+ "activation_function": "gelu_new",
4
+ "architectures": [
5
+ "GPT2LMHeadModel"
6
+ ],
7
+ "attn_pdrop": 0.1,
8
+ "bos_token_id": 0,
9
+ "embd_pdrop": 0.1,
10
+ "eos_token_id": 0,
11
+ "initializer_range": 0.02,
12
+ "layer_norm_epsilon": 1e-05,
13
+ "model_type": "gpt2",
14
+ "n_ctx": 1024,
15
+ "n_embd": 1280,
16
+ "n_head": 20,
17
+ "n_inner": null,
18
+ "n_layer": 36,
19
+ "n_positions": 1024,
20
+ "reorder_and_upcast_attn": false,
21
+ "resid_pdrop": 0.1,
22
+ "scale_attn_by_inverse_layer_idx": false,
23
+ "scale_attn_weights": true,
24
+ "summary_activation": null,
25
+ "summary_first_dropout": 0.1,
26
+ "summary_proj_to_labels": true,
27
+ "summary_type": "cls_index",
28
+ "summary_use_proj": true,
29
+ "task_specific_params": {
30
+ "text-generation": {
31
+ "do_sample": true,
32
+ "max_length": 50
33
+ }
34
+ },
35
+ "torch_dtype": "float32",
36
+ "transformers_version": "4.42.0.dev0",
37
+ "use_cache": true,
38
+ "vocab_size": 50264
39
+ }
eval_results.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 200.0,
3
+ "eval_accuracy": 0.6613279193924355,
4
+ "eval_loss": 6.44227409362793,
5
+ "eval_runtime": 5.1836,
6
+ "eval_samples": 39,
7
+ "eval_samples_per_second": 7.524,
8
+ "eval_steps_per_second": 0.965,
9
+ "perplexity": 627.8329284838932
10
+ }
generation_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 0,
4
+ "eos_token_id": 0,
5
+ "transformers_version": "4.42.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:35d82b6ac32651ad0e0e16227a2c72304e78a142640cd66b57b73908ea14ba4b
3
+ size 3096298525
special_tokens_map.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<startoftext>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "<endoftext>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "<PAD>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "unk_token": {
24
+ "content": "<|endoftext|>",
25
+ "lstrip": false,
26
+ "normalized": true,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ }
30
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "0": {
5
+ "content": "<|endoftext|>",
6
+ "lstrip": false,
7
+ "normalized": true,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "50257": {
13
+ "content": "SEQUENCE:",
14
+ "lstrip": false,
15
+ "normalized": true,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": false
19
+ },
20
+ "50258": {
21
+ "content": "LABEL:",
22
+ "lstrip": false,
23
+ "normalized": true,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": false
27
+ },
28
+ "50259": {
29
+ "content": "POSITIVE",
30
+ "lstrip": false,
31
+ "normalized": true,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": false
35
+ },
36
+ "50260": {
37
+ "content": "NEGATIVE",
38
+ "lstrip": false,
39
+ "normalized": true,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": false
43
+ },
44
+ "50261": {
45
+ "content": "<startoftext>",
46
+ "lstrip": false,
47
+ "normalized": false,
48
+ "rstrip": false,
49
+ "single_word": false,
50
+ "special": true
51
+ },
52
+ "50262": {
53
+ "content": "<endoftext>",
54
+ "lstrip": false,
55
+ "normalized": false,
56
+ "rstrip": false,
57
+ "single_word": false,
58
+ "special": true
59
+ },
60
+ "50263": {
61
+ "content": "<PAD>",
62
+ "lstrip": false,
63
+ "normalized": false,
64
+ "rstrip": false,
65
+ "single_word": false,
66
+ "special": true
67
+ }
68
+ },
69
+ "bos_token": "<startoftext>",
70
+ "clean_up_tokenization_spaces": true,
71
+ "eos_token": "<endoftext>",
72
+ "model_max_length": 1000000000000000019884624838656,
73
+ "pad_token": "<PAD>",
74
+ "tokenizer_class": "GPT2Tokenizer",
75
+ "unk_token": "<|endoftext|>"
76
+ }
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 200.0,
3
+ "total_flos": 3.0988736397312e+17,
4
+ "train_loss": 0.08202355481265636,
5
+ "train_runtime": 28705.9446,
6
+ "train_samples": 356,
7
+ "train_samples_per_second": 2.48,
8
+ "train_steps_per_second": 0.62
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,287 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 200.0,
5
+ "eval_steps": 500,
6
+ "global_step": 17800,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 5.617977528089888,
13
+ "grad_norm": 0.8927184343338013,
14
+ "learning_rate": 0.0009719101123595506,
15
+ "loss": 2.0717,
16
+ "step": 500
17
+ },
18
+ {
19
+ "epoch": 11.235955056179776,
20
+ "grad_norm": 0.45675593614578247,
21
+ "learning_rate": 0.0009438202247191011,
22
+ "loss": 0.366,
23
+ "step": 1000
24
+ },
25
+ {
26
+ "epoch": 16.853932584269664,
27
+ "grad_norm": 0.4163215160369873,
28
+ "learning_rate": 0.0009157303370786517,
29
+ "loss": 0.1032,
30
+ "step": 1500
31
+ },
32
+ {
33
+ "epoch": 22.471910112359552,
34
+ "grad_norm": 0.3441922962665558,
35
+ "learning_rate": 0.0008876404494382022,
36
+ "loss": 0.0713,
37
+ "step": 2000
38
+ },
39
+ {
40
+ "epoch": 28.089887640449437,
41
+ "grad_norm": 0.39710932970046997,
42
+ "learning_rate": 0.0008595505617977528,
43
+ "loss": 0.0363,
44
+ "step": 2500
45
+ },
46
+ {
47
+ "epoch": 33.70786516853933,
48
+ "grad_norm": 0.16218255460262299,
49
+ "learning_rate": 0.0008314606741573035,
50
+ "loss": 0.0359,
51
+ "step": 3000
52
+ },
53
+ {
54
+ "epoch": 39.325842696629216,
55
+ "grad_norm": 0.17998535931110382,
56
+ "learning_rate": 0.0008033707865168539,
57
+ "loss": 0.0227,
58
+ "step": 3500
59
+ },
60
+ {
61
+ "epoch": 44.943820224719104,
62
+ "grad_norm": 0.16715578734874725,
63
+ "learning_rate": 0.0007752808988764046,
64
+ "loss": 0.0226,
65
+ "step": 4000
66
+ },
67
+ {
68
+ "epoch": 50.561797752808985,
69
+ "grad_norm": 0.43755656480789185,
70
+ "learning_rate": 0.0007471910112359551,
71
+ "loss": 0.0166,
72
+ "step": 4500
73
+ },
74
+ {
75
+ "epoch": 56.17977528089887,
76
+ "grad_norm": 0.10883288085460663,
77
+ "learning_rate": 0.0007191011235955056,
78
+ "loss": 0.0206,
79
+ "step": 5000
80
+ },
81
+ {
82
+ "epoch": 61.79775280898876,
83
+ "grad_norm": 0.06982209533452988,
84
+ "learning_rate": 0.0006910112359550562,
85
+ "loss": 0.0111,
86
+ "step": 5500
87
+ },
88
+ {
89
+ "epoch": 67.41573033707866,
90
+ "grad_norm": 0.18309864401817322,
91
+ "learning_rate": 0.0006629213483146067,
92
+ "loss": 0.0112,
93
+ "step": 6000
94
+ },
95
+ {
96
+ "epoch": 73.03370786516854,
97
+ "grad_norm": 0.2448071986436844,
98
+ "learning_rate": 0.0006348314606741573,
99
+ "loss": 0.0127,
100
+ "step": 6500
101
+ },
102
+ {
103
+ "epoch": 78.65168539325843,
104
+ "grad_norm": 0.4600788652896881,
105
+ "learning_rate": 0.0006067415730337079,
106
+ "loss": 0.0156,
107
+ "step": 7000
108
+ },
109
+ {
110
+ "epoch": 84.26966292134831,
111
+ "grad_norm": 0.039180297404527664,
112
+ "learning_rate": 0.0005786516853932584,
113
+ "loss": 0.01,
114
+ "step": 7500
115
+ },
116
+ {
117
+ "epoch": 89.88764044943821,
118
+ "grad_norm": 0.05856933817267418,
119
+ "learning_rate": 0.000550561797752809,
120
+ "loss": 0.0073,
121
+ "step": 8000
122
+ },
123
+ {
124
+ "epoch": 95.50561797752809,
125
+ "grad_norm": 0.07000260800123215,
126
+ "learning_rate": 0.0005224719101123597,
127
+ "loss": 0.0096,
128
+ "step": 8500
129
+ },
130
+ {
131
+ "epoch": 101.12359550561797,
132
+ "grad_norm": 0.21435591578483582,
133
+ "learning_rate": 0.0004943820224719101,
134
+ "loss": 0.0055,
135
+ "step": 9000
136
+ },
137
+ {
138
+ "epoch": 106.74157303370787,
139
+ "grad_norm": 0.09459387511014938,
140
+ "learning_rate": 0.00046629213483146065,
141
+ "loss": 0.0064,
142
+ "step": 9500
143
+ },
144
+ {
145
+ "epoch": 112.35955056179775,
146
+ "grad_norm": 0.07463132590055466,
147
+ "learning_rate": 0.00043820224719101126,
148
+ "loss": 0.0066,
149
+ "step": 10000
150
+ },
151
+ {
152
+ "epoch": 117.97752808988764,
153
+ "grad_norm": 0.14109277725219727,
154
+ "learning_rate": 0.0004101123595505618,
155
+ "loss": 0.0068,
156
+ "step": 10500
157
+ },
158
+ {
159
+ "epoch": 123.59550561797752,
160
+ "grad_norm": 0.3136846721172333,
161
+ "learning_rate": 0.00038202247191011237,
162
+ "loss": 0.0049,
163
+ "step": 11000
164
+ },
165
+ {
166
+ "epoch": 129.2134831460674,
167
+ "grad_norm": 0.08402496576309204,
168
+ "learning_rate": 0.0003539325842696629,
169
+ "loss": 0.0041,
170
+ "step": 11500
171
+ },
172
+ {
173
+ "epoch": 134.8314606741573,
174
+ "grad_norm": 0.010163770988583565,
175
+ "learning_rate": 0.00032584269662921353,
176
+ "loss": 0.0037,
177
+ "step": 12000
178
+ },
179
+ {
180
+ "epoch": 140.4494382022472,
181
+ "grad_norm": 0.1579727977514267,
182
+ "learning_rate": 0.00029775280898876403,
183
+ "loss": 0.0041,
184
+ "step": 12500
185
+ },
186
+ {
187
+ "epoch": 146.06741573033707,
188
+ "grad_norm": 0.013693171553313732,
189
+ "learning_rate": 0.0002696629213483146,
190
+ "loss": 0.009,
191
+ "step": 13000
192
+ },
193
+ {
194
+ "epoch": 151.68539325842696,
195
+ "grad_norm": 0.04315110668540001,
196
+ "learning_rate": 0.0002415730337078652,
197
+ "loss": 0.0035,
198
+ "step": 13500
199
+ },
200
+ {
201
+ "epoch": 157.30337078651687,
202
+ "grad_norm": 0.022593241184949875,
203
+ "learning_rate": 0.00021348314606741572,
204
+ "loss": 0.003,
205
+ "step": 14000
206
+ },
207
+ {
208
+ "epoch": 162.92134831460675,
209
+ "grad_norm": 0.03392694145441055,
210
+ "learning_rate": 0.0001853932584269663,
211
+ "loss": 0.0028,
212
+ "step": 14500
213
+ },
214
+ {
215
+ "epoch": 168.53932584269663,
216
+ "grad_norm": 0.009065886959433556,
217
+ "learning_rate": 0.00015730337078651685,
218
+ "loss": 0.0025,
219
+ "step": 15000
220
+ },
221
+ {
222
+ "epoch": 174.1573033707865,
223
+ "grad_norm": 0.017768818885087967,
224
+ "learning_rate": 0.00012921348314606744,
225
+ "loss": 0.0024,
226
+ "step": 15500
227
+ },
228
+ {
229
+ "epoch": 179.77528089887642,
230
+ "grad_norm": 0.00971462856978178,
231
+ "learning_rate": 0.00010112359550561798,
232
+ "loss": 0.0024,
233
+ "step": 16000
234
+ },
235
+ {
236
+ "epoch": 185.3932584269663,
237
+ "grad_norm": 0.010951046831905842,
238
+ "learning_rate": 7.303370786516854e-05,
239
+ "loss": 0.0023,
240
+ "step": 16500
241
+ },
242
+ {
243
+ "epoch": 191.01123595505618,
244
+ "grad_norm": 0.011012041941285133,
245
+ "learning_rate": 4.49438202247191e-05,
246
+ "loss": 0.0023,
247
+ "step": 17000
248
+ },
249
+ {
250
+ "epoch": 196.62921348314606,
251
+ "grad_norm": 0.0066545517183840275,
252
+ "learning_rate": 1.685393258426966e-05,
253
+ "loss": 0.0021,
254
+ "step": 17500
255
+ },
256
+ {
257
+ "epoch": 200.0,
258
+ "step": 17800,
259
+ "total_flos": 3.0988736397312e+17,
260
+ "train_loss": 0.08202355481265636,
261
+ "train_runtime": 28705.9446,
262
+ "train_samples_per_second": 2.48,
263
+ "train_steps_per_second": 0.62
264
+ }
265
+ ],
266
+ "logging_steps": 500,
267
+ "max_steps": 17800,
268
+ "num_input_tokens_seen": 0,
269
+ "num_train_epochs": 200,
270
+ "save_steps": 2000,
271
+ "stateful_callbacks": {
272
+ "TrainerControl": {
273
+ "args": {
274
+ "should_epoch_stop": false,
275
+ "should_evaluate": false,
276
+ "should_log": false,
277
+ "should_save": true,
278
+ "should_training_stop": true
279
+ },
280
+ "attributes": {}
281
+ }
282
+ },
283
+ "total_flos": 3.0988736397312e+17,
284
+ "train_batch_size": 4,
285
+ "trial_name": null,
286
+ "trial_params": null
287
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3712ac0c24115bdd4d36a764be306aec5dc203a29aaa7bd26c9ae5a8b21f686b
3
+ size 4667
vocab.json ADDED
The diff for this file is too large to render. See raw diff