Init converted model
Browse files- .gitattributes +1 -34
- config.json +60 -0
- generation_config.json +10 -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
- sentencepiece.bpe.model +3 -0
- special_tokens_map.json +42 -0
- tokenizer.json +0 -0
- tokenizer_config.json +23 -0
.gitattributes
CHANGED
@@ -1,35 +1,2 @@
|
|
1 |
-
*.7z filter=lfs diff=lfs merge=lfs -text
|
2 |
-
*.arrow filter=lfs diff=lfs merge=lfs -text
|
3 |
-
*.bin filter=lfs diff=lfs merge=lfs -text
|
4 |
-
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
5 |
-
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
6 |
-
*.ftz filter=lfs diff=lfs merge=lfs -text
|
7 |
-
*.gz filter=lfs diff=lfs merge=lfs -text
|
8 |
-
*.h5 filter=lfs diff=lfs merge=lfs -text
|
9 |
-
*.joblib filter=lfs diff=lfs merge=lfs -text
|
10 |
-
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
11 |
-
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
12 |
-
*.model filter=lfs diff=lfs merge=lfs -text
|
13 |
-
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
14 |
-
*.npy filter=lfs diff=lfs merge=lfs -text
|
15 |
-
*.npz filter=lfs diff=lfs merge=lfs -text
|
16 |
*.onnx filter=lfs diff=lfs merge=lfs -text
|
17 |
-
*.
|
18 |
-
*.parquet filter=lfs diff=lfs merge=lfs -text
|
19 |
-
*.pb filter=lfs diff=lfs merge=lfs -text
|
20 |
-
*.pickle filter=lfs diff=lfs merge=lfs -text
|
21 |
-
*.pkl filter=lfs diff=lfs merge=lfs -text
|
22 |
-
*.pt filter=lfs diff=lfs merge=lfs -text
|
23 |
-
*.pth filter=lfs diff=lfs merge=lfs -text
|
24 |
-
*.rar filter=lfs diff=lfs merge=lfs -text
|
25 |
-
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
26 |
-
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
27 |
-
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
28 |
-
*.tar filter=lfs diff=lfs merge=lfs -text
|
29 |
-
*.tflite filter=lfs diff=lfs merge=lfs -text
|
30 |
-
*.tgz filter=lfs diff=lfs merge=lfs -text
|
31 |
-
*.wasm filter=lfs diff=lfs merge=lfs -text
|
32 |
-
*.xz 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
*.onnx filter=lfs diff=lfs merge=lfs -text
|
2 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
config.json
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "vinai/vinai-translate-en2vi-v2",
|
3 |
+
"_num_labels": 3,
|
4 |
+
"activation_dropout": 0.0,
|
5 |
+
"activation_function": "gelu",
|
6 |
+
"add_bias_logits": false,
|
7 |
+
"add_final_layer_norm": true,
|
8 |
+
"architectures": [
|
9 |
+
"MBartForConditionalGeneration"
|
10 |
+
],
|
11 |
+
"attention_dropout": 0.0,
|
12 |
+
"bos_token_id": 0,
|
13 |
+
"classif_dropout": 0.0,
|
14 |
+
"classifier_dropout": 0.0,
|
15 |
+
"d_model": 1024,
|
16 |
+
"decoder_attention_heads": 16,
|
17 |
+
"decoder_ffn_dim": 4096,
|
18 |
+
"decoder_layerdrop": 0.0,
|
19 |
+
"decoder_layers": 12,
|
20 |
+
"dropout": 0.1,
|
21 |
+
"encoder_attention_heads": 16,
|
22 |
+
"encoder_ffn_dim": 4096,
|
23 |
+
"encoder_layerdrop": 0.0,
|
24 |
+
"encoder_layers": 12,
|
25 |
+
"eos_token_id": 2,
|
26 |
+
"forced_eos_token_id": 2,
|
27 |
+
"gradient_checkpointing": false,
|
28 |
+
"id2label": {
|
29 |
+
"0": "LABEL_0",
|
30 |
+
"1": "LABEL_1",
|
31 |
+
"2": "LABEL_2"
|
32 |
+
},
|
33 |
+
"init_std": 0.02,
|
34 |
+
"is_encoder_decoder": true,
|
35 |
+
"label2id": {
|
36 |
+
"LABEL_0": 0,
|
37 |
+
"LABEL_1": 1,
|
38 |
+
"LABEL_2": 2
|
39 |
+
},
|
40 |
+
"max_length": 1024,
|
41 |
+
"max_position_embeddings": 1024,
|
42 |
+
"model_type": "mbart",
|
43 |
+
"normalize_before": true,
|
44 |
+
"normalize_embedding": true,
|
45 |
+
"num_beams": 5,
|
46 |
+
"num_hidden_layers": 12,
|
47 |
+
"output_past": true,
|
48 |
+
"pad_token_id": 1,
|
49 |
+
"scale_embedding": true,
|
50 |
+
"static_position_embeddings": false,
|
51 |
+
"task_specific_params": {
|
52 |
+
"translation_en_to_ro": {
|
53 |
+
"decoder_start_token_id": 250020
|
54 |
+
}
|
55 |
+
},
|
56 |
+
"tokenizer_class": "MBartTokenizer",
|
57 |
+
"transformers_version": "4.33.2",
|
58 |
+
"use_cache": true,
|
59 |
+
"vocab_size": 66773
|
60 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 0,
|
4 |
+
"eos_token_id": 2,
|
5 |
+
"forced_eos_token_id": 2,
|
6 |
+
"max_length": 1024,
|
7 |
+
"num_beams": 5,
|
8 |
+
"pad_token_id": 1,
|
9 |
+
"transformers_version": "4.33.2"
|
10 |
+
}
|
onnx/decoder_model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:291ad084911f8c17624414f52c8df55ddcc684d882f59673c83034e95d908b91
|
3 |
+
size 1084788703
|
onnx/decoder_model_merged.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:78d87fcc832bd577b34cfdf698c77707ad98d59ef19461b0575380f7527145fa
|
3 |
+
size 1085273533
|
onnx/decoder_model_merged_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:346f44022b846ecb4890facd1f068d20b2fe2d9faa32d74e42c4af40e6397cf3
|
3 |
+
size 274419740
|
onnx/decoder_model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:df2e63b3854c09e9317fb44ba2857170b984d585a7fbaa116c15b2fe60d8fd6d
|
3 |
+
size 273659676
|
onnx/decoder_with_past_model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ebdc37d98c34dff7895e2c0ad27aecc7fdf16f61676a54d95fc4c7f105c2046a
|
3 |
+
size 983947344
|
onnx/decoder_with_past_model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:94fd456c94e2b07ae2d341c0712081b04ab716fdb89a28d726a5a5562fcd959a
|
3 |
+
size 248140667
|
onnx/encoder_model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a11edc600ffd184c8c451d78485bee3a6eacbca2057831d964c720b9ceff6156
|
3 |
+
size 882572291
|
onnx/encoder_model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7d66b3430a72c0526bc9616f6580e02d152004aaaa7d3f753314ab6c7c82fa5e
|
3 |
+
size 222015172
|
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 |
+
"Gather",
|
8 |
+
"Expand",
|
9 |
+
"Reshape",
|
10 |
+
"ConstantOfShape",
|
11 |
+
"Unsqueeze",
|
12 |
+
"Pow",
|
13 |
+
"Constant",
|
14 |
+
"MatMul",
|
15 |
+
"Softmax",
|
16 |
+
"Sub",
|
17 |
+
"Shape",
|
18 |
+
"Range",
|
19 |
+
"Transpose",
|
20 |
+
"Concat",
|
21 |
+
"Div",
|
22 |
+
"Equal",
|
23 |
+
"Sqrt",
|
24 |
+
"ReduceMean",
|
25 |
+
"Erf",
|
26 |
+
"Cast",
|
27 |
+
"Mul",
|
28 |
+
"Where",
|
29 |
+
"Add"
|
30 |
+
],
|
31 |
+
"weight_type": "QInt8"
|
32 |
+
},
|
33 |
+
"decoder_model": {
|
34 |
+
"op_types": [
|
35 |
+
"Gather",
|
36 |
+
"Expand",
|
37 |
+
"Reshape",
|
38 |
+
"ConstantOfShape",
|
39 |
+
"Unsqueeze",
|
40 |
+
"Squeeze",
|
41 |
+
"Pow",
|
42 |
+
"Constant",
|
43 |
+
"MatMul",
|
44 |
+
"Softmax",
|
45 |
+
"Sub",
|
46 |
+
"Shape",
|
47 |
+
"Slice",
|
48 |
+
"Range",
|
49 |
+
"Transpose",
|
50 |
+
"Concat",
|
51 |
+
"Div",
|
52 |
+
"Less",
|
53 |
+
"Equal",
|
54 |
+
"Sqrt",
|
55 |
+
"ReduceMean",
|
56 |
+
"Erf",
|
57 |
+
"Cast",
|
58 |
+
"Mul",
|
59 |
+
"Where",
|
60 |
+
"Add"
|
61 |
+
],
|
62 |
+
"weight_type": "QInt8"
|
63 |
+
},
|
64 |
+
"decoder_with_past_model": {
|
65 |
+
"op_types": [
|
66 |
+
"Gather",
|
67 |
+
"Expand",
|
68 |
+
"Reshape",
|
69 |
+
"ConstantOfShape",
|
70 |
+
"Unsqueeze",
|
71 |
+
"Pow",
|
72 |
+
"Constant",
|
73 |
+
"MatMul",
|
74 |
+
"Softmax",
|
75 |
+
"Sub",
|
76 |
+
"Shape",
|
77 |
+
"Range",
|
78 |
+
"Transpose",
|
79 |
+
"Concat",
|
80 |
+
"Div",
|
81 |
+
"Equal",
|
82 |
+
"Sqrt",
|
83 |
+
"ReduceMean",
|
84 |
+
"Erf",
|
85 |
+
"Cast",
|
86 |
+
"Mul",
|
87 |
+
"Where",
|
88 |
+
"Add"
|
89 |
+
],
|
90 |
+
"weight_type": "QInt8"
|
91 |
+
},
|
92 |
+
"decoder_model_merged": {
|
93 |
+
"op_types": [
|
94 |
+
"Gather",
|
95 |
+
"Expand",
|
96 |
+
"Reshape",
|
97 |
+
"ConstantOfShape",
|
98 |
+
"Unsqueeze",
|
99 |
+
"Squeeze",
|
100 |
+
"Pow",
|
101 |
+
"Constant",
|
102 |
+
"MatMul",
|
103 |
+
"Softmax",
|
104 |
+
"Sub",
|
105 |
+
"Shape",
|
106 |
+
"Slice",
|
107 |
+
"Range",
|
108 |
+
"Transpose",
|
109 |
+
"Concat",
|
110 |
+
"Div",
|
111 |
+
"Less",
|
112 |
+
"If",
|
113 |
+
"Equal",
|
114 |
+
"Sqrt",
|
115 |
+
"ReduceMean",
|
116 |
+
"Erf",
|
117 |
+
"Cast",
|
118 |
+
"Mul",
|
119 |
+
"Where",
|
120 |
+
"Add"
|
121 |
+
],
|
122 |
+
"weight_type": "QInt8"
|
123 |
+
}
|
124 |
+
}
|
125 |
+
}
|
sentencepiece.bpe.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cdbd2277deee13a943b702c0131ea9034d00c2288f332ee0c5fea520b07ea936
|
3 |
+
size 1411795
|
special_tokens_map.json
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
"ar_AR",
|
4 |
+
"cs_CZ",
|
5 |
+
"de_DE",
|
6 |
+
"en_XX",
|
7 |
+
"es_XX",
|
8 |
+
"et_EE",
|
9 |
+
"fi_FI",
|
10 |
+
"fr_XX",
|
11 |
+
"gu_IN",
|
12 |
+
"hi_IN",
|
13 |
+
"it_IT",
|
14 |
+
"ja_XX",
|
15 |
+
"kk_KZ",
|
16 |
+
"ko_KR",
|
17 |
+
"lt_LT",
|
18 |
+
"lv_LV",
|
19 |
+
"my_MM",
|
20 |
+
"ne_NP",
|
21 |
+
"nl_XX",
|
22 |
+
"ro_RO",
|
23 |
+
"ru_RU",
|
24 |
+
"si_LK",
|
25 |
+
"tr_TR",
|
26 |
+
"vi_VN",
|
27 |
+
"zh_CN"
|
28 |
+
],
|
29 |
+
"bos_token": "<s>",
|
30 |
+
"cls_token": "<s>",
|
31 |
+
"eos_token": "</s>",
|
32 |
+
"mask_token": {
|
33 |
+
"content": "<mask>",
|
34 |
+
"lstrip": true,
|
35 |
+
"normalized": true,
|
36 |
+
"rstrip": false,
|
37 |
+
"single_word": false
|
38 |
+
},
|
39 |
+
"pad_token": "<pad>",
|
40 |
+
"sep_token": "</s>",
|
41 |
+
"unk_token": "<unk>"
|
42 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_special_tokens": null,
|
3 |
+
"bos_token": "<s>",
|
4 |
+
"clean_up_tokenization_spaces": true,
|
5 |
+
"cls_token": "<s>",
|
6 |
+
"eos_token": "</s>",
|
7 |
+
"mask_token": {
|
8 |
+
"__type": "AddedToken",
|
9 |
+
"content": "<mask>",
|
10 |
+
"lstrip": true,
|
11 |
+
"normalized": true,
|
12 |
+
"rstrip": false,
|
13 |
+
"single_word": false
|
14 |
+
},
|
15 |
+
"model_max_length": 1000000000000000019884624838656,
|
16 |
+
"pad_token": "<pad>",
|
17 |
+
"sep_token": "</s>",
|
18 |
+
"sp_model_kwargs": {},
|
19 |
+
"src_lang": null,
|
20 |
+
"tgt_lang": null,
|
21 |
+
"tokenizer_class": "MBartTokenizer",
|
22 |
+
"unk_token": "<unk>"
|
23 |
+
}
|