Xenova HF staff commited on
Commit
1dab01e
·
1 Parent(s): 1039fac

Upload folder using huggingface_hub

Browse files
config.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "Helsinki-NLP/opus-mt-es-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
+ 74821
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": 74821,
26
+ "decoder_vocab_size": 74822,
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
+ "id2label": {
35
+ "0": "LABEL_0",
36
+ "1": "LABEL_1",
37
+ "2": "LABEL_2"
38
+ },
39
+ "init_std": 0.02,
40
+ "is_encoder_decoder": true,
41
+ "label2id": {
42
+ "LABEL_0": 0,
43
+ "LABEL_1": 1,
44
+ "LABEL_2": 2
45
+ },
46
+ "max_length": 512,
47
+ "max_position_embeddings": 512,
48
+ "model_type": "marian",
49
+ "normalize_before": false,
50
+ "normalize_embedding": false,
51
+ "num_beams": 4,
52
+ "num_hidden_layers": 6,
53
+ "pad_token_id": 74821,
54
+ "scale_embedding": true,
55
+ "share_encoder_decoder_embeddings": true,
56
+ "static_position_embeddings": true,
57
+ "transformers_version": "4.34.0.dev0",
58
+ "use_cache": true,
59
+ "vocab_size": 74822
60
+ }
generation_config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bad_words_ids": [
3
+ [
4
+ 74821
5
+ ]
6
+ ],
7
+ "bos_token_id": 0,
8
+ "decoder_start_token_id": 74821,
9
+ "eos_token_id": 0,
10
+ "forced_eos_token_id": 0,
11
+ "max_length": 512,
12
+ "num_beams": 4,
13
+ "pad_token_id": 74821,
14
+ "renormalize_logits": true,
15
+ "transformers_version": "4.34.0.dev0"
16
+ }
onnx/decoder_model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:012064fbab9727c160d6198ffa22274bba091df3bc13ea553db1c210372e6552
3
+ size 255756361
onnx/decoder_model_merged.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b2f59311dbbf620370ae1134fbe7a7d3cd1cb18ce2703e1c8386f276fc72d29b
3
+ size 255991928
onnx/decoder_model_merged_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f6e43796a68566c95ab387277c223726ac988b307e875c239b340424eb057a92
3
+ size 65280440
onnx/decoder_model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6181188095a4a158ca3d7046127d7b8965984680e52ea9c0d50eb919221a43b5
3
+ size 64909738
onnx/decoder_with_past_model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7ea3f7f6611d23d805a3f02e381e07ce79fc29539f3f5c5d9350a0a09f2756f7
3
+ size 243105852
onnx/decoder_with_past_model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8d708bf1f93aeeee20f27a3d4acaa85ca11f90c0ebd6c5741255b14b48c6a38a
3
+ size 61638274
onnx/encoder_model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ddb496e558d1baecc4a5c80b1a2521bea46f3fe33b6a1e279e2493c1d2e9f010
3
+ size 230051628
onnx/encoder_model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f2c497ebe1c3eadb329b8f36b250e7f87f9a327f46615dc5637492702cd0d2af
3
+ size 57928094
quantize_config.json ADDED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "per_channel": true,
3
+ "reduce_range": true,
4
+ "per_model_config": {
5
+ "decoder_model": {
6
+ "op_types": [
7
+ "Shape",
8
+ "Transpose",
9
+ "Slice",
10
+ "Pow",
11
+ "Where",
12
+ "Range",
13
+ "Reshape",
14
+ "ConstantOfShape",
15
+ "Squeeze",
16
+ "Mul",
17
+ "Sigmoid",
18
+ "Concat",
19
+ "ReduceMean",
20
+ "Cast",
21
+ "Expand",
22
+ "Add",
23
+ "Gather",
24
+ "Equal",
25
+ "Sqrt",
26
+ "Constant",
27
+ "Less",
28
+ "Unsqueeze",
29
+ "MatMul",
30
+ "Div",
31
+ "Sub",
32
+ "Softmax"
33
+ ],
34
+ "weight_type": "QInt8"
35
+ },
36
+ "encoder_model": {
37
+ "op_types": [
38
+ "Shape",
39
+ "Transpose",
40
+ "Pow",
41
+ "Where",
42
+ "Range",
43
+ "Reshape",
44
+ "ConstantOfShape",
45
+ "Mul",
46
+ "Sigmoid",
47
+ "Concat",
48
+ "ReduceMean",
49
+ "Cast",
50
+ "Expand",
51
+ "Add",
52
+ "Gather",
53
+ "Equal",
54
+ "Sqrt",
55
+ "Constant",
56
+ "Unsqueeze",
57
+ "MatMul",
58
+ "Div",
59
+ "Sub",
60
+ "Softmax"
61
+ ],
62
+ "weight_type": "QInt8"
63
+ },
64
+ "decoder_model_merged": {
65
+ "op_types": [
66
+ "Shape",
67
+ "Transpose",
68
+ "Slice",
69
+ "If",
70
+ "Pow",
71
+ "Where",
72
+ "Range",
73
+ "Reshape",
74
+ "ConstantOfShape",
75
+ "Squeeze",
76
+ "Mul",
77
+ "Sigmoid",
78
+ "Concat",
79
+ "ReduceMean",
80
+ "Cast",
81
+ "Expand",
82
+ "Add",
83
+ "Gather",
84
+ "Equal",
85
+ "Sqrt",
86
+ "Constant",
87
+ "Less",
88
+ "Unsqueeze",
89
+ "MatMul",
90
+ "Div",
91
+ "Sub",
92
+ "Softmax"
93
+ ],
94
+ "weight_type": "QInt8"
95
+ },
96
+ "decoder_with_past_model": {
97
+ "op_types": [
98
+ "Shape",
99
+ "Transpose",
100
+ "Pow",
101
+ "Where",
102
+ "Range",
103
+ "Reshape",
104
+ "ConstantOfShape",
105
+ "Mul",
106
+ "Sigmoid",
107
+ "Concat",
108
+ "ReduceMean",
109
+ "Cast",
110
+ "Expand",
111
+ "Add",
112
+ "Gather",
113
+ "Equal",
114
+ "Sqrt",
115
+ "Constant",
116
+ "Unsqueeze",
117
+ "MatMul",
118
+ "Div",
119
+ "Sub",
120
+ "Softmax"
121
+ ],
122
+ "weight_type": "QInt8"
123
+ }
124
+ }
125
+ }
source.spm ADDED
Binary file (819 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 (812 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": "es",
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