sgarrett commited on
Commit
e5186a3
1 Parent(s): b16119a

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_2
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_2
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: 11.1877
21
+ - Accuracy: 0.4684
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.41.0.dev0
55
+ - Pytorch 2.3.0+cu121
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.46840319705594846,
4
+ "eval_loss": 11.187707901000977,
5
+ "eval_runtime": 4.4849,
6
+ "eval_samples": 34,
7
+ "eval_samples_per_second": 7.581,
8
+ "eval_steps_per_second": 1.115,
9
+ "perplexity": 72237.01748219648,
10
+ "total_flos": 1.1838393679872e+17,
11
+ "train_loss": 0.6357850695752045,
12
+ "train_runtime": 11166.7529,
13
+ "train_samples": 136,
14
+ "train_samples_per_second": 2.436,
15
+ "train_steps_per_second": 0.609
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.41.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.46840319705594846,
4
+ "eval_loss": 11.187707901000977,
5
+ "eval_runtime": 4.4849,
6
+ "eval_samples": 34,
7
+ "eval_samples_per_second": 7.581,
8
+ "eval_steps_per_second": 1.115,
9
+ "perplexity": 72237.01748219648
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.41.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:262576ce6e611f168fdd2ec011e9b57932b11a7460b311b756728a3d6aec932a
3
+ size 3096298970
special_tokens_map.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ {
4
+ "content": "SEQUENCE:",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false
9
+ },
10
+ {
11
+ "content": "LABEL:",
12
+ "lstrip": false,
13
+ "normalized": false,
14
+ "rstrip": false,
15
+ "single_word": false
16
+ },
17
+ {
18
+ "content": "POSITIVE",
19
+ "lstrip": false,
20
+ "normalized": false,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ },
24
+ {
25
+ "content": "NEGATIVE",
26
+ "lstrip": false,
27
+ "normalized": false,
28
+ "rstrip": false,
29
+ "single_word": false
30
+ }
31
+ ],
32
+ "bos_token": {
33
+ "content": "<startoftext>",
34
+ "lstrip": false,
35
+ "normalized": false,
36
+ "rstrip": false,
37
+ "single_word": false
38
+ },
39
+ "eos_token": {
40
+ "content": "<endoftext>",
41
+ "lstrip": false,
42
+ "normalized": false,
43
+ "rstrip": false,
44
+ "single_word": false
45
+ },
46
+ "pad_token": {
47
+ "content": "<PAD>",
48
+ "lstrip": false,
49
+ "normalized": false,
50
+ "rstrip": false,
51
+ "single_word": false
52
+ },
53
+ "unk_token": {
54
+ "content": "<|endoftext|>",
55
+ "lstrip": false,
56
+ "normalized": true,
57
+ "rstrip": false,
58
+ "single_word": false
59
+ }
60
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "50258": {
21
+ "content": "LABEL:",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "50259": {
29
+ "content": "POSITIVE",
30
+ "lstrip": false,
31
+ "normalized": false,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "50260": {
37
+ "content": "NEGATIVE",
38
+ "lstrip": false,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
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
+ "additional_special_tokens": [
70
+ "SEQUENCE:",
71
+ "LABEL:",
72
+ "POSITIVE",
73
+ "NEGATIVE"
74
+ ],
75
+ "bos_token": "<startoftext>",
76
+ "clean_up_tokenization_spaces": true,
77
+ "eos_token": "<endoftext>",
78
+ "model_max_length": 1000000000000000019884624838656,
79
+ "pad_token": "<PAD>",
80
+ "tokenizer_class": "GPT2Tokenizer",
81
+ "unk_token": "<|endoftext|>"
82
+ }
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 200.0,
3
+ "total_flos": 1.1838393679872e+17,
4
+ "train_loss": 0.6357850695752045,
5
+ "train_runtime": 11166.7529,
6
+ "train_samples": 136,
7
+ "train_samples_per_second": 2.436,
8
+ "train_steps_per_second": 0.609
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 200.0,
5
+ "eval_steps": 500,
6
+ "global_step": 6800,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 14.705882352941176,
13
+ "grad_norm": 0.9709584712982178,
14
+ "learning_rate": 0.0009264705882352942,
15
+ "loss": 6.89,
16
+ "step": 500
17
+ },
18
+ {
19
+ "epoch": 29.41176470588235,
20
+ "grad_norm": 0.5043423771858215,
21
+ "learning_rate": 0.0008529411764705882,
22
+ "loss": 1.6253,
23
+ "step": 1000
24
+ },
25
+ {
26
+ "epoch": 44.11764705882353,
27
+ "grad_norm": 0.24679997563362122,
28
+ "learning_rate": 0.0007794117647058824,
29
+ "loss": 0.0784,
30
+ "step": 1500
31
+ },
32
+ {
33
+ "epoch": 58.8235294117647,
34
+ "grad_norm": 0.13042904436588287,
35
+ "learning_rate": 0.0007058823529411765,
36
+ "loss": 0.011,
37
+ "step": 2000
38
+ },
39
+ {
40
+ "epoch": 73.52941176470588,
41
+ "grad_norm": 0.1388075053691864,
42
+ "learning_rate": 0.0006323529411764706,
43
+ "loss": 0.0133,
44
+ "step": 2500
45
+ },
46
+ {
47
+ "epoch": 88.23529411764706,
48
+ "grad_norm": 0.21229323744773865,
49
+ "learning_rate": 0.0005588235294117647,
50
+ "loss": 0.0072,
51
+ "step": 3000
52
+ },
53
+ {
54
+ "epoch": 102.94117647058823,
55
+ "grad_norm": 0.055483490228652954,
56
+ "learning_rate": 0.0004852941176470588,
57
+ "loss": 0.0052,
58
+ "step": 3500
59
+ },
60
+ {
61
+ "epoch": 117.6470588235294,
62
+ "grad_norm": 0.06371592730283737,
63
+ "learning_rate": 0.0004117647058823529,
64
+ "loss": 0.0032,
65
+ "step": 4000
66
+ },
67
+ {
68
+ "epoch": 132.35294117647058,
69
+ "grad_norm": 0.019501326605677605,
70
+ "learning_rate": 0.0003382352941176471,
71
+ "loss": 0.0028,
72
+ "step": 4500
73
+ },
74
+ {
75
+ "epoch": 147.05882352941177,
76
+ "grad_norm": 0.18367668986320496,
77
+ "learning_rate": 0.0002647058823529412,
78
+ "loss": 0.0034,
79
+ "step": 5000
80
+ },
81
+ {
82
+ "epoch": 161.76470588235293,
83
+ "grad_norm": 0.026915088295936584,
84
+ "learning_rate": 0.00019117647058823528,
85
+ "loss": 0.0029,
86
+ "step": 5500
87
+ },
88
+ {
89
+ "epoch": 176.47058823529412,
90
+ "grad_norm": 0.014995796605944633,
91
+ "learning_rate": 0.00011764705882352942,
92
+ "loss": 0.0018,
93
+ "step": 6000
94
+ },
95
+ {
96
+ "epoch": 191.1764705882353,
97
+ "grad_norm": 0.04031387344002724,
98
+ "learning_rate": 4.411764705882353e-05,
99
+ "loss": 0.0015,
100
+ "step": 6500
101
+ },
102
+ {
103
+ "epoch": 200.0,
104
+ "step": 6800,
105
+ "total_flos": 1.1838393679872e+17,
106
+ "train_loss": 0.6357850695752045,
107
+ "train_runtime": 11166.7529,
108
+ "train_samples_per_second": 2.436,
109
+ "train_steps_per_second": 0.609
110
+ }
111
+ ],
112
+ "logging_steps": 500,
113
+ "max_steps": 6800,
114
+ "num_input_tokens_seen": 0,
115
+ "num_train_epochs": 200,
116
+ "save_steps": 500,
117
+ "stateful_callbacks": {
118
+ "TrainerControl": {
119
+ "args": {
120
+ "should_epoch_stop": false,
121
+ "should_evaluate": false,
122
+ "should_log": false,
123
+ "should_save": true,
124
+ "should_training_stop": false
125
+ },
126
+ "attributes": {}
127
+ }
128
+ },
129
+ "total_flos": 1.1838393679872e+17,
130
+ "train_batch_size": 4,
131
+ "trial_name": null,
132
+ "trial_params": null
133
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6d0f0c9782410bc1e59834996c1237947a9b4890309a9cc752b8be5ba2530d6f
3
+ size 5112
vocab.json ADDED
The diff for this file is too large to render. See raw diff