Instructions to use suru8-ai/luso-mt-tiny with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use suru8-ai/luso-mt-tiny with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "translation" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("translation", model="suru8-ai/luso-mt-tiny")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("suru8-ai/luso-mt-tiny") model = AutoModelForSeq2SeqLM.from_pretrained("suru8-ai/luso-mt-tiny", device_map="auto") - Notebooks
- Google Colab
- Kaggle
luso-mt-tiny
luso-mt-tiny translates between English and Chichewa, and between English and Tumbuka, in a single
19.9M-parameter model built for any phone, fully offline. It is part of the luso-mt family (luso-mt-tiny,
luso-mt-small, luso-mt-3b), released by Rexplore Research Labs under Apache-2.0.
Announcement: rexplore.ai/blog/introducing-luso-mt · Technical report: rexplore.ai/blog/luso-mt-technical-report · Benchmark (all test outputs and scores): suru8-ai/luso-mt-benchmark
How to use
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("suru8-ai/luso-mt-tiny")
model = AutoModelForSeq2SeqLM.from_pretrained("suru8-ai/luso-mt-tiny")
def translate(text, to): # to: "en", "ny" (Chichewa) or "tum" (Tumbuka)
batch = tok(f"<2{to}> {text}", return_tensors="pt")
out = model.generate(**batch, num_beams=4, max_new_tokens=192)
return tok.decode(out[0], skip_special_tokens=True)
print(translate("Where is the nearest clinic?", "ny"))
The target language is the tag at the start of the input (<2en>, <2ny>, <2tum>); the source language is not
needed. Outputs of this checkpoint for a few inputs (beam 4):
| Input | Output |
|---|---|
<2ny> Where is the nearest clinic? |
Chipatala chomwe chili pafupi kwambiri chili kuti? |
<2en> Kodi chipatala chapafupi chili kuti? |
Where is the nearby hospital? |
<2tum> The rains came early this year. |
Mvula yikafika kukwambilira kwa chaka ichi. |
<2ny> Please wash your hands before eating. |
Chonde kutsuka manja asanadye. |
<2tum> Where is the nearest clinic? |
Kasi chipatala icho chili pafupi chomene chili na chipatala icho chili pafupi chomene? |
<2en> Gandhi nayo akagomezganga mundondomeko ya vyachuma nakulondezga nthowa zambula viwawa. |
Gandhi also believed in the economic policy and followed ways without violence. |
Model details
| Architecture | encoder-decoder Transformer, T5 v1.1 form (RMSNorm, gated-GELU, relative positions), deep encoder / shallow decoder |
| Size | d_model 320, heads 5 × 64, d_ff 1024, 8 encoder layers, 2 decoder layers |
| Parameters | 19.9M (tied input and output embeddings) |
| Vocabulary | 16,000 SentencePiece unigram pieces shared by English, Chichewa and Tumbuka |
| Training | from scratch by sequence-level knowledge distillation from MADLAD-400 3B fine-tuned on our data |
| File size | 79.5 MB (fp32), 40.5 MB with int8 dynamic quantisation |
| CPU speed | 8.32 sentences/s greedy, 8.21 with beam 4, 11.96 int8 greedy (8 vCPU, batch 1, news sentences) |
| Developed by | Byamasu Patrick Paul, Rexplore Research Labs (Lilongwe, Malawi) |
| Licence | Apache-2.0 |
Training data
Only the public-source partition of our corpus was used:
- Malawian Chichewa web text (news, blogs, Wikipedia): 90,441 pairs, English by machine translation (Gemini 3.8 Flash, Gemma 3 27B);
- Tumbuka Wikipedia and Tumbuka news sites: about 50,000 pairs, English by machine translation (Gemini 3.8 Flash);
- professional translations from SMOL (Google, CC-BY-4.0);
- the teacher's translations of the same sources (285,952).
Every pair is used in both directions; machine-made source sentences are tagged (<bt>). Text whose terms do not
permit redistribution (the restricted partition, used only for luso-mt-3b) was not used. Test and development
sentences, and any training pair sharing an 8-word window with them, were removed before training. The dataset is
not released.
Evaluation
Held-out test sets: NTREX-128 news (500 sentences, en ↔ ny) and SMOL everyday sentences (500 sentences, en ↔ tum). chrF++ / BLEU (sacreBLEU), beam 4. Every system's outputs on these sentences are in suru8-ai/luso-mt-benchmark.
| Model | en→ny | ny→en | en→tum | tum→en |
|---|---|---|---|---|
| luso-mt-tiny | 46.3 / 19.1 | 45.5 / 22.0 | 34.9 / 8.1 | 29.1 / 7.9 |
| luso-mt-small | 47.6 / 20.1 | 46.9 / 23.6 | 35.8 / 8.2 | 30.0 / 8.8 |
| luso-mt-3b (2.9B) | 51.7 / 23.1 | 54.9 / 32.9 | 40.7 / 12.6 | 36.3 / 14.2 |
| luso-mt teacher (MADLAD-400 3B, fine-tuned) | 49.9 / 21.9 | 53.8 / 31.4 | 37.5 / 9.7 | 34.7 / 12.7 |
| NLLB-200-distilled-600M (reference, non-commercial) | 50.0 / 20.1 | 55.2 / 34.2 | 38.2 / 13.0 | 32.7 / 12.0 |
| MADLAD-400 3B (zero-shot) | 37.8 / 11.5 | 51.3 / 30.7 | not supported | 26.8 / 5.9 |
| OPUS-MT en-ny / ny-en / tum-en (75M each) | 41.0 / 12.0 | 42.7 / 18.6 | not available | 24.1 / 5.4 |
Language identity (GlotLID): the model writes the requested language in 98-100% of test outputs.
Training-to-development gap, chrF++ on 500 human-translated training pairs minus dev, per direction: 4.1 | 4.1 | 11.4 | 12.7.
Limitations
- Scores are automatic metrics on small, single-reference test sets; no human evaluation has been completed yet.
- Trained mostly on news and web text; conversation, medicine and law are weaker.
- Most English training targets are machine translations, so English output can be literal; ny→en is 9.7 chrF++ below NLLB-200.
- Tumbuka has less data and is up-sampled in training; the gap between training and development scores is larger for Tumbuka (see above), so Tumbuka quality is lower and less even than Chichewa.
- Names, numbers and dates should be checked.
- Very short sentences, especially instructions, are sometimes copied untranslated or translated with a repeated phrase (see the examples above).
- Not for legal, medical or safety-critical translation without human review.
Citation
@techreport{luso-mt-2026,
title = {luso-mt: Compact Machine Translation for English, Chichewa and Tumbuka},
author = {Byamasu, Patrick Paul},
institution = {Rexplore Research Labs},
year = {2026},
url = {https://rexplore.ai/blog/luso-mt-technical-report}
}
Contact: research@rexplore.ai
- Downloads last month
- 74
Dataset used to train suru8-ai/luso-mt-tiny
Evaluation results
- chrF++ en→ny on NTREX-128 (en-ny, 500 sentences)test set self-reported46.300
- BLEU en→ny on NTREX-128 (en-ny, 500 sentences)test set self-reported19.100
- chrF++ ny→en on NTREX-128 (en-ny, 500 sentences)test set self-reported45.500
- BLEU ny→en on NTREX-128 (en-ny, 500 sentences)test set self-reported22.000
- chrF++ en→tum on SMOL (en-tum, 500 sentences)test set self-reported34.900
- BLEU en→tum on SMOL (en-tum, 500 sentences)test set self-reported8.100
- chrF++ tum→en on SMOL (en-tum, 500 sentences)test set self-reported29.100
- BLEU tum→en on SMOL (en-tum, 500 sentences)test set self-reported7.900