Firefox Translations, ONNX int8 (ucast.me)
ONNX Runtime int8 builds of twenty-three translation models made by Mozilla for Firefox Translations, all to or from English. The ucast.me desktop app uses them in Local mode, on the CPU: into Arabic, Hindi, Russian, Ukrainian, Turkish, Dutch, Spanish, Polish, Chinese, Japanese and Korean, and from German, Dutch, Polish, Russian and Ukrainian; between two other languages it chains two of them (or one with OPUS-MT) through English. Each is the exact model Firefox ships (version below): the float checkpoint of the run whose quantized file has the SHA-256 of Firefox's attachment.
| folder | Firefox version | original (bucket path) | FLEURS chrF | COMET |
|---|---|---|---|---|
de-en | 2.0 | models/de-en/retrain_hr2_WZOW24i4QJmIib61LeHfwg/student-finetuned/final.model.npz.best-chrf.npz | 67.8 | 0.883 |
nl-en | 2.0 | models/nl-en/retrain_hr_JbTCb42HREGvK8d6aOCjFQ/student-finetuned/final.model.npz.best-chrf.npz | 58.8 | 0.862 |
pl-en | 2.0 | models/pl-en/retrain_hr_HLLa6ZwsSomB0kyBr7Iz6w/student-finetuned/final.model.npz.best-chrf.npz | 57.1 | 0.853 |
ru-en | 2.1 | models/ru-en/next26_RSpwfHrcSUC_rKTnhOEXzw/student-finetuned/final.model.npz.best-chrf.npz | 60.9 | 0.852 |
uk-en | 1.1 | models/uk-en/spring-2024_Xz5QuLXISN-0zX-SJ56f8g/student-finetuned/final.model.npz.best-chrf.npz | 60.9 | 0.845 |
en-ar | 2.2 | models/en-ar/retrain_base-memory_G3CmhwG_TZext3cys-udHg/student-finetuned/final.model.npz.best-chrf.npz | 61.9 | 0.862 |
en-es | 2.1 | models/en-es/retrain_hr_fix_names_CUAEXUHoQum_cFqh-ZAryw/student-finetuned/final.model.npz.best-chrf.npz | 57.6 | 0.853 |
en-hi | 1.0 | models/en-hi/h1-2025_KoJuCNf_Q42R2Bz6j2jlOQ/student-finetuned/final.model.npz.best-chrf.npz | 59.3 | 0.786 |
en-nl | 2.1 | models/en-nl/retrain_hr_fix_names_fR8XhBiBQniIbi4I_ebJ2Q/student-finetuned/final.model.npz.best-chrf.npz | 58.6 | 0.865 |
en-pl | 2.1 | models/en-pl/retrain_hr_fix_names_YmTlfuUsSKCbUp75UXaUuw/student-finetuned/final.model.npz.best-chrf.npz | 52.5 | 0.867 |
en-ru | 2.1 | models/en-ru/retrain_base-memory_KJ23-iDVTcymG1ZldWY17w/student-finetuned/final.model.npz.best-chrf.npz | 58.2 | 0.871 |
en-tr | 1.0 | models/en-tr/spring-2024_LiFGeNrEQpKdNlziG2qP_A/student-finetuned/final.model.npz.best-chrf.npz | 61.3 | 0.873 |
en-uk | 2.2 | models/en-uk/docmt-vocab_a2OVwdI-Sg-SBZ_0Joqb0w/student-finetuned/final.model.npz.best-chrf.npz | 57.7 | 0.879 |
en-zh | 2.2 | models/en-zh/llmaat_finetune10M_qe8_f2_ByQcSxGXQRqGi-UTxYE43g/student-finetuned/final.model.npz.best-chrf.npz | 35.6 | 0.858 |
en-ja | 2.3 | models/en-ja/llmaat_finetune10M_qe8_f2_ApiGGQIwTKuF9i_k3n9Q2Q/student-finetuned/final.model.npz.best-chrf.npz | 38.6 | 0.901 |
en-ko | 2.1 | models/en-ko/cjk_retrain_base-memory_GP50C3MpQ9apCWZOW-f3PA/student-finetuned/final.model.npz.best-chrf.npz | 39.9 | 0.878 |
pt-en | not checked | models/pt-en/retrain_hr_drxrs5bGSsOWvfK9lyZISw/student-finetuned/final.model.npz.best-chrf.npz | 72.6 | – |
en-fr | not checked | models/en-fr/retrain_hr_NLIxDbE1TBGyOTI-zwZagw/student-finetuned/final.model.npz.best-chrf.npz | 70.9 | – |
fr-en | not checked | models/fr-en/retrain_hr_YJF8DPvTTn-ESLFnGkZcKA/student-finetuned/final.model.npz.best-chrf.npz | 67.6 | – |
en-pt | not checked | models/en-pt/retrain_hr_fix_names_Vnb0RUXTTd67hR-oLHM3eg/student-finetuned/final.model.npz.best-chrf.npz | 73.0 | – |
es-en | not checked | models/es-en/retrain_hr_HbNjJ60BTwmVTbhfFxuduA/student-finetuned/final.model.npz.best-chrf.npz | 60.1 | – |
it-en | not checked | models/it-en/retrain_hr_d1nPDwVeSD6t-HdtWA4xNg/student-finetuned/final.model.npz.best-chrf.npz | 60.8 | – |
en-it | not checked | models/en-it/retrain_hr_fix_names_GPSr_u8PSmC9fOx1ZDCHoA/student-finetuned/final.model.npz.best-chrf.npz | 58.4 | – |
FLEURS test, 100 sentences, greedy, COMET = Unbabel/wmt22-comet-da. 25–90 ms per sentence on 4 threads of an Apple M-series CPU; 35–58 MB each.
pt-en, en-fr, fr-en, en-pt, es-en, it-en and en-it (added 2026-11-08) are used by the ucast.me browser extension, with en-es, for every pair among English, French, Portuguese, Spanish and Italian except Italian → English (directly, or two of them through English). They are the student-finetuned checkpoints of the runs above; unlike the other sixteen, they were not checked against the SHA-256 of Firefox's attachment, so the Firefox version is not stated. In the extension's onnxruntime-web on 2 threads (Intel i7-6700HQ): 128 ms per sentence pt → en, 256 ms pt → fr.
Files in each folder
encoder_model.int8.onnx:input_ids,attention_mask→last_hidden_state.decoder_model_merged.int8.onnx: one decoding step. Inputsinput_ids(1×1),encoder_attention_mask,encoder_hidden_states,use_cache_branch(unused),past_key_values.{0..L-1}.decoder.key(1×1×T×dim: the SSRU cell of each of the L decoder layers, T = 0 on the first step) andpast_key_values.L.decoder.key(1×1×P×1, one 1 per step already taken: their sum is the position). Outputslogits(1×1×V+1) and the matchingpresent.*. Token V is<pad>, an all-zero embedding: Marian's first decoder input. (L = 4, dim = 384 for most;uk-en,en-tr,en-hiare the older tiny models: L = 2, dim = 256.)vocab.json(source pieces → ids),target_vocab.json(target pieces → ids, plus<pad>),source.tsv(source pieces and scores),source.spm,target.spm(Mozilla's SentencePiece models),model.yml(the Marian configuration).
Conversion (source form)
conversion/ holds the code: bergamot_model.py re-implements the Marian v1.12 student (transformer
encoder, SSRU decoder, "dan" post-processing, tied target embeddings) in PyTorch, bergamot_parity.py
checks it against Marian's own greedy output stored in the bucket (evaluation/student-finetuned/devtest.*:
identical on all the sentences checked), and export_bergamot.py exports and quantizes
(onnxruntime.quantization.quantize_dynamic, QInt8, ONNX Runtime 1.22.0). The weights are only converted
and quantized; nothing was retrained.
Licence and attribution
Mozilla Public License 2.0 (see LICENSE), the licence of the original models. These files are a
modified form of Mozilla's Firefox Translations models: https://github.com/mozilla/firefox-translations-models,
https://github.com/mozilla/translations.