ldenoue commited on
Commit
42fa017
1 Parent(s): 2bb7254

Upload 8 files

Browse files

first upload of ONNX converted quantized models

config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "ldenoue/distilbert-punctuator",
3
+ "activation": "gelu",
4
+ "architectures": [
5
+ "DistilBertForTokenClassification"
6
+ ],
7
+ "attention_dropout": 0.1,
8
+ "dim": 768,
9
+ "dropout": 0.25,
10
+ "hidden_dim": 3072,
11
+ "id2label": {
12
+ "0": "QUESTIONMARK",
13
+ "1": "EXLAMATIONMARK",
14
+ "2": "COMMA",
15
+ "3": "O",
16
+ "4": "PERIOD"
17
+ },
18
+ "initializer_range": 0.02,
19
+ "label2id": {
20
+ "COMMA": 2,
21
+ "EXLAMATIONMARK": 1,
22
+ "O": 3,
23
+ "PERIOD": 4,
24
+ "QUESTIONMARK": 0
25
+ },
26
+ "max_position_embeddings": 512,
27
+ "model_type": "distilbert",
28
+ "n_heads": 12,
29
+ "n_layers": 6,
30
+ "pad_token_id": 0,
31
+ "qa_dropout": 0.1,
32
+ "seq_classif_dropout": 0.2,
33
+ "sinusoidal_pos_embds": false,
34
+ "tie_weights_": true,
35
+ "transformers_version": "4.33.2",
36
+ "vocab_size": 30522
37
+ }
onnx/.DS_Store ADDED
Binary file (6.15 kB). View file
 
onnx/model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:39c99d61694332364c710a92988a591502f60d932cf5c28f18b92be0ad1c01ba
3
+ size 66985523
quantize_config.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "per_channel": true,
3
+ "reduce_range": true,
4
+ "per_model_config": {
5
+ "model": {
6
+ "op_types": [
7
+ "MatMul",
8
+ "Equal",
9
+ "Gather",
10
+ "Mul",
11
+ "Add",
12
+ "Transpose",
13
+ "Shape",
14
+ "Softmax",
15
+ "Pow",
16
+ "ReduceMean",
17
+ "Slice",
18
+ "Div",
19
+ "Sub",
20
+ "Where",
21
+ "Sqrt",
22
+ "Unsqueeze",
23
+ "Expand",
24
+ "Erf",
25
+ "Concat",
26
+ "Constant",
27
+ "Cast",
28
+ "Reshape"
29
+ ],
30
+ "weight_type": "QInt8"
31
+ }
32
+ }
33
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "clean_up_tokenization_spaces": true,
3
+ "cls_token": "[CLS]",
4
+ "do_lower_case": true,
5
+ "mask_token": "[MASK]",
6
+ "model_max_length": 512,
7
+ "pad_token": "[PAD]",
8
+ "sep_token": "[SEP]",
9
+ "strip_accents": null,
10
+ "tokenize_chinese_chars": true,
11
+ "tokenizer_class": "DistilBertTokenizer",
12
+ "unk_token": "[UNK]"
13
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff