Xenova HF staff commited on
Commit
eb1f0df
1 Parent(s): 79e8f7b

Upload folder using huggingface_hub

Browse files
config.json ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "Helsinki-NLP/opus-mt-en-fr",
3
+ "_num_labels": 3,
4
+ "activation_dropout": 0.0,
5
+ "activation_function": "swish",
6
+ "add_bias_logits": false,
7
+ "add_final_layer_norm": false,
8
+ "architectures": [
9
+ "MarianMTModel"
10
+ ],
11
+ "attention_dropout": 0.0,
12
+ "bad_words_ids": [
13
+ [
14
+ 59513
15
+ ]
16
+ ],
17
+ "bos_token_id": 0,
18
+ "classif_dropout": 0.0,
19
+ "classifier_dropout": 0.0,
20
+ "d_model": 512,
21
+ "decoder_attention_heads": 8,
22
+ "decoder_ffn_dim": 2048,
23
+ "decoder_layerdrop": 0.0,
24
+ "decoder_layers": 6,
25
+ "decoder_start_token_id": 59513,
26
+ "decoder_vocab_size": 59514,
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
+ "forced_eos_token_id": 0,
34
+ "gradient_checkpointing": false,
35
+ "id2label": {
36
+ "0": "LABEL_0",
37
+ "1": "LABEL_1",
38
+ "2": "LABEL_2"
39
+ },
40
+ "init_std": 0.02,
41
+ "is_encoder_decoder": true,
42
+ "label2id": {
43
+ "LABEL_0": 0,
44
+ "LABEL_1": 1,
45
+ "LABEL_2": 2
46
+ },
47
+ "max_length": 512,
48
+ "max_position_embeddings": 512,
49
+ "model_type": "marian",
50
+ "normalize_before": false,
51
+ "normalize_embedding": false,
52
+ "num_beams": 4,
53
+ "num_hidden_layers": 6,
54
+ "pad_token_id": 59513,
55
+ "scale_embedding": true,
56
+ "share_encoder_decoder_embeddings": true,
57
+ "static_position_embeddings": true,
58
+ "transformers_version": "4.32.0.dev0",
59
+ "use_cache": true,
60
+ "vocab_size": 59514
61
+ }
generation_config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bad_words_ids": [
4
+ [
5
+ 59513
6
+ ]
7
+ ],
8
+ "bos_token_id": 0,
9
+ "decoder_start_token_id": 59513,
10
+ "eos_token_id": 0,
11
+ "forced_eos_token_id": 0,
12
+ "max_length": 512,
13
+ "num_beams": 4,
14
+ "pad_token_id": 59513,
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:73941d52cb71e837776a0f5ffafedc363884693c06e645f3544ba7de606fcf09
3
+ size 346228960
onnx/decoder_model_merged.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:41f3a332db9b84ef21d284d0930d16af12d9a76eabc0fa5e9349da8f83f87ef4
3
+ size 346464442
onnx/decoder_model_merged_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:256385187890459cb335331afca437d1ff7d495ae41831837e79731f05825188
3
+ size 88151662
onnx/decoder_model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:27b4e745bb2821200eb0fbae7cccfa6389d25761dcdcb87f07f89b8014fb9e68
3
+ size 87780306
onnx/decoder_with_past_model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0cd561f5e0eeefc62d2b903182e5dc341a3779fde1ccd04cdd92662ad5849180
3
+ size 333578451
onnx/decoder_with_past_model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4a444f7b9da77cc7935a7b65c9e4ce97e78f87be3d8c038ff4af22dd17b3f9c7
3
+ size 84508842
onnx/encoder_model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ffa8429c73bea51341e3ebb7af889a9b37294448c371f926dfb3a9a97895b0d9
3
+ size 198700844
onnx/encoder_model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0a81bdba62f53223740a8c6c6f58e716eba8ea1f92dfa569caf27ed5e3b6a0f7
3
+ size 50090398
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
+ "Add",
8
+ "Transpose",
9
+ "ReduceMean",
10
+ "MatMul",
11
+ "Mul",
12
+ "Expand",
13
+ "Sigmoid",
14
+ "Concat",
15
+ "Constant",
16
+ "Sub",
17
+ "Reshape",
18
+ "Unsqueeze",
19
+ "Cast",
20
+ "Equal",
21
+ "Sqrt",
22
+ "Shape",
23
+ "Gather",
24
+ "Softmax",
25
+ "ConstantOfShape",
26
+ "Pow",
27
+ "Where",
28
+ "Range",
29
+ "Div"
30
+ ],
31
+ "weight_type": "QInt8"
32
+ },
33
+ "decoder_with_past_model": {
34
+ "op_types": [
35
+ "Add",
36
+ "Transpose",
37
+ "ReduceMean",
38
+ "MatMul",
39
+ "Mul",
40
+ "Expand",
41
+ "Sigmoid",
42
+ "Concat",
43
+ "Constant",
44
+ "Sub",
45
+ "Reshape",
46
+ "Unsqueeze",
47
+ "Equal",
48
+ "Cast",
49
+ "Sqrt",
50
+ "Shape",
51
+ "Gather",
52
+ "Softmax",
53
+ "ConstantOfShape",
54
+ "Pow",
55
+ "Where",
56
+ "Range",
57
+ "Div"
58
+ ],
59
+ "weight_type": "QInt8"
60
+ },
61
+ "decoder_model": {
62
+ "op_types": [
63
+ "Add",
64
+ "Transpose",
65
+ "ReduceMean",
66
+ "MatMul",
67
+ "Expand",
68
+ "Mul",
69
+ "Sigmoid",
70
+ "Concat",
71
+ "Constant",
72
+ "Less",
73
+ "Sub",
74
+ "Squeeze",
75
+ "Reshape",
76
+ "Unsqueeze",
77
+ "Cast",
78
+ "Equal",
79
+ "Sqrt",
80
+ "Shape",
81
+ "Gather",
82
+ "ConstantOfShape",
83
+ "Softmax",
84
+ "Slice",
85
+ "Pow",
86
+ "Where",
87
+ "Range",
88
+ "Div"
89
+ ],
90
+ "weight_type": "QInt8"
91
+ },
92
+ "decoder_model_merged": {
93
+ "op_types": [
94
+ "Add",
95
+ "Transpose",
96
+ "ReduceMean",
97
+ "Mul",
98
+ "Expand",
99
+ "MatMul",
100
+ "Sigmoid",
101
+ "Concat",
102
+ "Constant",
103
+ "Less",
104
+ "Sub",
105
+ "Squeeze",
106
+ "Reshape",
107
+ "Unsqueeze",
108
+ "Cast",
109
+ "Equal",
110
+ "Sqrt",
111
+ "Shape",
112
+ "If",
113
+ "Gather",
114
+ "ConstantOfShape",
115
+ "Softmax",
116
+ "Slice",
117
+ "Pow",
118
+ "Where",
119
+ "Range",
120
+ "Div"
121
+ ],
122
+ "weight_type": "QInt8"
123
+ }
124
+ }
125
+ }
source.spm ADDED
Binary file (778 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 (802 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": "en",
8
+ "sp_model_kwargs": {},
9
+ "target_lang": "fr",
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