Xenova HF staff commited on
Commit
00d3f22
1 Parent(s): 8df17d4

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-base-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": 12,
18
+ "pad_token_id": 0,
19
+ "position_embedding_type": "absolute",
20
+ "task_type_vocab_size": 3,
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:a6cc8d980722635e117cb2b0981ac4bcaad582de7975807ac617ce1a0bc27806
3
+ size 472233935
onnx/model_bnb4.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:af2e067f34dc16487582d4885b16a64ea6901a73de59af6f19a2040364cb70c4
3
+ size 178254892
onnx/model_fp16.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c82541b34f16dbee0cb523c451b6048c1230a29cc9e4a2671e852bf1c116394d
3
+ size 236350724
onnx/model_int8.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:36ea52456a85451b9a9fdb938e880725f1efd61a9f02e1dba60547674e52fce4
3
+ size 119370969
onnx/model_q4.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:93bfbd2bc1f528a3954f22e45ecb9045cacea12763a927471ce9d4d3d2e0f62e
3
+ size 183599637
onnx/model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:36ea52456a85451b9a9fdb938e880725f1efd61a9f02e1dba60547674e52fce4
3
+ size 119370969
onnx/model_uint8.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a7f74aa257dca3662ec036ebde99ce362349daa87b3d20e644933b6f0abf604f
3
+ size 119370968
quantize_config.json ADDED
@@ -0,0 +1,105 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "MatMul",
16
+ "Mul",
17
+ "Pow",
18
+ "ReduceMean",
19
+ "Reshape",
20
+ "Shape",
21
+ "Slice",
22
+ "Softmax",
23
+ "Sqrt",
24
+ "Sub",
25
+ "Transpose",
26
+ "Unsqueeze"
27
+ ],
28
+ "weight_type": "QInt8"
29
+ }
30
+ },
31
+ "per_channel": true,
32
+ "reduce_range": true
33
+ },
34
+ "int8": {
35
+ "per_model_config": {
36
+ "model": {
37
+ "op_types": [
38
+ "Add",
39
+ "Cast",
40
+ "Concat",
41
+ "Constant",
42
+ "ConstantOfShape",
43
+ "Div",
44
+ "Erf",
45
+ "Gather",
46
+ "MatMul",
47
+ "Mul",
48
+ "Pow",
49
+ "ReduceMean",
50
+ "Reshape",
51
+ "Shape",
52
+ "Slice",
53
+ "Softmax",
54
+ "Sqrt",
55
+ "Sub",
56
+ "Transpose",
57
+ "Unsqueeze"
58
+ ],
59
+ "weight_type": "QInt8"
60
+ }
61
+ },
62
+ "per_channel": true,
63
+ "reduce_range": true
64
+ },
65
+ "uint8": {
66
+ "per_model_config": {
67
+ "model": {
68
+ "op_types": [
69
+ "Add",
70
+ "Cast",
71
+ "Concat",
72
+ "Constant",
73
+ "ConstantOfShape",
74
+ "Div",
75
+ "Erf",
76
+ "Gather",
77
+ "MatMul",
78
+ "Mul",
79
+ "Pow",
80
+ "ReduceMean",
81
+ "Reshape",
82
+ "Shape",
83
+ "Slice",
84
+ "Softmax",
85
+ "Sqrt",
86
+ "Sub",
87
+ "Transpose",
88
+ "Unsqueeze"
89
+ ],
90
+ "weight_type": "QUInt8"
91
+ }
92
+ },
93
+ "per_channel": true,
94
+ "reduce_range": true
95
+ },
96
+ "q4": {
97
+ "block_size": 32,
98
+ "is_symmetric": true,
99
+ "accuracy_level": null
100
+ },
101
+ "bnb4": {
102
+ "block_size": 64,
103
+ "quant_type": 1
104
+ }
105
+ }
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