added onnx
Browse files- config.json +16 -18
- model.safetensors +2 -2
- unigram.json → onnx/model.onnx +2 -2
- onnx/model_quantized.onnx +3 -0
- quantize_config.json +35 -0
- special_tokens_map.json +6 -20
- tokenizer.json +2 -2
- tokenizer_config.json +18 -23
- training_args.bin +2 -2
config.json
CHANGED
@@ -1,14 +1,13 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "
|
|
|
3 |
"architectures": [
|
4 |
-
"
|
5 |
],
|
6 |
-
"
|
7 |
-
"
|
8 |
-
"
|
9 |
-
"
|
10 |
-
"hidden_dropout_prob": 0.1,
|
11 |
-
"hidden_size": 384,
|
12 |
"id2label": {
|
13 |
"0": "LABEL_0",
|
14 |
"1": "LABEL_1",
|
@@ -29,7 +28,6 @@
|
|
29 |
"16": "LABEL_16"
|
30 |
},
|
31 |
"initializer_range": 0.02,
|
32 |
-
"intermediate_size": 1536,
|
33 |
"label2id": {
|
34 |
"LABEL_0": 0,
|
35 |
"LABEL_1": 1,
|
@@ -49,17 +47,17 @@
|
|
49 |
"LABEL_8": 8,
|
50 |
"LABEL_9": 9
|
51 |
},
|
52 |
-
"layer_norm_eps": 1e-12,
|
53 |
"max_position_embeddings": 512,
|
54 |
-
"model_type": "
|
55 |
-
"
|
56 |
-
"
|
|
|
57 |
"pad_token_id": 0,
|
58 |
-
"position_embedding_type": "absolute",
|
59 |
"problem_type": "single_label_classification",
|
60 |
-
"
|
|
|
|
|
|
|
61 |
"transformers_version": "4.44.2",
|
62 |
-
"
|
63 |
-
"use_cache": true,
|
64 |
-
"vocab_size": 250037
|
65 |
}
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "/content/distilbert-base-multilingual-cased",
|
3 |
+
"activation": "gelu",
|
4 |
"architectures": [
|
5 |
+
"DistilBertForSequenceClassification"
|
6 |
],
|
7 |
+
"attention_dropout": 0.1,
|
8 |
+
"dim": 768,
|
9 |
+
"dropout": 0.1,
|
10 |
+
"hidden_dim": 3072,
|
|
|
|
|
11 |
"id2label": {
|
12 |
"0": "LABEL_0",
|
13 |
"1": "LABEL_1",
|
|
|
28 |
"16": "LABEL_16"
|
29 |
},
|
30 |
"initializer_range": 0.02,
|
|
|
31 |
"label2id": {
|
32 |
"LABEL_0": 0,
|
33 |
"LABEL_1": 1,
|
|
|
47 |
"LABEL_8": 8,
|
48 |
"LABEL_9": 9
|
49 |
},
|
|
|
50 |
"max_position_embeddings": 512,
|
51 |
+
"model_type": "distilbert",
|
52 |
+
"n_heads": 12,
|
53 |
+
"n_layers": 6,
|
54 |
+
"output_past": true,
|
55 |
"pad_token_id": 0,
|
|
|
56 |
"problem_type": "single_label_classification",
|
57 |
+
"qa_dropout": 0.1,
|
58 |
+
"seq_classif_dropout": 0.2,
|
59 |
+
"sinusoidal_pos_embds": false,
|
60 |
+
"tie_weights_": true,
|
61 |
"transformers_version": "4.44.2",
|
62 |
+
"vocab_size": 119547
|
|
|
|
|
63 |
}
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:79bd4c961dd02071df3e45692e3b196805c826224f919e2679f0cb9258fcb6bd
|
3 |
+
size 541363516
|
unigram.json → onnx/model.onnx
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d1e34b3fe865c0b62e49c163ad10c4ab64b7210e208f1095f968c1b89c91e330
|
3 |
+
size 541486659
|
onnx/model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:70533cd601f21f138c8827307da1e142238ccb5f8b915fb8c61a51b3227caf6c
|
3 |
+
size 135753249
|
quantize_config.json
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"per_channel": false,
|
3 |
+
"reduce_range": true,
|
4 |
+
"per_model_config": {
|
5 |
+
"model": {
|
6 |
+
"op_types": [
|
7 |
+
"Gather",
|
8 |
+
"Relu",
|
9 |
+
"Reshape",
|
10 |
+
"Unsqueeze",
|
11 |
+
"ReduceMean",
|
12 |
+
"Pow",
|
13 |
+
"Where",
|
14 |
+
"Equal",
|
15 |
+
"Constant",
|
16 |
+
"Slice",
|
17 |
+
"Erf",
|
18 |
+
"Sub",
|
19 |
+
"MatMul",
|
20 |
+
"Shape",
|
21 |
+
"Sqrt",
|
22 |
+
"Cast",
|
23 |
+
"Gemm",
|
24 |
+
"Expand",
|
25 |
+
"Softmax",
|
26 |
+
"Add",
|
27 |
+
"Concat",
|
28 |
+
"Div",
|
29 |
+
"Mul",
|
30 |
+
"Transpose"
|
31 |
+
],
|
32 |
+
"weight_type": "QInt8"
|
33 |
+
}
|
34 |
+
}
|
35 |
+
}
|
special_tokens_map.json
CHANGED
@@ -1,48 +1,34 @@
|
|
1 |
{
|
2 |
-
"bos_token": {
|
3 |
-
"content": "<s>",
|
4 |
-
"lstrip": false,
|
5 |
-
"normalized": false,
|
6 |
-
"rstrip": false,
|
7 |
-
"single_word": false
|
8 |
-
},
|
9 |
"cls_token": {
|
10 |
-
"content": "
|
11 |
-
"lstrip": false,
|
12 |
-
"normalized": false,
|
13 |
-
"rstrip": false,
|
14 |
-
"single_word": false
|
15 |
-
},
|
16 |
-
"eos_token": {
|
17 |
-
"content": "</s>",
|
18 |
"lstrip": false,
|
19 |
"normalized": false,
|
20 |
"rstrip": false,
|
21 |
"single_word": false
|
22 |
},
|
23 |
"mask_token": {
|
24 |
-
"content": "
|
25 |
-
"lstrip":
|
26 |
"normalized": false,
|
27 |
"rstrip": false,
|
28 |
"single_word": false
|
29 |
},
|
30 |
"pad_token": {
|
31 |
-
"content": "
|
32 |
"lstrip": false,
|
33 |
"normalized": false,
|
34 |
"rstrip": false,
|
35 |
"single_word": false
|
36 |
},
|
37 |
"sep_token": {
|
38 |
-
"content": "
|
39 |
"lstrip": false,
|
40 |
"normalized": false,
|
41 |
"rstrip": false,
|
42 |
"single_word": false
|
43 |
},
|
44 |
"unk_token": {
|
45 |
-
"content": "
|
46 |
"lstrip": false,
|
47 |
"normalized": false,
|
48 |
"rstrip": false,
|
|
|
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,
|
tokenizer.json
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7d76a4d25ebe8f217654f1039bd991bfc96e7c2cd36e6d28aff941783ed1e9c8
|
3 |
+
size 2919460
|
tokenizer_config.json
CHANGED
@@ -1,64 +1,59 @@
|
|
1 |
{
|
2 |
"added_tokens_decoder": {
|
3 |
"0": {
|
4 |
-
"content": "
|
5 |
"lstrip": false,
|
6 |
"normalized": false,
|
7 |
"rstrip": false,
|
8 |
"single_word": false,
|
9 |
"special": true
|
10 |
},
|
11 |
-
"
|
12 |
-
"content": "
|
13 |
"lstrip": false,
|
14 |
"normalized": false,
|
15 |
"rstrip": false,
|
16 |
"single_word": false,
|
17 |
"special": true
|
18 |
},
|
19 |
-
"
|
20 |
-
"content": "
|
21 |
"lstrip": false,
|
22 |
"normalized": false,
|
23 |
"rstrip": false,
|
24 |
"single_word": false,
|
25 |
"special": true
|
26 |
},
|
27 |
-
"
|
28 |
-
"content": "
|
29 |
"lstrip": false,
|
30 |
"normalized": false,
|
31 |
"rstrip": false,
|
32 |
"single_word": false,
|
33 |
"special": true
|
34 |
},
|
35 |
-
"
|
36 |
-
"content": "
|
37 |
-
"lstrip":
|
38 |
"normalized": false,
|
39 |
"rstrip": false,
|
40 |
"single_word": false,
|
41 |
"special": true
|
42 |
}
|
43 |
},
|
44 |
-
"bos_token": "<s>",
|
45 |
"clean_up_tokenization_spaces": true,
|
46 |
-
"cls_token": "
|
47 |
-
"do_lower_case":
|
48 |
-
"
|
49 |
-
"
|
50 |
-
"max_length": 128,
|
51 |
"model_max_length": 512,
|
52 |
-
"
|
53 |
-
"
|
54 |
-
"pad_token_type_id": 0,
|
55 |
-
"padding_side": "right",
|
56 |
-
"sep_token": "</s>",
|
57 |
"stride": 0,
|
58 |
"strip_accents": null,
|
59 |
"tokenize_chinese_chars": true,
|
60 |
-
"tokenizer_class": "
|
61 |
"truncation_side": "right",
|
62 |
"truncation_strategy": "longest_first",
|
63 |
-
"unk_token": "
|
64 |
}
|
|
|
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_lower_case": false,
|
47 |
+
"mask_token": "[MASK]",
|
48 |
+
"max_length": 512,
|
|
|
49 |
"model_max_length": 512,
|
50 |
+
"pad_token": "[PAD]",
|
51 |
+
"sep_token": "[SEP]",
|
|
|
|
|
|
|
52 |
"stride": 0,
|
53 |
"strip_accents": null,
|
54 |
"tokenize_chinese_chars": true,
|
55 |
+
"tokenizer_class": "DistilBertTokenizer",
|
56 |
"truncation_side": "right",
|
57 |
"truncation_strategy": "longest_first",
|
58 |
+
"unk_token": "[UNK]"
|
59 |
}
|
training_args.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7dd08b51ecf04e68f191fc1644771888d7cc109cae699c3ea3fff0c02ead62be
|
3 |
+
size 5240
|