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-en-mul",
|
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 |
+
64109
|
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": 64109,
|
25 |
+
"decoder_vocab_size": 64110,
|
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": 64110,
|
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": 64109,
|
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": 64110
|
60 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bad_words_ids": [
|
3 |
+
[
|
4 |
+
64109
|
5 |
+
]
|
6 |
+
],
|
7 |
+
"bos_token_id": 0,
|
8 |
+
"decoder_start_token_id": 64109,
|
9 |
+
"eos_token_id": 0,
|
10 |
+
"forced_eos_token_id": 0,
|
11 |
+
"max_length": 512,
|
12 |
+
"num_beams": 4,
|
13 |
+
"pad_token_id": 64109,
|
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:83e9b357afdae6b37af0b5e8e734a8b344a88a43cb9bd4babeceaa5b759178b7
|
3 |
+
size 233775337
|
onnx/decoder_model_merged.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:eead41099d81f1f086fd148327e47689d90671a8bf102c2ef70d8839377f62a1
|
3 |
+
size 234010904
|
onnx/decoder_model_merged_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:35c4c88823c8fbe44aa57bbe8543abc0c0269f321cbf8075965fd697c9569caa
|
3 |
+
size 59753048
|
onnx/decoder_model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:12c04e64038937e2b51483e9b8cb378ee5be5bad0dbf206097ebe01e507ecc34
|
3 |
+
size 59382346
|
onnx/decoder_with_past_model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b7df706bce1b4c848d1c84aeafad49251a619c481a56a8457efee238e72b45f9
|
3 |
+
size 221124828
|
onnx/decoder_with_past_model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:352f3d351a61eb9ad0e228aee9d40335779ed2bea7287196d3ff93b91d9b5fba
|
3 |
+
size 56110882
|
onnx/encoder_model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3c626ecb9d1cdebd4290fc1770546b2dc1457ce50eca7856d3b0a57520143e37
|
3 |
+
size 208113452
|
onnx/encoder_model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f10f49c2691043ba7cfd2a85d86f84dddda428d4209cf9b495f6e114b313737a
|
3 |
+
size 52443550
|
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 |
+
"Shape",
|
8 |
+
"Reshape",
|
9 |
+
"ReduceMean",
|
10 |
+
"Less",
|
11 |
+
"Mul",
|
12 |
+
"Sqrt",
|
13 |
+
"Unsqueeze",
|
14 |
+
"Softmax",
|
15 |
+
"Div",
|
16 |
+
"Add",
|
17 |
+
"ConstantOfShape",
|
18 |
+
"Sub",
|
19 |
+
"Equal",
|
20 |
+
"Constant",
|
21 |
+
"Pow",
|
22 |
+
"MatMul",
|
23 |
+
"Squeeze",
|
24 |
+
"Range",
|
25 |
+
"Sigmoid",
|
26 |
+
"Gather",
|
27 |
+
"Cast",
|
28 |
+
"Slice",
|
29 |
+
"Where",
|
30 |
+
"Expand",
|
31 |
+
"Transpose",
|
32 |
+
"Concat"
|
33 |
+
],
|
34 |
+
"weight_type": "QInt8"
|
35 |
+
},
|
36 |
+
"encoder_model": {
|
37 |
+
"op_types": [
|
38 |
+
"Shape",
|
39 |
+
"Reshape",
|
40 |
+
"ReduceMean",
|
41 |
+
"Mul",
|
42 |
+
"Sqrt",
|
43 |
+
"Unsqueeze",
|
44 |
+
"Softmax",
|
45 |
+
"Div",
|
46 |
+
"Add",
|
47 |
+
"ConstantOfShape",
|
48 |
+
"Sub",
|
49 |
+
"Equal",
|
50 |
+
"Constant",
|
51 |
+
"Pow",
|
52 |
+
"MatMul",
|
53 |
+
"Range",
|
54 |
+
"Sigmoid",
|
55 |
+
"Gather",
|
56 |
+
"Cast",
|
57 |
+
"Where",
|
58 |
+
"Expand",
|
59 |
+
"Transpose",
|
60 |
+
"Concat"
|
61 |
+
],
|
62 |
+
"weight_type": "QInt8"
|
63 |
+
},
|
64 |
+
"decoder_model_merged": {
|
65 |
+
"op_types": [
|
66 |
+
"Shape",
|
67 |
+
"Reshape",
|
68 |
+
"ReduceMean",
|
69 |
+
"Less",
|
70 |
+
"Mul",
|
71 |
+
"Sqrt",
|
72 |
+
"Unsqueeze",
|
73 |
+
"Softmax",
|
74 |
+
"Div",
|
75 |
+
"Add",
|
76 |
+
"ConstantOfShape",
|
77 |
+
"Sub",
|
78 |
+
"Equal",
|
79 |
+
"Constant",
|
80 |
+
"Pow",
|
81 |
+
"MatMul",
|
82 |
+
"Squeeze",
|
83 |
+
"If",
|
84 |
+
"Range",
|
85 |
+
"Sigmoid",
|
86 |
+
"Gather",
|
87 |
+
"Cast",
|
88 |
+
"Slice",
|
89 |
+
"Where",
|
90 |
+
"Expand",
|
91 |
+
"Transpose",
|
92 |
+
"Concat"
|
93 |
+
],
|
94 |
+
"weight_type": "QInt8"
|
95 |
+
},
|
96 |
+
"decoder_with_past_model": {
|
97 |
+
"op_types": [
|
98 |
+
"Shape",
|
99 |
+
"Reshape",
|
100 |
+
"ReduceMean",
|
101 |
+
"Mul",
|
102 |
+
"Sqrt",
|
103 |
+
"Unsqueeze",
|
104 |
+
"Softmax",
|
105 |
+
"Div",
|
106 |
+
"Add",
|
107 |
+
"ConstantOfShape",
|
108 |
+
"Sub",
|
109 |
+
"Equal",
|
110 |
+
"Constant",
|
111 |
+
"Pow",
|
112 |
+
"MatMul",
|
113 |
+
"Range",
|
114 |
+
"Sigmoid",
|
115 |
+
"Gather",
|
116 |
+
"Cast",
|
117 |
+
"Where",
|
118 |
+
"Expand",
|
119 |
+
"Transpose",
|
120 |
+
"Concat"
|
121 |
+
],
|
122 |
+
"weight_type": "QInt8"
|
123 |
+
}
|
124 |
+
}
|
125 |
+
}
|
source.spm
ADDED
Binary file (790 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 (707 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": "eng",
|
8 |
+
"sp_model_kwargs": {},
|
9 |
+
"target_lang": "mul",
|
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
|
|