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