mpekey commited on
Commit
676869e
·
verified ·
1 Parent(s): ffbd4d2

Model save

Browse files
README.md ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ tags:
4
+ - generated_from_trainer
5
+ model-index:
6
+ - name: progen2_cross_attention_only_h
7
+ results: []
8
+ ---
9
+
10
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
11
+ should probably proofread and complete it, then remove this comment. -->
12
+
13
+ # progen2_cross_attention_only_h
14
+
15
+ This model is a fine-tuned version of [](https://huggingface.co/) on the None dataset.
16
+ It achieves the following results on the evaluation set:
17
+ - Loss: 2.4917
18
+ - Perplexity: 12.0823
19
+
20
+ ## Model description
21
+
22
+ More information needed
23
+
24
+ ## Intended uses & limitations
25
+
26
+ More information needed
27
+
28
+ ## Training and evaluation data
29
+
30
+ More information needed
31
+
32
+ ## Training procedure
33
+
34
+ ### Training hyperparameters
35
+
36
+ The following hyperparameters were used during training:
37
+ - learning_rate: 0.0005
38
+ - train_batch_size: 8
39
+ - eval_batch_size: 8
40
+ - seed: 42
41
+ - gradient_accumulation_steps: 4
42
+ - total_train_batch_size: 32
43
+ - optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
44
+ - lr_scheduler_type: cosine_with_restarts
45
+ - lr_scheduler_warmup_ratio: 0.1
46
+ - training_steps: 5000
47
+
48
+ ### Training results
49
+
50
+ | Training Loss | Epoch | Step | Validation Loss | Perplexity |
51
+ |:-------------:|:-------:|:----:|:---------------:|:----------:|
52
+ | 32.5486 | 0.2909 | 100 | 7.6093 | 2016.7766 |
53
+ | 22.5738 | 0.5818 | 200 | 2.8788 | 17.7926 |
54
+ | 11.4858 | 0.8727 | 300 | 2.8572 | 17.4123 |
55
+ | 11.391 | 1.1658 | 400 | 2.8481 | 17.2545 |
56
+ | 11.6307 | 1.4567 | 500 | 2.6227 | 13.7734 |
57
+ | 10.2311 | 1.7476 | 600 | 2.4862 | 12.0155 |
58
+ | 9.9477 | 2.0407 | 700 | 2.4658 | 11.7733 |
59
+ | 9.8694 | 2.3316 | 800 | 2.6730 | 14.4827 |
60
+ | 9.8291 | 2.6225 | 900 | 2.4811 | 11.9541 |
61
+ | 31.1466 | 2.9135 | 1000 | 8.7851 | 6536.0332 |
62
+ | 34.9023 | 3.2065 | 1100 | 7.7230 | 2259.8149 |
63
+ | 30.5868 | 3.4975 | 1200 | 7.5959 | 1990.0344 |
64
+ | 30.4004 | 3.7884 | 1300 | 7.5865 | 1971.3219 |
65
+ | 31.7038 | 4.0815 | 1400 | 8.0208 | 3043.6248 |
66
+ | 31.3893 | 4.3724 | 1500 | 7.2647 | 1428.9806 |
67
+ | 25.8028 | 4.6633 | 1600 | 5.7546 | 315.6425 |
68
+ | 22.4188 | 4.9542 | 1700 | 5.3616 | 213.0554 |
69
+ | 21.249 | 5.2473 | 1800 | 5.3029 | 200.9226 |
70
+ | 20.9864 | 5.5382 | 1900 | 5.3000 | 200.3277 |
71
+ | 20.9816 | 5.8291 | 2000 | 5.1496 | 172.3635 |
72
+ | 20.6328 | 6.1222 | 2100 | 4.6971 | 109.6314 |
73
+ | 18.4146 | 6.4131 | 2200 | 4.5423 | 93.9023 |
74
+ | 17.0501 | 6.704 | 2300 | 3.8270 | 45.9244 |
75
+ | 15.666 | 6.9949 | 2400 | 3.4366 | 31.0810 |
76
+ | 15.927 | 7.288 | 2500 | 3.9706 | 53.0142 |
77
+ | 13.5433 | 7.5789 | 2600 | 2.9892 | 19.8694 |
78
+ | 12.3278 | 7.8698 | 2700 | 3.1080 | 22.3761 |
79
+ | 12.0588 | 8.1629 | 2800 | 2.7287 | 15.3123 |
80
+ | 11.1222 | 8.4538 | 2900 | 2.6745 | 14.5055 |
81
+ | 10.9132 | 8.7447 | 3000 | 2.6467 | 14.1074 |
82
+ | 10.9437 | 9.0378 | 3100 | 2.6341 | 13.9301 |
83
+ | 10.8436 | 9.3287 | 3200 | 3.8787 | 48.3626 |
84
+ | 10.6462 | 9.6196 | 3300 | 2.6104 | 13.6050 |
85
+ | 10.5014 | 9.9105 | 3400 | 2.6434 | 14.0614 |
86
+ | 10.4753 | 10.2036 | 3500 | 2.6008 | 13.4750 |
87
+ | 10.4235 | 10.4945 | 3600 | 2.5825 | 13.2301 |
88
+ | 10.2556 | 10.7855 | 3700 | 2.5495 | 12.8001 |
89
+ | 10.2415 | 11.0785 | 3800 | 2.5396 | 12.6741 |
90
+ | 10.1531 | 11.3695 | 3900 | 2.5290 | 12.5413 |
91
+ | 10.1279 | 11.6604 | 4000 | 2.5270 | 12.5158 |
92
+ | 10.0816 | 11.9513 | 4100 | 2.5152 | 12.3687 |
93
+ | 10.0384 | 12.2444 | 4200 | 2.5198 | 12.4260 |
94
+ | 10.0156 | 12.5353 | 4300 | 2.5003 | 12.1862 |
95
+ | 9.9928 | 12.8262 | 4400 | 2.4984 | 12.1632 |
96
+ | 10.0172 | 13.1193 | 4500 | 2.4940 | 12.1100 |
97
+ | 9.9678 | 13.4102 | 4600 | 2.4955 | 12.1281 |
98
+ | 9.9605 | 13.7011 | 4700 | 2.4927 | 12.0943 |
99
+ | 9.9324 | 13.992 | 4800 | 2.4920 | 12.0851 |
100
+ | 9.9536 | 14.2851 | 4900 | 2.4916 | 12.0804 |
101
+ | 9.9154 | 14.576 | 5000 | 2.4917 | 12.0823 |
102
+
103
+
104
+ ### Framework versions
105
+
106
+ - Transformers 4.47.1
107
+ - Pytorch 2.1.0.post301
108
+ - Datasets 3.0.2
109
+ - Tokenizers 0.21.0
added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "<|endoftext|>": 30
3
+ }
config.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "activation_function": "gelu_new",
3
+ "architectures": [
4
+ "ProGenForCausalLM"
5
+ ],
6
+ "attn_pdrop": 0.0,
7
+ "bos_token_id": 1,
8
+ "embd_pdrop": 0.0,
9
+ "embed_dim": 1536,
10
+ "eos_token_id": 2,
11
+ "gradient_checkpointing": false,
12
+ "initializer_range": 0.02,
13
+ "kinase_embedding_dim": 1280,
14
+ "layer_norm_epsilon": 1e-05,
15
+ "model_type": "progen",
16
+ "n_head": 16,
17
+ "n_inner": null,
18
+ "n_layer": 27,
19
+ "n_positions": 2048,
20
+ "resid_pdrop": 0.0,
21
+ "rotary_dim": 48,
22
+ "scale_attn_weights": true,
23
+ "torch_dtype": "float32",
24
+ "transformers_version": "4.47.1",
25
+ "use_cache": false,
26
+ "use_cross_attention": true,
27
+ "vocab_size_emb": 32,
28
+ "vocab_size_lm_head": 32
29
+ }
generation_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "eos_token_id": 2,
5
+ "transformers_version": "4.47.1"
6
+ }
merges.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ #version: 0.2
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c707b5df56c355f22732fca91c4b5efbe639e91ecbbd32a457d4e333f1465cf1
3
+ size 4086674752
special_tokens_map.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<|endoftext|>",
3
+ "eos_token": "<|endoftext|>",
4
+ "pad_token": "<|pad|>",
5
+ "unk_token": "<|endoftext|>"
6
+ }
tokenizer.json ADDED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": "1.0",
3
+ "truncation": {
4
+ "direction": "Right",
5
+ "max_length": 17,
6
+ "strategy": "LongestFirst",
7
+ "stride": 0
8
+ },
9
+ "padding": {
10
+ "strategy": {
11
+ "Fixed": 17
12
+ },
13
+ "direction": "Right",
14
+ "pad_to_multiple_of": null,
15
+ "pad_id": 0,
16
+ "pad_type_id": 0,
17
+ "pad_token": "<|pad|>"
18
+ },
19
+ "added_tokens": [
20
+ {
21
+ "id": 0,
22
+ "content": "<|pad|>",
23
+ "single_word": false,
24
+ "lstrip": false,
25
+ "rstrip": false,
26
+ "normalized": false,
27
+ "special": true
28
+ },
29
+ {
30
+ "id": 1,
31
+ "content": "<|bos|>",
32
+ "single_word": false,
33
+ "lstrip": false,
34
+ "rstrip": false,
35
+ "normalized": false,
36
+ "special": true
37
+ },
38
+ {
39
+ "id": 2,
40
+ "content": "<|eos|>",
41
+ "single_word": false,
42
+ "lstrip": false,
43
+ "rstrip": false,
44
+ "normalized": false,
45
+ "special": true
46
+ },
47
+ {
48
+ "id": 30,
49
+ "content": "<|endoftext|>",
50
+ "single_word": false,
51
+ "lstrip": false,
52
+ "rstrip": false,
53
+ "normalized": false,
54
+ "special": true
55
+ }
56
+ ],
57
+ "normalizer": null,
58
+ "pre_tokenizer": {
59
+ "type": "ByteLevel",
60
+ "add_prefix_space": false,
61
+ "trim_offsets": true,
62
+ "use_regex": true
63
+ },
64
+ "post_processor": {
65
+ "type": "ByteLevel",
66
+ "add_prefix_space": true,
67
+ "trim_offsets": true,
68
+ "use_regex": true
69
+ },
70
+ "decoder": {
71
+ "type": "ByteLevel",
72
+ "add_prefix_space": true,
73
+ "trim_offsets": true,
74
+ "use_regex": true
75
+ },
76
+ "model": {
77
+ "type": "BPE",
78
+ "dropout": null,
79
+ "unk_token": null,
80
+ "continuing_subword_prefix": null,
81
+ "end_of_word_suffix": null,
82
+ "fuse_unk": false,
83
+ "byte_fallback": false,
84
+ "ignore_merges": false,
85
+ "vocab": {
86
+ "<|pad|>": 0,
87
+ "<|bos|>": 1,
88
+ "<|eos|>": 2,
89
+ "1": 3,
90
+ "2": 4,
91
+ "A": 5,
92
+ "B": 6,
93
+ "C": 7,
94
+ "D": 8,
95
+ "E": 9,
96
+ "F": 10,
97
+ "G": 11,
98
+ "H": 12,
99
+ "I": 13,
100
+ "K": 14,
101
+ "L": 15,
102
+ "M": 16,
103
+ "N": 17,
104
+ "O": 18,
105
+ "P": 19,
106
+ "Q": 20,
107
+ "R": 21,
108
+ "S": 22,
109
+ "T": 23,
110
+ "U": 24,
111
+ "V": 25,
112
+ "W": 26,
113
+ "X": 27,
114
+ "Y": 28,
115
+ "Z": 29
116
+ },
117
+ "merges": []
118
+ }
119
+ }
tokenizer_config.json ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "0": {
5
+ "content": "<|pad|>",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "1": {
13
+ "content": "<|bos|>",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "2": {
21
+ "content": "<|eos|>",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "30": {
29
+ "content": "<|endoftext|>",
30
+ "lstrip": false,
31
+ "normalized": false,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ }
36
+ },
37
+ "bos_token": "<|endoftext|>",
38
+ "clean_up_tokenization_spaces": false,
39
+ "eos_token": "<|endoftext|>",
40
+ "extra_special_tokens": {},
41
+ "model_max_length": 1000000000000000019884624838656,
42
+ "pad_token": "<|pad|>",
43
+ "tokenizer_class": "GPT2Tokenizer",
44
+ "unk_token": "<|endoftext|>"
45
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7da901a36057b98547f37028c4768588adeb113f0f1c641b71449990d50a95b0
3
+ size 5432
vocab.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"<|pad|>":0,"<|bos|>":1,"<|eos|>":2,"1":3,"2":4,"A":5,"B":6,"C":7,"D":8,"E":9,"F":10,"G":11,"H":12,"I":13,"K":14,"L":15,"M":16,"N":17,"O":18,"P":19,"Q":20,"R":21,"S":22,"T":23,"U":24,"V":25,"W":26,"X":27,"Y":28,"Z":29}