Xenova HF staff commited on
Commit
ea0b920
1 Parent(s): 29569bd

Upload folder using huggingface_hub

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