Views
No views yet
quickmt-en-uk Neural Machine Translation Modelquickmt-en-uk is a reasonably fast and reasonably accurate neural machine translation model for translation from English into Ukranian.quickmt models are roughly 3 times faster for GPU inference than OpusMT models and roughly 40 times faster than LibreTranslate/ArgosTranslate.quickmt-trainpytorch_model folderpytorch_model/config.yamlquickmtquickmt python library and download the model:1git clone https://github.com/quickmt/quickmt.git
2pip install -e ./quickmt/1from quickmt import Translator
2
3# Auto-detects GPU, set to "cpu" to force CPU inference
4mt = Translator("quickmt/quickmt-en-uk", device="auto")
5
6# Translate - set beam size to 1 for faster speed (but lower quality)
7sample_text = 'Dr. Ehud Ur, professor of medicine at Dalhousie University in Halifax, Nova Scotia and chair of the clinical and scientific division of the Canadian Diabetes Association cautioned that the research is still in its early days.'
8
9mt(sample_text, beam_size=5)'Доктор Ехуд Ур, професор медицини в Університеті Далхаузі в Галіфаксі, Нова Шотландія і голова клінічного та наукового відділу Канадської діабетичної асоціації, попередив, що дослідження все ще знаходиться на початку.'
1# Get alternative translations by sampling
2# You can pass any cTranslate2 `translate_batch` arguments
3mt([sample_text], sampling_temperature=1.2, beam_size=1, sampling_topk=50, sampling_topp=0.9)'Доктор Ехуд Ур (Ehud Ur), професор медицини Університету Дальсаузі в Галіфаксі (Канада), а також голова клінічної та наукового підрозділу Канадської асоціації діабету, попередив, що дослідження все ще знаходяться на стадії свого початку.'
ctranslate2 format, and the tokenizers are sentencepiece, so you can use ctranslate2 directly instead of through quickmt. It is also possible to get this model to work with e.g. LibreTranslate which also uses ctranslate2 and sentencepiece. A model in safetensors format to be used with quickmt-train is also provided.bleu and chrf2 are calculated with sacrebleu on the Flores200 devtest test set. "Time (s)" is the time in seconds to translate the flores-devtest dataset (1012 sentences) on an RTX 4070s GPU with batch size 32.| model | time | bleu | chrf |
|---|---|---|---|
| quickmt/quickmt-en-uk | 1.20 | 32.44 | 60.52 |
| Helsinki-NLP/opus-mt-tc-big-en-zle | 3.78 | 31.98 | 60.08 |
| facebook/nllb-200-distilled-1.3B | 19.23 | 26.31 | 56.91 |
| CohereLabs/tiny-aya-global | 35.37 | 27.45 | 56.22 |
| google/gemma-4-E2B-it | 70.78 | 29.02 | 57.54 |