Xenova HF staff commited on
Commit
65e8a1c
1 Parent(s): 89412a9

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ target.spm filter=lfs diff=lfs merge=lfs -text
config.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "Helsinki-NLP/opus-mt-en-ru",
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
+ 62517
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": 62517,
26
+ "decoder_vocab_size": 62518,
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": 62517,
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": 62518
60
+ }
generation_config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bad_words_ids": [
4
+ [
5
+ 62517
6
+ ]
7
+ ],
8
+ "bos_token_id": 0,
9
+ "decoder_start_token_id": 62517,
10
+ "eos_token_id": 0,
11
+ "forced_eos_token_id": 0,
12
+ "max_length": 512,
13
+ "num_beams": 4,
14
+ "pad_token_id": 62517,
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:b52cd4f14c3dd176917bd33db3f0cead8b13912488c38b409e181aa6e4b4492b
3
+ size 358545360
onnx/decoder_model_merged.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:12ab2f2ce821aacfc16a73db855dcbae2e4264a790128d319751d66f75c0307c
3
+ size 358780842
onnx/decoder_model_merged_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a2e3b48cb7ce2f3cbcc5f515431bd80eb14f6f37ac4a89813b061046aeed1226
3
+ size 91254794
onnx/decoder_model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e0b716fe5a5c22ecc17dd12e18ed424da84776ffa07ffa27a5b02d9fd2a50b68
3
+ size 90883438
onnx/decoder_with_past_model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:566461b2841ecb55692cf8a6c7ebe9acb72cee05b2159d82852d081871c5a733
3
+ size 345894851
onnx/decoder_with_past_model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:99f14fe0f43ec1e1e19d8706712ce82ecdf6bfbd088a98f15101b6720d0dc574
3
+ size 87611974
onnx/encoder_model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:88f255c26c365b6fa392decec648ab9fc78f558900b395c5245f998e694b66ba
3
+ size 204853036
onnx/encoder_model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:97f28d8295d231b7da721ded06fa8c034787df2122cd8f85b904abdc4d15bd53
3
+ size 51628446
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
+ "ConstantOfShape",
8
+ "Gather",
9
+ "Sqrt",
10
+ "Reshape",
11
+ "Div",
12
+ "Expand",
13
+ "Range",
14
+ "Sub",
15
+ "Sigmoid",
16
+ "Softmax",
17
+ "Pow",
18
+ "Shape",
19
+ "ReduceMean",
20
+ "MatMul",
21
+ "Unsqueeze",
22
+ "Concat",
23
+ "Cast",
24
+ "Mul",
25
+ "Constant",
26
+ "Add",
27
+ "Equal",
28
+ "Transpose",
29
+ "Where"
30
+ ],
31
+ "weight_type": "QInt8"
32
+ },
33
+ "decoder_with_past_model": {
34
+ "op_types": [
35
+ "ConstantOfShape",
36
+ "Gather",
37
+ "Sqrt",
38
+ "Reshape",
39
+ "Div",
40
+ "Range",
41
+ "Expand",
42
+ "Sub",
43
+ "Sigmoid",
44
+ "Softmax",
45
+ "Pow",
46
+ "Shape",
47
+ "ReduceMean",
48
+ "MatMul",
49
+ "Unsqueeze",
50
+ "Concat",
51
+ "Cast",
52
+ "Mul",
53
+ "Constant",
54
+ "Add",
55
+ "Equal",
56
+ "Transpose",
57
+ "Where"
58
+ ],
59
+ "weight_type": "QInt8"
60
+ },
61
+ "decoder_model": {
62
+ "op_types": [
63
+ "Slice",
64
+ "ConstantOfShape",
65
+ "Gather",
66
+ "Sqrt",
67
+ "Reshape",
68
+ "Div",
69
+ "Expand",
70
+ "Range",
71
+ "Sub",
72
+ "Sigmoid",
73
+ "Softmax",
74
+ "Pow",
75
+ "Shape",
76
+ "ReduceMean",
77
+ "MatMul",
78
+ "Unsqueeze",
79
+ "Concat",
80
+ "Squeeze",
81
+ "Less",
82
+ "Cast",
83
+ "Mul",
84
+ "Constant",
85
+ "Add",
86
+ "Equal",
87
+ "Transpose",
88
+ "Where"
89
+ ],
90
+ "weight_type": "QInt8"
91
+ },
92
+ "decoder_model_merged": {
93
+ "op_types": [
94
+ "Slice",
95
+ "ConstantOfShape",
96
+ "Gather",
97
+ "Sqrt",
98
+ "Reshape",
99
+ "Div",
100
+ "Expand",
101
+ "Range",
102
+ "Sub",
103
+ "Sigmoid",
104
+ "Softmax",
105
+ "Pow",
106
+ "Shape",
107
+ "ReduceMean",
108
+ "MatMul",
109
+ "Unsqueeze",
110
+ "Concat",
111
+ "Squeeze",
112
+ "Less",
113
+ "Cast",
114
+ "Mul",
115
+ "Constant",
116
+ "Add",
117
+ "Equal",
118
+ "Transpose",
119
+ "If",
120
+ "Where"
121
+ ],
122
+ "weight_type": "QInt8"
123
+ }
124
+ }
125
+ }
source.spm ADDED
Binary file (803 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
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:745998e51ba5b058e38b7ac7765c25c43ed5c1c39cc92b27163b9b2e323c9d7c
3
+ size 1080169
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": "ru",
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