Upload folder using huggingface_hub
Browse files- config.json +60 -0
- generation_config.json +16 -0
- onnx/decoder_model.onnx +3 -0
- onnx/decoder_model_merged.onnx +3 -0
- onnx/decoder_model_merged_quantized.onnx +3 -0
- onnx/decoder_model_quantized.onnx +3 -0
- onnx/decoder_with_past_model.onnx +3 -0
- onnx/decoder_with_past_model_quantized.onnx +3 -0
- onnx/encoder_model.onnx +3 -0
- onnx/encoder_model_quantized.onnx +3 -0
- quantize_config.json +125 -0
- source.spm +0 -0
- special_tokens_map.json +5 -0
- target.spm +0 -0
- tokenizer.json +0 -0
- tokenizer_config.json +12 -0
- vocab.json +0 -0
config.json
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "Helsinki-NLP/opus-mt-id-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 |
+
54795
|
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": 54795,
|
26 |
+
"decoder_vocab_size": 54796,
|
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": 54795,
|
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": 54796
|
60 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bad_words_ids": [
|
4 |
+
[
|
5 |
+
54795
|
6 |
+
]
|
7 |
+
],
|
8 |
+
"bos_token_id": 0,
|
9 |
+
"decoder_start_token_id": 54795,
|
10 |
+
"eos_token_id": 0,
|
11 |
+
"forced_eos_token_id": 0,
|
12 |
+
"max_length": 512,
|
13 |
+
"num_beams": 6,
|
14 |
+
"pad_token_id": 54795,
|
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:8f8652dcb4f97783dc359b41dc68dfe1bdbc9bc4b27452d7a26172959d9d8302
|
3 |
+
size 326885160
|
onnx/decoder_model_merged.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ecfaa7ab0570414dffe8de9cede6f793d4ee0d12d1a30ed8a48073fb8fd4fbae
|
3 |
+
size 327120642
|
onnx/decoder_model_merged_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0285dfd6c878e25fd2b2de7c96829efc6a3799dc57f009304797b30dee444146
|
3 |
+
size 83277968
|
onnx/decoder_model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:022a72f9230d4f33ca5e14f498c9f6bc638fa7c54154951af1ace3f3b50ddd68
|
3 |
+
size 82906612
|
onnx/decoder_with_past_model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:13f40ad7a07e95078a80f2830cb9be96e237b60c441d9270014ddf806dfef270
|
3 |
+
size 314234651
|
onnx/decoder_with_past_model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:64c41be3c50bce5d65bd4b146e1cd94a1c4072deb08fc1ba5076e732cb688d37
|
3 |
+
size 79635148
|
onnx/encoder_model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b57a85a6f3fea3d4130870a064d26c297135ccb05d339791b20eea6d1aa290eb
|
3 |
+
size 189038380
|
onnx/encoder_model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c5ab889ecf81e120e53f0f39800c0609d8d77b6c4a32212d73a85e3cfeb66293
|
3 |
+
size 47674782
|
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 |
+
"Equal",
|
8 |
+
"Sqrt",
|
9 |
+
"Constant",
|
10 |
+
"Transpose",
|
11 |
+
"Sigmoid",
|
12 |
+
"Pow",
|
13 |
+
"ConstantOfShape",
|
14 |
+
"Cast",
|
15 |
+
"Expand",
|
16 |
+
"Add",
|
17 |
+
"Softmax",
|
18 |
+
"Mul",
|
19 |
+
"Gather",
|
20 |
+
"MatMul",
|
21 |
+
"Range",
|
22 |
+
"Div",
|
23 |
+
"Concat",
|
24 |
+
"Shape",
|
25 |
+
"Reshape",
|
26 |
+
"Unsqueeze",
|
27 |
+
"Where",
|
28 |
+
"ReduceMean",
|
29 |
+
"Sub"
|
30 |
+
],
|
31 |
+
"weight_type": "QInt8"
|
32 |
+
},
|
33 |
+
"decoder_with_past_model": {
|
34 |
+
"op_types": [
|
35 |
+
"Equal",
|
36 |
+
"Sqrt",
|
37 |
+
"Constant",
|
38 |
+
"Transpose",
|
39 |
+
"Sigmoid",
|
40 |
+
"Pow",
|
41 |
+
"ConstantOfShape",
|
42 |
+
"Cast",
|
43 |
+
"Expand",
|
44 |
+
"Add",
|
45 |
+
"Softmax",
|
46 |
+
"Mul",
|
47 |
+
"Gather",
|
48 |
+
"MatMul",
|
49 |
+
"Range",
|
50 |
+
"Div",
|
51 |
+
"Concat",
|
52 |
+
"Shape",
|
53 |
+
"Reshape",
|
54 |
+
"Unsqueeze",
|
55 |
+
"Where",
|
56 |
+
"ReduceMean",
|
57 |
+
"Sub"
|
58 |
+
],
|
59 |
+
"weight_type": "QInt8"
|
60 |
+
},
|
61 |
+
"decoder_model": {
|
62 |
+
"op_types": [
|
63 |
+
"Equal",
|
64 |
+
"Sqrt",
|
65 |
+
"Constant",
|
66 |
+
"Transpose",
|
67 |
+
"Sigmoid",
|
68 |
+
"Pow",
|
69 |
+
"ConstantOfShape",
|
70 |
+
"Cast",
|
71 |
+
"Expand",
|
72 |
+
"Add",
|
73 |
+
"Mul",
|
74 |
+
"Gather",
|
75 |
+
"Softmax",
|
76 |
+
"MatMul",
|
77 |
+
"Range",
|
78 |
+
"Squeeze",
|
79 |
+
"Div",
|
80 |
+
"Concat",
|
81 |
+
"Shape",
|
82 |
+
"Reshape",
|
83 |
+
"Unsqueeze",
|
84 |
+
"Slice",
|
85 |
+
"Where",
|
86 |
+
"ReduceMean",
|
87 |
+
"Less",
|
88 |
+
"Sub"
|
89 |
+
],
|
90 |
+
"weight_type": "QInt8"
|
91 |
+
},
|
92 |
+
"decoder_model_merged": {
|
93 |
+
"op_types": [
|
94 |
+
"Equal",
|
95 |
+
"Sqrt",
|
96 |
+
"If",
|
97 |
+
"Constant",
|
98 |
+
"Transpose",
|
99 |
+
"Sigmoid",
|
100 |
+
"Pow",
|
101 |
+
"ConstantOfShape",
|
102 |
+
"Cast",
|
103 |
+
"Expand",
|
104 |
+
"Add",
|
105 |
+
"Mul",
|
106 |
+
"Gather",
|
107 |
+
"Softmax",
|
108 |
+
"MatMul",
|
109 |
+
"Range",
|
110 |
+
"Squeeze",
|
111 |
+
"Div",
|
112 |
+
"Concat",
|
113 |
+
"Shape",
|
114 |
+
"Reshape",
|
115 |
+
"Unsqueeze",
|
116 |
+
"Slice",
|
117 |
+
"Where",
|
118 |
+
"ReduceMean",
|
119 |
+
"Less",
|
120 |
+
"Sub"
|
121 |
+
],
|
122 |
+
"weight_type": "QInt8"
|
123 |
+
}
|
124 |
+
}
|
125 |
+
}
|
source.spm
ADDED
Binary file (801 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 (796 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": "id",
|
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
|
|