Xenova HF staff commited on
Commit
94d7131
1 Parent(s): 43514fb

Upload folder using huggingface_hub

Browse files
config.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "Helsinki-NLP/opus-mt-en-ro",
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
+ 59542
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": 59542,
26
+ "decoder_vocab_size": 59543,
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": 59542,
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": 59543
60
+ }
generation_config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bad_words_ids": [
3
+ [
4
+ 59542
5
+ ]
6
+ ],
7
+ "bos_token_id": 0,
8
+ "decoder_start_token_id": 59542,
9
+ "eos_token_id": 0,
10
+ "forced_eos_token_id": 0,
11
+ "max_length": 512,
12
+ "num_beams": 4,
13
+ "pad_token_id": 59542,
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:314b90ba5193daa509ec4b0fdcba80cf15d4459bd06e807de0eaade2eeea9275
3
+ size 224403853
onnx/decoder_model_merged.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ce7a5d4a5564b569a7c38e76b32b31ce6e2c8aba1801f4b959c8e03b111f5c2b
3
+ size 224639420
onnx/decoder_model_merged_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fc8721ac95b9b8fb156a76c5515a98e79162ac4749de4862669b0d654d682966
3
+ size 57396476
onnx/decoder_model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:750ae52709f955bc95aec9cf7a4ea3d9e5525fc164e58b36a3a6424bfafd921f
3
+ size 57025774
onnx/decoder_with_past_model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bcf2f1f08d094a7bdeeeb12dc13d88be0516507892305c8c8dd140c37531158a
3
+ size 211753344
onnx/decoder_with_past_model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:39767af060f58768dbfb6e0bbc9699c6034dbe296389e0d34a50999fb68646ca
3
+ size 53754310
onnx/encoder_model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fa9489bb25cc081f29dc469cc2cf5137a6447ad59c132bfe726f1816982a6897
3
+ size 198760236
onnx/encoder_model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:843d42689aeba847c71e88863d9d6fbba43cac21d115f375e90afc9922ceadc6
3
+ size 50105246
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
+ "Reshape",
8
+ "Constant",
9
+ "Sqrt",
10
+ "Less",
11
+ "Where",
12
+ "Mul",
13
+ "Cast",
14
+ "Gather",
15
+ "Equal",
16
+ "Shape",
17
+ "Softmax",
18
+ "Expand",
19
+ "Slice",
20
+ "Concat",
21
+ "ConstantOfShape",
22
+ "Div",
23
+ "Unsqueeze",
24
+ "Range",
25
+ "ReduceMean",
26
+ "Pow",
27
+ "Sub",
28
+ "MatMul",
29
+ "Sigmoid",
30
+ "Transpose",
31
+ "Squeeze",
32
+ "Add"
33
+ ],
34
+ "weight_type": "QInt8"
35
+ },
36
+ "encoder_model": {
37
+ "op_types": [
38
+ "Reshape",
39
+ "Constant",
40
+ "Sqrt",
41
+ "Where",
42
+ "Mul",
43
+ "Cast",
44
+ "Gather",
45
+ "Equal",
46
+ "Shape",
47
+ "Softmax",
48
+ "Expand",
49
+ "Concat",
50
+ "ConstantOfShape",
51
+ "Div",
52
+ "Unsqueeze",
53
+ "Range",
54
+ "ReduceMean",
55
+ "Pow",
56
+ "Sub",
57
+ "MatMul",
58
+ "Sigmoid",
59
+ "Transpose",
60
+ "Add"
61
+ ],
62
+ "weight_type": "QInt8"
63
+ },
64
+ "decoder_model_merged": {
65
+ "op_types": [
66
+ "Reshape",
67
+ "Constant",
68
+ "Sqrt",
69
+ "Less",
70
+ "Where",
71
+ "Mul",
72
+ "Cast",
73
+ "Gather",
74
+ "If",
75
+ "Equal",
76
+ "Shape",
77
+ "Softmax",
78
+ "Expand",
79
+ "Slice",
80
+ "Concat",
81
+ "ConstantOfShape",
82
+ "Div",
83
+ "Unsqueeze",
84
+ "Range",
85
+ "ReduceMean",
86
+ "Pow",
87
+ "Sub",
88
+ "MatMul",
89
+ "Sigmoid",
90
+ "Transpose",
91
+ "Squeeze",
92
+ "Add"
93
+ ],
94
+ "weight_type": "QInt8"
95
+ },
96
+ "decoder_with_past_model": {
97
+ "op_types": [
98
+ "Reshape",
99
+ "Constant",
100
+ "Sqrt",
101
+ "Where",
102
+ "Mul",
103
+ "Cast",
104
+ "Gather",
105
+ "Equal",
106
+ "Shape",
107
+ "Softmax",
108
+ "Expand",
109
+ "Concat",
110
+ "ConstantOfShape",
111
+ "Div",
112
+ "Unsqueeze",
113
+ "Range",
114
+ "ReduceMean",
115
+ "Pow",
116
+ "Sub",
117
+ "MatMul",
118
+ "Sigmoid",
119
+ "Transpose",
120
+ "Add"
121
+ ],
122
+ "weight_type": "QInt8"
123
+ }
124
+ }
125
+ }
source.spm ADDED
Binary file (789 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 (817 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": "ro",
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