Downloads · 30 days
10
24% of all-time downloads
KIWARO/opus-mt-tc-big-zls-en-ct2
opus-mt-tc-big-zls-en-ct2 is a translation model from KIWARO. Use it when you need text moved from one language to another. The card lists the license as cc-by-4.0.
South Slavic → English, including Macedonian, converted to run on a phone.
Downloads · 30 days
10
24% of all-time downloads
All-time downloads
41
Public
Repo size
243 MB
Likes
1
Public
Click a slice to open those files.
.bin241 MB · 99%
From the Hugging Face model README
South Slavic → English, including Macedonian, converted to run on a phone.
A straight conversion of
Helsinki-NLP/opus-mt-tc-big-zls-en
with ctranslate2.converters.transformers --quantization int8. No retraining and no
fine-tuning: the weights are Helsinki's work, quantised so a phone can hold them.
No CTranslate2 build of this model was published. It is used by Kiwaro to translate Macedonian on device, where nothing leaves the phone.
Twelve FLEURS sentences matched by id across languages, decoded on an iPhone 17e at int8:
| Macedonian → English | chrF |
|---|---|
opus-mt-mk-en (the smaller dedicated pair, 145 MB) | 65.7 |
| this model (230 MB) | 69.9 |
import ctranslate2, sentencepiece as spm
translator = ctranslate2.Translator(".", compute_type="int8")
source = spm.SentencePieceProcessor("source.spm")
target = spm.SentencePieceProcessor("target.spm")
tokens = source.encode("Обединетите нации се надеваат.", out_type=str) + ["</s>"]
result = translator.translate_batch([tokens], beam_size=4, no_repeat_ngram_size=3)
print(target.decode(result[0].hypotheses[0]))
Two details that cost real debugging:
</s> is not optional. Without it the decoder never learns the input has ended and
repeats itself until the length limit — "you use a satellite satellite to call someone
thousands of miles away. You use a satellite satellite to…"no_repeat_ngram_size=3 removes the same loop on spontaneous speech, where the
end token alone is not enough. Measured cost to quality: none.CC BY 4.0, following the original. Attribution: Helsinki-NLP / University of Helsinki, Tatoeba Challenge. Changes made: format conversion and int8 quantisation.