Xenova HF staff commited on
Commit
769f76f
1 Parent(s): 88d8309

Upload folder using huggingface_hub

Browse files
config.json ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "Helsinki-NLP/opus-mt-en-zh",
3
+ "activation_dropout": 0.0,
4
+ "activation_function": "swish",
5
+ "add_bias_logits": false,
6
+ "add_final_layer_norm": false,
7
+ "architectures": [
8
+ "MarianMTModel"
9
+ ],
10
+ "attention_dropout": 0.0,
11
+ "bad_words_ids": [
12
+ [
13
+ 65000
14
+ ]
15
+ ],
16
+ "bos_token_id": 0,
17
+ "classif_dropout": 0.0,
18
+ "classifier_dropout": 0.0,
19
+ "d_model": 512,
20
+ "decoder_attention_heads": 8,
21
+ "decoder_ffn_dim": 2048,
22
+ "decoder_layerdrop": 0.0,
23
+ "decoder_layers": 6,
24
+ "decoder_start_token_id": 65000,
25
+ "decoder_vocab_size": 65001,
26
+ "do_blenderbot_90_layernorm": false,
27
+ "dropout": 0.1,
28
+ "encoder_attention_heads": 8,
29
+ "encoder_ffn_dim": 2048,
30
+ "encoder_layerdrop": 0.0,
31
+ "encoder_layers": 6,
32
+ "eos_token_id": 0,
33
+ "extra_pos_embeddings": 0,
34
+ "force_bos_token_to_be_generated": false,
35
+ "forced_eos_token_id": 0,
36
+ "gradient_checkpointing": false,
37
+ "id2label": {
38
+ "0": "LABEL_0",
39
+ "1": "LABEL_1",
40
+ "2": "LABEL_2"
41
+ },
42
+ "init_std": 0.02,
43
+ "is_encoder_decoder": true,
44
+ "label2id": {
45
+ "LABEL_0": 0,
46
+ "LABEL_1": 1,
47
+ "LABEL_2": 2
48
+ },
49
+ "max_length": 512,
50
+ "max_position_embeddings": 512,
51
+ "model_type": "marian",
52
+ "normalize_before": false,
53
+ "normalize_embedding": false,
54
+ "num_beams": 4,
55
+ "num_hidden_layers": 6,
56
+ "pad_token_id": 65000,
57
+ "scale_embedding": true,
58
+ "share_encoder_decoder_embeddings": true,
59
+ "static_position_embeddings": true,
60
+ "transformers_version": "4.32.0.dev0",
61
+ "use_cache": true,
62
+ "vocab_size": 65001
63
+ }
generation_config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bad_words_ids": [
4
+ [
5
+ 65000
6
+ ]
7
+ ],
8
+ "bos_token_id": 0,
9
+ "decoder_start_token_id": 65000,
10
+ "eos_token_id": 0,
11
+ "forced_eos_token_id": 0,
12
+ "max_length": 512,
13
+ "num_beams": 4,
14
+ "pad_token_id": 65000,
15
+ "transformers_version": "4.32.0.dev0"
16
+ }
onnx/decoder_model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:44f4f093000e90a399c4069767a52e8f8ed41714dad52c5cf78136b52e5152a5
3
+ size 368725660
onnx/decoder_model_merged.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9d013614e8f1d422eb93d49da34212309ce7fde4d4a90559dd821b33a2d795c5
3
+ size 368961142
onnx/decoder_model_merged_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ee257ab6d17ee4370d4619d8752371fa0999b9773fe91debdc16cadb2ac6556c
3
+ size 93819733
onnx/decoder_model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c678550a305403cff6b5f2d6cca6bf84b04d23f5e572e518ac5bc346a192e199
3
+ size 93448377
onnx/decoder_with_past_model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:05675fdd55f24838cbb414f35eeb9b33358e8332661d7618530c95aef8983f1c
3
+ size 356075151
onnx/decoder_with_past_model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:610fcc36b357856152226a90a2cb93971755f7393f50b530d7696ef1b45e99ef
3
+ size 90176913
onnx/encoder_model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6948db6bbc4869581eddf935d8486ca96388e4395c06a86c35e4051cb11373b9
3
+ size 209938220
onnx/encoder_model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d3b7912bf6a9bd27e4c074c2df91d4ff3d5b4bc5f7f6c8d7cc9c805c98fbafee
3
+ size 52899742
quantize_config.json ADDED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "per_channel": true,
3
+ "reduce_range": true,
4
+ "per_model_config": {
5
+ "encoder_model": {
6
+ "op_types": [
7
+ "Concat",
8
+ "Add",
9
+ "ConstantOfShape",
10
+ "Gather",
11
+ "Sub",
12
+ "Cast",
13
+ "Reshape",
14
+ "Constant",
15
+ "Sqrt",
16
+ "Div",
17
+ "Shape",
18
+ "ReduceMean",
19
+ "Softmax",
20
+ "Equal",
21
+ "Sigmoid",
22
+ "MatMul",
23
+ "Expand",
24
+ "Pow",
25
+ "Range",
26
+ "Transpose",
27
+ "Unsqueeze",
28
+ "Mul",
29
+ "Where"
30
+ ],
31
+ "weight_type": "QInt8"
32
+ },
33
+ "decoder_with_past_model": {
34
+ "op_types": [
35
+ "Concat",
36
+ "Add",
37
+ "ConstantOfShape",
38
+ "Gather",
39
+ "Sub",
40
+ "Cast",
41
+ "Reshape",
42
+ "Constant",
43
+ "Sqrt",
44
+ "Div",
45
+ "Shape",
46
+ "ReduceMean",
47
+ "Softmax",
48
+ "Equal",
49
+ "Sigmoid",
50
+ "MatMul",
51
+ "Expand",
52
+ "Pow",
53
+ "Range",
54
+ "Transpose",
55
+ "Unsqueeze",
56
+ "Mul",
57
+ "Where"
58
+ ],
59
+ "weight_type": "QInt8"
60
+ },
61
+ "decoder_model": {
62
+ "op_types": [
63
+ "Slice",
64
+ "Squeeze",
65
+ "Concat",
66
+ "Less",
67
+ "Add",
68
+ "ConstantOfShape",
69
+ "Gather",
70
+ "Sub",
71
+ "Cast",
72
+ "Reshape",
73
+ "Constant",
74
+ "Sqrt",
75
+ "Div",
76
+ "Shape",
77
+ "ReduceMean",
78
+ "Softmax",
79
+ "Equal",
80
+ "Sigmoid",
81
+ "MatMul",
82
+ "Expand",
83
+ "Pow",
84
+ "Range",
85
+ "Transpose",
86
+ "Unsqueeze",
87
+ "Mul",
88
+ "Where"
89
+ ],
90
+ "weight_type": "QInt8"
91
+ },
92
+ "decoder_model_merged": {
93
+ "op_types": [
94
+ "Slice",
95
+ "Squeeze",
96
+ "Concat",
97
+ "Less",
98
+ "Add",
99
+ "ConstantOfShape",
100
+ "Gather",
101
+ "Sub",
102
+ "Cast",
103
+ "Reshape",
104
+ "Constant",
105
+ "Sqrt",
106
+ "Div",
107
+ "If",
108
+ "Shape",
109
+ "ReduceMean",
110
+ "Softmax",
111
+ "Equal",
112
+ "Sigmoid",
113
+ "MatMul",
114
+ "Expand",
115
+ "Pow",
116
+ "Range",
117
+ "Transpose",
118
+ "Unsqueeze",
119
+ "Mul",
120
+ "Where"
121
+ ],
122
+ "weight_type": "QInt8"
123
+ }
124
+ }
125
+ }
source.spm ADDED
Binary file (806 kB). View file
 
special_tokens_map.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "eos_token": "</s>",
3
+ "pad_token": "<pad>",
4
+ "unk_token": "<unk>"
5
+ }
target.spm ADDED
Binary file (805 kB). View file
 
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "clean_up_tokenization_spaces": true,
3
+ "eos_token": "</s>",
4
+ "model_max_length": 512,
5
+ "pad_token": "<pad>",
6
+ "separate_vocabs": false,
7
+ "source_lang": "eng",
8
+ "sp_model_kwargs": {},
9
+ "target_lang": "zho",
10
+ "tokenizer_class": "MarianTokenizer",
11
+ "unk_token": "<unk>"
12
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff