adding files for quantized model
Browse files- config.json +111 -0
- model_quantized.onnx +3 -0
- ort_config.json +35 -0
- special_tokens_map.json +37 -0
- tokenizer.json +0 -0
- tokenizer_config.json +61 -0
- vocab.txt +0 -0
config.json
ADDED
@@ -0,0 +1,111 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "/tmp/tmp7h5zsd65",
|
3 |
+
"architectures": [
|
4 |
+
"BertForTokenClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"hidden_act": "gelu",
|
9 |
+
"hidden_dropout_prob": 0.1,
|
10 |
+
"hidden_size": 512,
|
11 |
+
"id2label": {
|
12 |
+
"0": "O",
|
13 |
+
"1": "B-chemical",
|
14 |
+
"2": "B-species",
|
15 |
+
"3": "B-gene",
|
16 |
+
"4": "I-gene",
|
17 |
+
"5": "B-taxonomy_domain",
|
18 |
+
"6": "I-chemical",
|
19 |
+
"7": "B-protein_type",
|
20 |
+
"8": "B-experimental_method",
|
21 |
+
"9": "I-experimental_method",
|
22 |
+
"10": "I-protein_type",
|
23 |
+
"11": "I-species",
|
24 |
+
"12": "B-evidence",
|
25 |
+
"13": "I-evidence",
|
26 |
+
"14": "B-protein",
|
27 |
+
"15": "I-protein",
|
28 |
+
"16": "B-protein_state",
|
29 |
+
"17": "B-site",
|
30 |
+
"18": "I-site",
|
31 |
+
"19": "B-structure_element",
|
32 |
+
"20": "I-structure_element",
|
33 |
+
"21": "B-complex_assembly",
|
34 |
+
"22": "I-protein_state",
|
35 |
+
"23": "I-complex_assembly",
|
36 |
+
"24": "B-ptm",
|
37 |
+
"25": "B-mutant",
|
38 |
+
"26": "I-mutant",
|
39 |
+
"27": "B-oligomeric_state",
|
40 |
+
"28": "B-residue_name_number",
|
41 |
+
"29": "B-bond_interaction",
|
42 |
+
"30": "I-bond_interaction",
|
43 |
+
"31": "B-residue_range",
|
44 |
+
"32": "I-residue_range",
|
45 |
+
"33": "B-residue_name",
|
46 |
+
"34": "B-residue_number",
|
47 |
+
"35": "I-ptm",
|
48 |
+
"36": "I-taxonomy_domain",
|
49 |
+
"37": "I-oligomeric_state",
|
50 |
+
"38": "I-residue_name_number",
|
51 |
+
"39": "I-residue_name",
|
52 |
+
"40": "I-residue_number"
|
53 |
+
},
|
54 |
+
"initializer_range": 0.02,
|
55 |
+
"intermediate_size": 2048,
|
56 |
+
"label2id": {
|
57 |
+
"B-bond_interaction": 29,
|
58 |
+
"B-chemical": 1,
|
59 |
+
"B-complex_assembly": 21,
|
60 |
+
"B-evidence": 12,
|
61 |
+
"B-experimental_method": 8,
|
62 |
+
"B-gene": 3,
|
63 |
+
"B-mutant": 25,
|
64 |
+
"B-oligomeric_state": 27,
|
65 |
+
"B-protein": 14,
|
66 |
+
"B-protein_state": 16,
|
67 |
+
"B-protein_type": 7,
|
68 |
+
"B-ptm": 24,
|
69 |
+
"B-residue_name": 33,
|
70 |
+
"B-residue_name_number": 28,
|
71 |
+
"B-residue_number": 34,
|
72 |
+
"B-residue_range": 31,
|
73 |
+
"B-site": 17,
|
74 |
+
"B-species": 2,
|
75 |
+
"B-structure_element": 19,
|
76 |
+
"B-taxonomy_domain": 5,
|
77 |
+
"I-bond_interaction": 30,
|
78 |
+
"I-chemical": 6,
|
79 |
+
"I-complex_assembly": 23,
|
80 |
+
"I-evidence": 13,
|
81 |
+
"I-experimental_method": 9,
|
82 |
+
"I-gene": 4,
|
83 |
+
"I-mutant": 26,
|
84 |
+
"I-oligomeric_state": 37,
|
85 |
+
"I-protein": 15,
|
86 |
+
"I-protein_state": 22,
|
87 |
+
"I-protein_type": 10,
|
88 |
+
"I-ptm": 35,
|
89 |
+
"I-residue_name": 39,
|
90 |
+
"I-residue_name_number": 38,
|
91 |
+
"I-residue_number": 40,
|
92 |
+
"I-residue_range": 32,
|
93 |
+
"I-site": 18,
|
94 |
+
"I-species": 11,
|
95 |
+
"I-structure_element": 20,
|
96 |
+
"I-taxonomy_domain": 36,
|
97 |
+
"O": 0
|
98 |
+
},
|
99 |
+
"layer_norm_eps": 1e-12,
|
100 |
+
"max_position_embeddings": 512,
|
101 |
+
"model_type": "bert",
|
102 |
+
"num_attention_heads": 8,
|
103 |
+
"num_hidden_layers": 8,
|
104 |
+
"pad_token_id": 0,
|
105 |
+
"position_embedding_type": "absolute",
|
106 |
+
"torch_dtype": "float32",
|
107 |
+
"transformers_version": "4.38.2",
|
108 |
+
"type_vocab_size": 2,
|
109 |
+
"use_cache": true,
|
110 |
+
"vocab_size": 32768
|
111 |
+
}
|
model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:769f0f3f4065b28f021b20bb355acac9082adc45861f40cf66381ed54897a4da
|
3 |
+
size 42773550
|
ort_config.json
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"one_external_file": true,
|
3 |
+
"opset": null,
|
4 |
+
"optimization": {},
|
5 |
+
"optimum_version": "1.17.1",
|
6 |
+
"quantization": {
|
7 |
+
"activations_dtype": "QUInt8",
|
8 |
+
"activations_symmetric": false,
|
9 |
+
"format": "QOperator",
|
10 |
+
"is_static": false,
|
11 |
+
"mode": "IntegerOps",
|
12 |
+
"nodes_to_exclude": [],
|
13 |
+
"nodes_to_quantize": [],
|
14 |
+
"operators_to_quantize": [
|
15 |
+
"Conv",
|
16 |
+
"MatMul",
|
17 |
+
"Attention",
|
18 |
+
"LSTM",
|
19 |
+
"Gather",
|
20 |
+
"Transpose",
|
21 |
+
"EmbedLayerNormalization"
|
22 |
+
],
|
23 |
+
"per_channel": false,
|
24 |
+
"qdq_add_pair_to_weight": false,
|
25 |
+
"qdq_dedicated_pair": false,
|
26 |
+
"qdq_op_type_per_channel_support_to_axis": {
|
27 |
+
"MatMul": 1
|
28 |
+
},
|
29 |
+
"reduce_range": false,
|
30 |
+
"weights_dtype": "QInt8",
|
31 |
+
"weights_symmetric": true
|
32 |
+
},
|
33 |
+
"transformers_version": "4.38.2",
|
34 |
+
"use_external_data_format": false
|
35 |
+
}
|
special_tokens_map.json
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cls_token": {
|
3 |
+
"content": "[CLS]",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": false,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"mask_token": {
|
10 |
+
"content": "[MASK]",
|
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 |
+
"sep_token": {
|
24 |
+
"content": "[SEP]",
|
25 |
+
"lstrip": false,
|
26 |
+
"normalized": false,
|
27 |
+
"rstrip": false,
|
28 |
+
"single_word": false
|
29 |
+
},
|
30 |
+
"unk_token": {
|
31 |
+
"content": "[UNK]",
|
32 |
+
"lstrip": false,
|
33 |
+
"normalized": false,
|
34 |
+
"rstrip": false,
|
35 |
+
"single_word": false
|
36 |
+
}
|
37 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"0": {
|
4 |
+
"content": "[PAD]",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false,
|
9 |
+
"special": true
|
10 |
+
},
|
11 |
+
"100": {
|
12 |
+
"content": "[UNK]",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false,
|
17 |
+
"special": true
|
18 |
+
},
|
19 |
+
"101": {
|
20 |
+
"content": "[CLS]",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
},
|
27 |
+
"102": {
|
28 |
+
"content": "[SEP]",
|
29 |
+
"lstrip": false,
|
30 |
+
"normalized": false,
|
31 |
+
"rstrip": false,
|
32 |
+
"single_word": false,
|
33 |
+
"special": true
|
34 |
+
},
|
35 |
+
"103": {
|
36 |
+
"content": "[MASK]",
|
37 |
+
"lstrip": false,
|
38 |
+
"normalized": false,
|
39 |
+
"rstrip": false,
|
40 |
+
"single_word": false,
|
41 |
+
"special": true
|
42 |
+
}
|
43 |
+
},
|
44 |
+
"clean_up_tokenization_spaces": true,
|
45 |
+
"cls_token": "[CLS]",
|
46 |
+
"do_basic_tokenize": true,
|
47 |
+
"do_lower_case": false,
|
48 |
+
"mask_token": "[MASK]",
|
49 |
+
"max_length": 512,
|
50 |
+
"model_max_length": 1000000000000000019884624838656,
|
51 |
+
"never_split": null,
|
52 |
+
"pad_token": "[PAD]",
|
53 |
+
"sep_token": "[SEP]",
|
54 |
+
"stride": 0,
|
55 |
+
"strip_accents": null,
|
56 |
+
"tokenize_chinese_chars": true,
|
57 |
+
"tokenizer_class": "BertTokenizer",
|
58 |
+
"truncation_side": "right",
|
59 |
+
"truncation_strategy": "longest_first",
|
60 |
+
"unk_token": "[UNK]"
|
61 |
+
}
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|