tarekziade
commited on
Commit
•
3ca9387
1
Parent(s):
adbd7b8
onnx+quant
Browse files- config.json +34 -0
- onnx/model.onnx +3 -0
- onnx/model_quantized.onnx +3 -0
- quantize_config.json +35 -0
- special_tokens_map.json +7 -0
- tokenizer.json +0 -0
- tokenizer_config.json +15 -0
config.json
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "typeform/distilbert-base-uncased-mnli",
|
3 |
+
"activation": "gelu",
|
4 |
+
"architectures": [
|
5 |
+
"DistilBertForSequenceClassification"
|
6 |
+
],
|
7 |
+
"attention_dropout": 0.1,
|
8 |
+
"dim": 768,
|
9 |
+
"dropout": 0.1,
|
10 |
+
"finetuning_task": "mnli",
|
11 |
+
"hidden_dim": 3072,
|
12 |
+
"id2label": {
|
13 |
+
"0": "ENTAILMENT",
|
14 |
+
"1": "NEUTRAL",
|
15 |
+
"2": "CONTRADICTION"
|
16 |
+
},
|
17 |
+
"initializer_range": 0.02,
|
18 |
+
"label2id": {
|
19 |
+
"CONTRADICTION": 2,
|
20 |
+
"ENTAILMENT": 0,
|
21 |
+
"NEUTRAL": 1
|
22 |
+
},
|
23 |
+
"max_position_embeddings": 512,
|
24 |
+
"model_type": "distilbert",
|
25 |
+
"n_heads": 12,
|
26 |
+
"n_layers": 6,
|
27 |
+
"pad_token_id": 0,
|
28 |
+
"qa_dropout": 0.1,
|
29 |
+
"seq_classif_dropout": 0.2,
|
30 |
+
"sinusoidal_pos_embds": false,
|
31 |
+
"tie_weights_": true,
|
32 |
+
"transformers_version": "4.33.2",
|
33 |
+
"vocab_size": 30522
|
34 |
+
}
|
onnx/model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0a9f5091db758913eeb2d2582f461f9ea97b0f84156650e7aa80920b9c925b4e
|
3 |
+
size 267958790
|
onnx/model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bcff5c2d0d91b10d207b160229c421206562e198d6c70d041644160ba06ecf3a
|
3 |
+
size 67581978
|
quantize_config.json
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"per_channel": true,
|
3 |
+
"reduce_range": true,
|
4 |
+
"per_model_config": {
|
5 |
+
"model": {
|
6 |
+
"op_types": [
|
7 |
+
"Cast",
|
8 |
+
"Softmax",
|
9 |
+
"ReduceMean",
|
10 |
+
"Constant",
|
11 |
+
"Reshape",
|
12 |
+
"Shape",
|
13 |
+
"Expand",
|
14 |
+
"Where",
|
15 |
+
"Gemm",
|
16 |
+
"Div",
|
17 |
+
"MatMul",
|
18 |
+
"Transpose",
|
19 |
+
"Sub",
|
20 |
+
"Unsqueeze",
|
21 |
+
"Relu",
|
22 |
+
"Pow",
|
23 |
+
"Equal",
|
24 |
+
"Gather",
|
25 |
+
"Erf",
|
26 |
+
"Concat",
|
27 |
+
"Mul",
|
28 |
+
"Add",
|
29 |
+
"Sqrt",
|
30 |
+
"Slice"
|
31 |
+
],
|
32 |
+
"weight_type": "QInt8"
|
33 |
+
}
|
34 |
+
}
|
35 |
+
}
|
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,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"clean_up_tokenization_spaces": true,
|
3 |
+
"cls_token": "[CLS]",
|
4 |
+
"do_basic_tokenize": true,
|
5 |
+
"do_lower_case": true,
|
6 |
+
"mask_token": "[MASK]",
|
7 |
+
"model_max_length": 512,
|
8 |
+
"never_split": null,
|
9 |
+
"pad_token": "[PAD]",
|
10 |
+
"sep_token": "[SEP]",
|
11 |
+
"strip_accents": null,
|
12 |
+
"tokenize_chinese_chars": true,
|
13 |
+
"tokenizer_class": "DistilBertTokenizer",
|
14 |
+
"unk_token": "[UNK]"
|
15 |
+
}
|