Upload opus-mt-en-tr ONNX INT8
Browse files- .gitattributes +2 -0
- opus-mt-en-tr/LICENSE +16 -0
- opus-mt-en-tr/README.md +27 -0
- opus-mt-en-tr/config.json +40 -0
- opus-mt-en-tr/decoder_model_merged_quantized.onnx +3 -0
- opus-mt-en-tr/decoder_model_quantized.onnx +3 -0
- opus-mt-en-tr/decoder_with_past_model_quantized.onnx +3 -0
- opus-mt-en-tr/encoder_model_quantized.onnx +3 -0
- opus-mt-en-tr/generation_config.json +16 -0
- opus-mt-en-tr/ort_config.json +33 -0
- opus-mt-en-tr/source.spm +3 -0
- opus-mt-en-tr/special_tokens_map.json +5 -0
- opus-mt-en-tr/target.spm +3 -0
- opus-mt-en-tr/tokenizer_config.json +39 -0
- opus-mt-en-tr/vocab.json +0 -0
.gitattributes
CHANGED
|
@@ -34,3 +34,5 @@ saved_model/**/* 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 |
madlad400-3b-int8/tokenizer.json 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 |
madlad400-3b-int8/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
opus-mt-en-tr/source.spm filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
opus-mt-en-tr/target.spm filter=lfs diff=lfs merge=lfs -text
|
opus-mt-en-tr/LICENSE
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Original model: Helsinki-NLP/opus-tatoeba-en-tr
|
| 2 |
+
License: Apache-2.0
|
| 3 |
+
|
| 4 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 5 |
+
you may not use this file except in compliance with the License.
|
| 6 |
+
You may obtain a copy of the License at
|
| 7 |
+
|
| 8 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 9 |
+
|
| 10 |
+
Unless required by applicable law or agreed to in writing, software
|
| 11 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 12 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 13 |
+
See the License for the specific language governing permissions and
|
| 14 |
+
limitations under the License.
|
| 15 |
+
|
| 16 |
+
Model data licensed under CC-BY-4.0.
|
opus-mt-en-tr/README.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: Helsinki-NLP/opus-tatoeba-en-tr
|
| 4 |
+
tags:
|
| 5 |
+
- translation
|
| 6 |
+
- onnx
|
| 7 |
+
- int8
|
| 8 |
+
- en-tr
|
| 9 |
+
- nobuds
|
| 10 |
+
language:
|
| 11 |
+
- en
|
| 12 |
+
- tr
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# OPUS-MT en→tr ONNX INT8
|
| 16 |
+
|
| 17 |
+
INT8 quantized ONNX export of [Helsinki-NLP/opus-tatoeba-en-tr](https://huggingface.co/Helsinki-NLP/opus-tatoeba-en-tr) for on-device English to Turkish translation.
|
| 18 |
+
|
| 19 |
+
- **Direction:** English → Turkish
|
| 20 |
+
- **License:** Apache 2.0 (data: CC-BY-4.0)
|
| 21 |
+
- **Quantization:** INT8 dynamic (optimum, avx2)
|
| 22 |
+
- **Export tool:** optimum-cli
|
| 23 |
+
|
| 24 |
+
## Usage
|
| 25 |
+
|
| 26 |
+
Exported for the NoBuds on-device translation pipeline (Android/ONNX Runtime Mobile).
|
| 27 |
+
For quality comparison against multilingual models (M2M-100, MADLAD-400).
|
opus-mt-en-tr/config.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"activation_dropout": 0.0,
|
| 3 |
+
"activation_function": "swish",
|
| 4 |
+
"architectures": [
|
| 5 |
+
"MarianMTModel"
|
| 6 |
+
],
|
| 7 |
+
"attention_dropout": 0.0,
|
| 8 |
+
"bos_token_id": 0,
|
| 9 |
+
"classifier_dropout": 0.0,
|
| 10 |
+
"d_model": 512,
|
| 11 |
+
"decoder_attention_heads": 8,
|
| 12 |
+
"decoder_ffn_dim": 2048,
|
| 13 |
+
"decoder_layerdrop": 0.0,
|
| 14 |
+
"decoder_layers": 6,
|
| 15 |
+
"decoder_start_token_id": 59993,
|
| 16 |
+
"decoder_vocab_size": 59994,
|
| 17 |
+
"dropout": 0.1,
|
| 18 |
+
"dtype": "float32",
|
| 19 |
+
"encoder_attention_heads": 8,
|
| 20 |
+
"encoder_ffn_dim": 2048,
|
| 21 |
+
"encoder_layerdrop": 0.0,
|
| 22 |
+
"encoder_layers": 6,
|
| 23 |
+
"eos_token_id": 0,
|
| 24 |
+
"forced_eos_token_id": 0,
|
| 25 |
+
"init_std": 0.02,
|
| 26 |
+
"is_encoder_decoder": true,
|
| 27 |
+
"max_length": null,
|
| 28 |
+
"max_position_embeddings": 512,
|
| 29 |
+
"model_type": "marian",
|
| 30 |
+
"normalize_embedding": false,
|
| 31 |
+
"num_beams": null,
|
| 32 |
+
"num_hidden_layers": 6,
|
| 33 |
+
"pad_token_id": 59993,
|
| 34 |
+
"scale_embedding": true,
|
| 35 |
+
"share_encoder_decoder_embeddings": true,
|
| 36 |
+
"static_position_embeddings": true,
|
| 37 |
+
"transformers_version": "4.57.6",
|
| 38 |
+
"use_cache": true,
|
| 39 |
+
"vocab_size": 59994
|
| 40 |
+
}
|
opus-mt-en-tr/decoder_model_merged_quantized.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d059b778ef546ac536145008921b729253856d4a60344573d12215987a432b03
|
| 3 |
+
size 57363154
|
opus-mt-en-tr/decoder_model_quantized.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:063c97138c22005a0f0a513d3d9f8c2b178f5180140b4a6721d93f7833bd7082
|
| 3 |
+
size 57010861
|
opus-mt-en-tr/decoder_with_past_model_quantized.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b998e9b22842fb367c518fb5019ab935cfba7a9dc55adeca0ce9cdeca0f61092
|
| 3 |
+
size 53799241
|
opus-mt-en-tr/encoder_model_quantized.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6c4e6a035d2a4190ebbd4b9b1abcf8a7b7486649c6be1bebadac56626773d78c
|
| 3 |
+
size 50172996
|
opus-mt-en-tr/generation_config.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bad_words_ids": [
|
| 3 |
+
[
|
| 4 |
+
59993
|
| 5 |
+
]
|
| 6 |
+
],
|
| 7 |
+
"bos_token_id": 0,
|
| 8 |
+
"decoder_start_token_id": 59993,
|
| 9 |
+
"eos_token_id": 0,
|
| 10 |
+
"forced_eos_token_id": 0,
|
| 11 |
+
"max_length": 512,
|
| 12 |
+
"num_beams": 6,
|
| 13 |
+
"pad_token_id": 59993,
|
| 14 |
+
"renormalize_logits": true,
|
| 15 |
+
"transformers_version": "4.57.6"
|
| 16 |
+
}
|
opus-mt-en-tr/ort_config.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"one_external_file": true,
|
| 3 |
+
"opset": null,
|
| 4 |
+
"optimization": {},
|
| 5 |
+
"quantization": {
|
| 6 |
+
"activations_dtype": "QUInt8",
|
| 7 |
+
"activations_symmetric": false,
|
| 8 |
+
"format": "QOperator",
|
| 9 |
+
"is_static": false,
|
| 10 |
+
"mode": "IntegerOps",
|
| 11 |
+
"nodes_to_exclude": [],
|
| 12 |
+
"nodes_to_quantize": [],
|
| 13 |
+
"operators_to_quantize": [
|
| 14 |
+
"Conv",
|
| 15 |
+
"MatMul",
|
| 16 |
+
"Attention",
|
| 17 |
+
"LSTM",
|
| 18 |
+
"Gather",
|
| 19 |
+
"Transpose",
|
| 20 |
+
"EmbedLayerNormalization"
|
| 21 |
+
],
|
| 22 |
+
"per_channel": false,
|
| 23 |
+
"qdq_add_pair_to_weight": false,
|
| 24 |
+
"qdq_dedicated_pair": false,
|
| 25 |
+
"qdq_op_type_per_channel_support_to_axis": {
|
| 26 |
+
"MatMul": 1
|
| 27 |
+
},
|
| 28 |
+
"reduce_range": false,
|
| 29 |
+
"weights_dtype": "QUInt8",
|
| 30 |
+
"weights_symmetric": true
|
| 31 |
+
},
|
| 32 |
+
"use_external_data_format": false
|
| 33 |
+
}
|
opus-mt-en-tr/source.spm
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:98eb24f0995a9d5f7cb0fb628c474628b1d2284615e881e857d062c0b651ce10
|
| 3 |
+
size 793920
|
opus-mt-en-tr/special_tokens_map.json
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"eos_token": "</s>",
|
| 3 |
+
"pad_token": "<pad>",
|
| 4 |
+
"unk_token": "<unk>"
|
| 5 |
+
}
|
opus-mt-en-tr/target.spm
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:45cc6000ed513cdca8f80739087fbcbf9933dc50c9ae36c319c9670882f72e1b
|
| 3 |
+
size 837876
|
opus-mt-en-tr/tokenizer_config.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"added_tokens_decoder": {
|
| 3 |
+
"0": {
|
| 4 |
+
"content": "</s>",
|
| 5 |
+
"lstrip": false,
|
| 6 |
+
"normalized": false,
|
| 7 |
+
"rstrip": false,
|
| 8 |
+
"single_word": false,
|
| 9 |
+
"special": true
|
| 10 |
+
},
|
| 11 |
+
"1": {
|
| 12 |
+
"content": "<unk>",
|
| 13 |
+
"lstrip": false,
|
| 14 |
+
"normalized": false,
|
| 15 |
+
"rstrip": false,
|
| 16 |
+
"single_word": false,
|
| 17 |
+
"special": true
|
| 18 |
+
},
|
| 19 |
+
"59993": {
|
| 20 |
+
"content": "<pad>",
|
| 21 |
+
"lstrip": false,
|
| 22 |
+
"normalized": false,
|
| 23 |
+
"rstrip": false,
|
| 24 |
+
"single_word": false,
|
| 25 |
+
"special": true
|
| 26 |
+
}
|
| 27 |
+
},
|
| 28 |
+
"clean_up_tokenization_spaces": false,
|
| 29 |
+
"eos_token": "</s>",
|
| 30 |
+
"extra_special_tokens": {},
|
| 31 |
+
"model_max_length": 512,
|
| 32 |
+
"pad_token": "<pad>",
|
| 33 |
+
"separate_vocabs": false,
|
| 34 |
+
"source_lang": "eng",
|
| 35 |
+
"sp_model_kwargs": {},
|
| 36 |
+
"target_lang": "tur",
|
| 37 |
+
"tokenizer_class": "MarianTokenizer",
|
| 38 |
+
"unk_token": "<unk>"
|
| 39 |
+
}
|
opus-mt-en-tr/vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|