hf-transformers-bot HF Staff commited on
Commit
7676590
·
verified ·
1 Parent(s): 8203e7c

Update tiny models for EsmcForTokenClassification

Browse files
Files changed (4) hide show
  1. config.json +41 -0
  2. model.safetensors +3 -0
  3. tokenizer.json +167 -0
  4. tokenizer_config.json +54 -0
config.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "EsmcForTokenClassification"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": 0.1,
9
+ "dtype": "float32",
10
+ "eos_token_id": 2,
11
+ "head_dim": 8,
12
+ "hidden_act": "silu",
13
+ "hidden_size": 32,
14
+ "id2label": {
15
+ "0": "LABEL_0",
16
+ "1": "LABEL_1",
17
+ "2": "LABEL_2"
18
+ },
19
+ "initializer_range": 0.02,
20
+ "intermediate_size": 64,
21
+ "label2id": {
22
+ "LABEL_0": 0,
23
+ "LABEL_1": 1,
24
+ "LABEL_2": 2
25
+ },
26
+ "mask_token_id": 32,
27
+ "max_position_embeddings": 2048,
28
+ "mlp_bias": false,
29
+ "model_type": "esmc",
30
+ "num_attention_heads": 4,
31
+ "num_hidden_layers": 2,
32
+ "num_key_value_heads": 4,
33
+ "pad_token_id": 1,
34
+ "rope_parameters": {
35
+ "rope_theta": 10000.0,
36
+ "rope_type": "default"
37
+ },
38
+ "tie_word_embeddings": false,
39
+ "transformers_version": "5.19.0.dev0",
40
+ "vocab_size": 33
41
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:07efa5b4c78e1abdbbeddca4e3628040f55409361a85692de951650b7dbdd941
3
+ size 91132
tokenizer.json ADDED
@@ -0,0 +1,167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": "1.0",
3
+ "truncation": null,
4
+ "padding": null,
5
+ "added_tokens": [
6
+ {
7
+ "id": 0,
8
+ "content": "<cls>",
9
+ "single_word": false,
10
+ "lstrip": false,
11
+ "rstrip": false,
12
+ "normalized": false,
13
+ "special": true
14
+ },
15
+ {
16
+ "id": 1,
17
+ "content": "<pad>",
18
+ "single_word": false,
19
+ "lstrip": false,
20
+ "rstrip": false,
21
+ "normalized": false,
22
+ "special": true
23
+ },
24
+ {
25
+ "id": 2,
26
+ "content": "<eos>",
27
+ "single_word": false,
28
+ "lstrip": false,
29
+ "rstrip": false,
30
+ "normalized": false,
31
+ "special": true
32
+ },
33
+ {
34
+ "id": 3,
35
+ "content": "<unk>",
36
+ "single_word": false,
37
+ "lstrip": false,
38
+ "rstrip": false,
39
+ "normalized": false,
40
+ "special": true
41
+ },
42
+ {
43
+ "id": 31,
44
+ "content": "|",
45
+ "single_word": false,
46
+ "lstrip": false,
47
+ "rstrip": false,
48
+ "normalized": false,
49
+ "special": true
50
+ },
51
+ {
52
+ "id": 32,
53
+ "content": "<mask>",
54
+ "single_word": false,
55
+ "lstrip": false,
56
+ "rstrip": false,
57
+ "normalized": false,
58
+ "special": true
59
+ }
60
+ ],
61
+ "normalizer": null,
62
+ "pre_tokenizer": null,
63
+ "post_processor": {
64
+ "type": "TemplateProcessing",
65
+ "single": [
66
+ {
67
+ "SpecialToken": {
68
+ "id": "<cls>",
69
+ "type_id": 0
70
+ }
71
+ },
72
+ {
73
+ "Sequence": {
74
+ "id": "A",
75
+ "type_id": 0
76
+ }
77
+ },
78
+ {
79
+ "SpecialToken": {
80
+ "id": "<eos>",
81
+ "type_id": 0
82
+ }
83
+ }
84
+ ],
85
+ "pair": [
86
+ {
87
+ "Sequence": {
88
+ "id": "A",
89
+ "type_id": 0
90
+ }
91
+ },
92
+ {
93
+ "Sequence": {
94
+ "id": "B",
95
+ "type_id": 1
96
+ }
97
+ }
98
+ ],
99
+ "special_tokens": {
100
+ "<cls>": {
101
+ "id": "<cls>",
102
+ "ids": [
103
+ 0
104
+ ],
105
+ "tokens": [
106
+ "<cls>"
107
+ ]
108
+ },
109
+ "<eos>": {
110
+ "id": "<eos>",
111
+ "ids": [
112
+ 2
113
+ ],
114
+ "tokens": [
115
+ "<eos>"
116
+ ]
117
+ }
118
+ }
119
+ },
120
+ "decoder": null,
121
+ "model": {
122
+ "type": "BPE",
123
+ "dropout": null,
124
+ "unk_token": "<unk>",
125
+ "continuing_subword_prefix": null,
126
+ "end_of_word_suffix": null,
127
+ "fuse_unk": false,
128
+ "byte_fallback": false,
129
+ "ignore_merges": false,
130
+ "vocab": {
131
+ "<cls>": 0,
132
+ "<pad>": 1,
133
+ "<eos>": 2,
134
+ "<unk>": 3,
135
+ "L": 4,
136
+ "A": 5,
137
+ "G": 6,
138
+ "V": 7,
139
+ "S": 8,
140
+ "E": 9,
141
+ "R": 10,
142
+ "T": 11,
143
+ "I": 12,
144
+ "D": 13,
145
+ "P": 14,
146
+ "K": 15,
147
+ "Q": 16,
148
+ "N": 17,
149
+ "F": 18,
150
+ "Y": 19,
151
+ "M": 20,
152
+ "H": 21,
153
+ "W": 22,
154
+ "C": 23,
155
+ "X": 24,
156
+ "B": 25,
157
+ "U": 26,
158
+ "Z": 27,
159
+ "O": 28,
160
+ ".": 29,
161
+ "-": 30,
162
+ "|": 31,
163
+ "<mask>": 32
164
+ },
165
+ "merges": []
166
+ }
167
+ }
tokenizer_config.json ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "bos_token": "<cls>",
4
+ "chain_break_token": "|",
5
+ "cls_token": "<cls>",
6
+ "eos_token": "<eos>",
7
+ "extra_special_tokens": [],
8
+ "is_local": true,
9
+ "local_files_only": false,
10
+ "mask_token": "<mask>",
11
+ "merges": [],
12
+ "model_max_length": 2048,
13
+ "model_specific_special_tokens": {
14
+ "chain_break_token": "|"
15
+ },
16
+ "pad_token": "<pad>",
17
+ "tokenizer_class": "EsmcTokenizer",
18
+ "unk_token": "<unk>",
19
+ "vocab": {
20
+ "-": 30,
21
+ ".": 29,
22
+ "<cls>": 0,
23
+ "<eos>": 2,
24
+ "<mask>": 32,
25
+ "<pad>": 1,
26
+ "<unk>": 3,
27
+ "A": 5,
28
+ "B": 25,
29
+ "C": 23,
30
+ "D": 13,
31
+ "E": 9,
32
+ "F": 18,
33
+ "G": 6,
34
+ "H": 21,
35
+ "I": 12,
36
+ "K": 15,
37
+ "L": 4,
38
+ "M": 20,
39
+ "N": 17,
40
+ "O": 28,
41
+ "P": 14,
42
+ "Q": 16,
43
+ "R": 10,
44
+ "S": 8,
45
+ "T": 11,
46
+ "U": 26,
47
+ "V": 7,
48
+ "W": 22,
49
+ "X": 24,
50
+ "Y": 19,
51
+ "Z": 27,
52
+ "|": 31
53
+ }
54
+ }