Xenova HF staff commited on
Commit
1f3fee2
1 Parent(s): 5be15d0

Upload folder using huggingface_hub

Browse files
config.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "Helsinki-NLP/opus-mt-sv-en",
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
+ 56433
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": 56433,
26
+ "decoder_vocab_size": 56434,
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": 6,
52
+ "num_hidden_layers": 6,
53
+ "pad_token_id": 56433,
54
+ "scale_embedding": true,
55
+ "share_encoder_decoder_embeddings": true,
56
+ "static_position_embeddings": true,
57
+ "transformers_version": "4.32.0.dev0",
58
+ "use_cache": true,
59
+ "vocab_size": 56434
60
+ }
generation_config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bad_words_ids": [
4
+ [
5
+ 56433
6
+ ]
7
+ ],
8
+ "bos_token_id": 0,
9
+ "decoder_start_token_id": 56433,
10
+ "eos_token_id": 0,
11
+ "forced_eos_token_id": 0,
12
+ "max_length": 512,
13
+ "num_beams": 6,
14
+ "pad_token_id": 56433,
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:6d85d949b65e908dcf7af7b5848d343415cd8c62710df3ab1074aee9ce9e7c57
3
+ size 333600960
onnx/decoder_model_merged.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1c24586422327c9c745d5071986e5229faafb88b55ed33015c3b5bdc3bd5e397
3
+ size 333836442
onnx/decoder_model_merged_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a819a7c76954d6e4113e6ded64df0b13193064a9a7c7f0196ca3472515d999ce
3
+ size 84970022
onnx/decoder_model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:af147403443d7fd5891adf217b5b4f736453552069793ee3e17320469c9d0b53
3
+ size 84598666
onnx/decoder_with_past_model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:53294902e59d8964d5ba25f3f61d1bb4f7524925a2e79746fbcdf2ebc57ce288
3
+ size 320950451
onnx/decoder_with_past_model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b4bec4d45701fdf5cea644816fcbf5036c9de97d07ac44077307657cb02375e2
3
+ size 81327202
onnx/encoder_model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:01bade2787bd89a59ddc366b4eeedeaa79e3b1b4ee0555bbdfa67078a6719b19
3
+ size 192393004
onnx/encoder_model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:07ae6446ef6520117da869986e396ee55b05c471124ff851399701253fb306cc
3
+ size 48513438
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
+ "Where",
8
+ "Reshape",
9
+ "Softmax",
10
+ "Equal",
11
+ "ReduceMean",
12
+ "Gather",
13
+ "Expand",
14
+ "Sqrt",
15
+ "Range",
16
+ "Sigmoid",
17
+ "Concat",
18
+ "Pow",
19
+ "ConstantOfShape",
20
+ "Add",
21
+ "Cast",
22
+ "Constant",
23
+ "MatMul",
24
+ "Unsqueeze",
25
+ "Sub",
26
+ "Transpose",
27
+ "Mul",
28
+ "Div",
29
+ "Shape"
30
+ ],
31
+ "weight_type": "QInt8"
32
+ },
33
+ "decoder_with_past_model": {
34
+ "op_types": [
35
+ "Where",
36
+ "Reshape",
37
+ "Softmax",
38
+ "Equal",
39
+ "ReduceMean",
40
+ "Gather",
41
+ "Expand",
42
+ "Sqrt",
43
+ "Range",
44
+ "Sigmoid",
45
+ "Concat",
46
+ "Pow",
47
+ "ConstantOfShape",
48
+ "Add",
49
+ "Cast",
50
+ "Constant",
51
+ "MatMul",
52
+ "Unsqueeze",
53
+ "Sub",
54
+ "Transpose",
55
+ "Mul",
56
+ "Div",
57
+ "Shape"
58
+ ],
59
+ "weight_type": "QInt8"
60
+ },
61
+ "decoder_model": {
62
+ "op_types": [
63
+ "Where",
64
+ "Reshape",
65
+ "Softmax",
66
+ "Equal",
67
+ "ReduceMean",
68
+ "Gather",
69
+ "Expand",
70
+ "Sqrt",
71
+ "Range",
72
+ "Sigmoid",
73
+ "Concat",
74
+ "Pow",
75
+ "ConstantOfShape",
76
+ "Add",
77
+ "Less",
78
+ "Cast",
79
+ "Slice",
80
+ "Constant",
81
+ "MatMul",
82
+ "Unsqueeze",
83
+ "Sub",
84
+ "Transpose",
85
+ "Mul",
86
+ "Squeeze",
87
+ "Div",
88
+ "Shape"
89
+ ],
90
+ "weight_type": "QInt8"
91
+ },
92
+ "decoder_model_merged": {
93
+ "op_types": [
94
+ "Where",
95
+ "If",
96
+ "Reshape",
97
+ "Softmax",
98
+ "Equal",
99
+ "ReduceMean",
100
+ "Gather",
101
+ "Expand",
102
+ "Sqrt",
103
+ "Range",
104
+ "Sigmoid",
105
+ "Concat",
106
+ "Pow",
107
+ "ConstantOfShape",
108
+ "Add",
109
+ "Less",
110
+ "Cast",
111
+ "Slice",
112
+ "Constant",
113
+ "MatMul",
114
+ "Unsqueeze",
115
+ "Sub",
116
+ "Transpose",
117
+ "Mul",
118
+ "Squeeze",
119
+ "Div",
120
+ "Shape"
121
+ ],
122
+ "weight_type": "QInt8"
123
+ }
124
+ }
125
+ }
source.spm ADDED
Binary file (815 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 (790 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": "sv",
8
+ "sp_model_kwargs": {},
9
+ "target_lang": "en",
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