Xenova HF staff commited on
Commit
842eeae
1 Parent(s): faea841

Upload folder using huggingface_hub

Browse files
added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "[UNK]": 39979
3
+ }
config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "nghuyong/ernie-3.0-medium-zh",
3
+ "architectures": [
4
+ "ErnieForMaskedLM"
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": 768,
11
+ "initializer_range": 0.02,
12
+ "intermediate_size": 3072,
13
+ "layer_norm_eps": 1e-05,
14
+ "max_position_embeddings": 2048,
15
+ "model_type": "ernie",
16
+ "num_attention_heads": 12,
17
+ "num_hidden_layers": 6,
18
+ "pad_token_id": 0,
19
+ "position_embedding_type": "absolute",
20
+ "task_type_vocab_size": 16,
21
+ "transformers_version": "4.38.2",
22
+ "type_vocab_size": 4,
23
+ "use_cache": true,
24
+ "use_task_id": true,
25
+ "vocab_size": 40000
26
+ }
generation_config.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "pad_token_id": 0,
4
+ "transformers_version": "4.38.2"
5
+ }
onnx/model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3074d4f05ef2f34a3ab316745322ccddf9800fe715a68a469881543f3134304c
3
+ size 302030872
onnx/model_bnb4.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:52e0b0a4e6162195e2cdcd6a5985e8ebcd12da5bfdd34f340fe80334721f804f
3
+ size 154027603
onnx/model_fp16.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b3ad337db36b467915851093fc4a00e0c45a6a0acc157718749d987db0e8bbd1
3
+ size 151141098
onnx/model_int8.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:72eb7f40217e4c483672657953c4e5852ce6a0eaa6252f414945352f9489f6fb
3
+ size 76242841
onnx/model_q4.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4bde9b3e15399fd99501167b761361715f35e3c13ee0c41da90c9a38db2d6dfd
3
+ size 156718404
onnx/model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:72eb7f40217e4c483672657953c4e5852ce6a0eaa6252f414945352f9489f6fb
3
+ size 76242841
onnx/model_uint8.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:52eb53fa636819d52acfed09a88bf432fd953a03549f234b9fe1002d13c1899c
3
+ size 76242839
quantize_config.json ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "fp16": {},
3
+ "q8": {
4
+ "per_model_config": {
5
+ "model": {
6
+ "op_types": [
7
+ "Add",
8
+ "Cast",
9
+ "Concat",
10
+ "Constant",
11
+ "ConstantOfShape",
12
+ "Div",
13
+ "Erf",
14
+ "Gather",
15
+ "Identity",
16
+ "MatMul",
17
+ "Mul",
18
+ "Pow",
19
+ "ReduceMean",
20
+ "Reshape",
21
+ "Shape",
22
+ "Slice",
23
+ "Softmax",
24
+ "Sqrt",
25
+ "Sub",
26
+ "Transpose",
27
+ "Unsqueeze"
28
+ ],
29
+ "weight_type": "QInt8"
30
+ }
31
+ },
32
+ "per_channel": true,
33
+ "reduce_range": true
34
+ },
35
+ "int8": {
36
+ "per_model_config": {
37
+ "model": {
38
+ "op_types": [
39
+ "Add",
40
+ "Cast",
41
+ "Concat",
42
+ "Constant",
43
+ "ConstantOfShape",
44
+ "Div",
45
+ "Erf",
46
+ "Gather",
47
+ "Identity",
48
+ "MatMul",
49
+ "Mul",
50
+ "Pow",
51
+ "ReduceMean",
52
+ "Reshape",
53
+ "Shape",
54
+ "Slice",
55
+ "Softmax",
56
+ "Sqrt",
57
+ "Sub",
58
+ "Transpose",
59
+ "Unsqueeze"
60
+ ],
61
+ "weight_type": "QInt8"
62
+ }
63
+ },
64
+ "per_channel": true,
65
+ "reduce_range": true
66
+ },
67
+ "uint8": {
68
+ "per_model_config": {
69
+ "model": {
70
+ "op_types": [
71
+ "Add",
72
+ "Cast",
73
+ "Concat",
74
+ "Constant",
75
+ "ConstantOfShape",
76
+ "Div",
77
+ "Erf",
78
+ "Gather",
79
+ "Identity",
80
+ "MatMul",
81
+ "Mul",
82
+ "Pow",
83
+ "ReduceMean",
84
+ "Reshape",
85
+ "Shape",
86
+ "Slice",
87
+ "Softmax",
88
+ "Sqrt",
89
+ "Sub",
90
+ "Transpose",
91
+ "Unsqueeze"
92
+ ],
93
+ "weight_type": "QUInt8"
94
+ }
95
+ },
96
+ "per_channel": true,
97
+ "reduce_range": true
98
+ },
99
+ "q4": {
100
+ "block_size": 32,
101
+ "is_symmetric": true,
102
+ "accuracy_level": null
103
+ },
104
+ "bnb4": {
105
+ "block_size": 64,
106
+ "quant_type": 1
107
+ }
108
+ }
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,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "1": {
12
+ "content": "[CLS]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "[SEP]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "[MASK]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "39979": {
36
+ "content": "[UNK]",
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": true,
48
+ "mask_token": "[MASK]",
49
+ "model_max_length": 1000000000000000019884624838656,
50
+ "never_split": null,
51
+ "pad_token": "[PAD]",
52
+ "sep_token": "[SEP]",
53
+ "strip_accents": null,
54
+ "tokenize_chinese_chars": true,
55
+ "tokenizer_class": "BertTokenizer",
56
+ "unk_token": "[UNK]"
57
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff