Xenova HF staff commited on
Commit
82f8690
1 Parent(s): 75e1ff5

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
+ source.spm filter=lfs diff=lfs merge=lfs -text
config.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "Helsinki-NLP/opus-mt-th-en",
3
+ "activation_dropout": 0.0,
4
+ "activation_function": "swish",
5
+ "add_bias_logits": false,
6
+ "add_final_layer_norm": false,
7
+ "architectures": [
8
+ "MarianMTModel"
9
+ ],
10
+ "attention_dropout": 0.0,
11
+ "bad_words_ids": [
12
+ [
13
+ 62306
14
+ ]
15
+ ],
16
+ "bos_token_id": 0,
17
+ "classif_dropout": 0.0,
18
+ "classifier_dropout": 0.0,
19
+ "d_model": 512,
20
+ "decoder_attention_heads": 8,
21
+ "decoder_ffn_dim": 2048,
22
+ "decoder_layerdrop": 0.0,
23
+ "decoder_layers": 6,
24
+ "decoder_start_token_id": 62306,
25
+ "decoder_vocab_size": 62307,
26
+ "dropout": 0.1,
27
+ "encoder_attention_heads": 8,
28
+ "encoder_ffn_dim": 2048,
29
+ "encoder_layerdrop": 0.0,
30
+ "encoder_layers": 6,
31
+ "eos_token_id": 0,
32
+ "extra_pos_embeddings": 62307,
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": 62306,
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": 62307
60
+ }
generation_config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bad_words_ids": [
4
+ [
5
+ 62306
6
+ ]
7
+ ],
8
+ "bos_token_id": 0,
9
+ "decoder_start_token_id": 62306,
10
+ "eos_token_id": 0,
11
+ "forced_eos_token_id": 0,
12
+ "max_length": 512,
13
+ "num_beams": 6,
14
+ "pad_token_id": 62306,
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:fac3f8c4debec9bc0062a7675e340e08215270bd51f06e8105be48cbb3b97022
3
+ size 357680260
onnx/decoder_model_merged.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b5c3f1c0c59f2fd0a48eee842269614d1694e0931ee058a8d85865834a45d948
3
+ size 357915742
onnx/decoder_model_merged_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3295f1a377b64d9d3129aa9d2c11898339331e4a40a6a5f2bfab595ab2084bb1
3
+ size 91036831
onnx/decoder_model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:630975330591ed101d85d54650fdc1539eb06e543cbe2cfa8f796b55a23733bb
3
+ size 90665475
onnx/decoder_with_past_model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f2694b51893ed2284e6c74e3f42d9a9b54da93fa377db27558d01ec8cc408c55
3
+ size 345029751
onnx/decoder_with_past_model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:045a5aeb3304b69316b01f386c204ad1e0c4a9cafb87baaab89aabd957bae5f2
3
+ size 87394011
onnx/encoder_model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ddd655f4ed541dd44106ea29bec4b7c35101b22bebcbd3d13dfab01ec8bec058
3
+ size 204420908
onnx/encoder_model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:37e31edabcadfca300cf13d4dd20087aa1a920cba7b20c738cba8ff44f320bbf
3
+ size 51520414
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
+ "Shape",
8
+ "Cast",
9
+ "Add",
10
+ "MatMul",
11
+ "Mul",
12
+ "Pow",
13
+ "Sqrt",
14
+ "Reshape",
15
+ "Expand",
16
+ "ReduceMean",
17
+ "Concat",
18
+ "Gather",
19
+ "Sub",
20
+ "ConstantOfShape",
21
+ "Where",
22
+ "Sigmoid",
23
+ "Range",
24
+ "Unsqueeze",
25
+ "Equal",
26
+ "Div",
27
+ "Constant",
28
+ "Softmax",
29
+ "Transpose"
30
+ ],
31
+ "weight_type": "QInt8"
32
+ },
33
+ "decoder_with_past_model": {
34
+ "op_types": [
35
+ "Shape",
36
+ "Cast",
37
+ "Add",
38
+ "MatMul",
39
+ "Mul",
40
+ "Pow",
41
+ "Sqrt",
42
+ "Reshape",
43
+ "Expand",
44
+ "ReduceMean",
45
+ "Concat",
46
+ "Gather",
47
+ "Sub",
48
+ "ConstantOfShape",
49
+ "Where",
50
+ "Sigmoid",
51
+ "Range",
52
+ "Unsqueeze",
53
+ "Equal",
54
+ "Div",
55
+ "Constant",
56
+ "Softmax",
57
+ "Transpose"
58
+ ],
59
+ "weight_type": "QInt8"
60
+ },
61
+ "decoder_model": {
62
+ "op_types": [
63
+ "Shape",
64
+ "Cast",
65
+ "Less",
66
+ "Add",
67
+ "MatMul",
68
+ "Mul",
69
+ "Pow",
70
+ "Sqrt",
71
+ "Reshape",
72
+ "Slice",
73
+ "Squeeze",
74
+ "Expand",
75
+ "ReduceMean",
76
+ "Concat",
77
+ "Gather",
78
+ "Sub",
79
+ "ConstantOfShape",
80
+ "Where",
81
+ "Sigmoid",
82
+ "Range",
83
+ "Unsqueeze",
84
+ "Equal",
85
+ "Div",
86
+ "Constant",
87
+ "Softmax",
88
+ "Transpose"
89
+ ],
90
+ "weight_type": "QInt8"
91
+ },
92
+ "decoder_model_merged": {
93
+ "op_types": [
94
+ "Shape",
95
+ "Cast",
96
+ "Less",
97
+ "Add",
98
+ "MatMul",
99
+ "Mul",
100
+ "Pow",
101
+ "Sqrt",
102
+ "Reshape",
103
+ "Slice",
104
+ "Squeeze",
105
+ "Expand",
106
+ "ReduceMean",
107
+ "Concat",
108
+ "Gather",
109
+ "If",
110
+ "Sub",
111
+ "ConstantOfShape",
112
+ "Where",
113
+ "Sigmoid",
114
+ "Range",
115
+ "Unsqueeze",
116
+ "Equal",
117
+ "Div",
118
+ "Constant",
119
+ "Softmax",
120
+ "Transpose"
121
+ ],
122
+ "weight_type": "QInt8"
123
+ }
124
+ }
125
+ }
source.spm ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:01ecb88d0f92bbb20c21257b92e93e301a10971ecd60971e8e637bc3eacd9124
3
+ size 1213743
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 (810 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": "tha",
8
+ "sp_model_kwargs": {},
9
+ "target_lang": "eng",
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