Chitonga ↔ English translator (stage 13)
A translator between Chitonga (Tonga of southern Zambia, ISO 639-3 toi) and English, fine-tuned from Meta's
NLLB-200 1.3B. In the paper below it is called "the stage 13 translator". The language code is toi_Latn, a new code
added to NLLB and started from Bemba's (bem_Latn). It serves as the reference translator of the project, and it ran
the public demonstration at zamai.pro/tonga.
How it was trained
The model was fine-tuned in thirteen stages, adding data step by step:
- children's storybooks;
- the sentences of Hopgood's grammar;
- sets from a grammar engine that inflects attested words and never invents them;
- answers from paid bilingual speakers;
- school books typed in full;
- back-translation that protects names;
- Chitonga novels and cultural books translated in context.
From stage 12 on, training used real data first, without synthetic sentences. Stage 13 was trained with two seeds, and this model is the average of the two (a two-seed weight average). The average beat both seeds on every frozen test.
Intended use and limits
This is a proof of concept released with the paper. It is for research, for drafting translations that a Chitonga speaker checks, and as a reader (back-translator) for automatic checks.
-
Meaning, judged by Claude agents (blind), on book lines no compared model trained on:
direction lines right right or partly Chitonga → English 381 66% 86% English → Chitonga 150 77% 92% -
Speaker ratings: self-declared Chitonga speakers rated outputs on the public translator page. 12 of 19 were accurate and 7 wrong (Chitonga→English 7 of 13, English→Chitonga 5 of 6), a 95% interval of 41-81%. These ratings are few and self-selected. A blind check by native speakers has not been made yet.
-
Common errors: the commonest remaining error is word sense (rare nouns, crop and game vocabulary, names read as words), not grammar. Tense, person and negation errors had become rare.
-
Other languages: fine-tuning removed NLLB's other directions. Use it for Chitonga ↔ English only. English can serve as a hub to other languages through the stock NLLB.
-
Not for medical, legal or safety instructions without a speaker's check.
Newer models are available on request while the work continues.
Files
| path | what |
|---|---|
root (model-0000x-of-00002.safetensors, tokenizer, configs) | the full model for Hugging Face transformers (5.5 GB) |
ct2-int8/ | the same model converted to CTranslate2, int8 (1.4 GB). About 0.47 s per sentence on a mini PC's CPU, and it runs offline on a phone |
How to run it
With transformers:
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
m = "zamai-zambia/chitonga-nllb-s13"
tok = AutoTokenizer.from_pretrained(m)
model = AutoModelForSeq2SeqLM.from_pretrained(m)
tok.src_lang = "toi_Latn" # English > Chitonga: src_lang="eng_Latn", target "toi_Latn"
x = tok("Bana baya kucikolo.", return_tensors="pt")
y = model.generate(**x, forced_bos_token_id=tok.convert_tokens_to_ids("eng_Latn"), num_beams=4, max_new_tokens=128)
print(tok.batch_decode(y, skip_special_tokens=True)[0])
With CTranslate2 (fast on CPU), from the ct2-int8/ folder:
import ctranslate2, transformers
from huggingface_hub import snapshot_download
d = snapshot_download("zamai-zambia/chitonga-nllb-s13")
tr = ctranslate2.Translator(d + "/ct2-int8", device="cpu", compute_type="int8")
tok = transformers.AutoTokenizer.from_pretrained(d)
tok.src_lang = "eng_Latn"
src = tok.convert_ids_to_tokens(tok.encode("The children are going to school."))
out = tr.translate_batch([src], target_prefix=[["toi_Latn"]], beam_size=4)
print(tok.decode(tok.convert_tokens_to_ids(out[0].hypotheses[0][1:]), skip_special_tokens=True))
Translate one sentence at a time: NLLB tends to drop the second sentence of a two-sentence input.
Licence
CC BY-NC 4.0, the licence of the base model, Meta's NLLB-200: free for non-commercial use, with attribution. No training data and no test sets are included in this repository.
Citation
Lindinger, C. J. (2026). No Data Centre Required: Adapting Open Models to Chitonga with Paid Bilingual Speakers, Printed Books and a Verifying Harness (preprint). Zenodo. https://doi.org/10.5281/zenodo.23487563
@misc{lindinger2026chitonga,
author = {Lindinger, Christoph Johannes},
title = {No Data Centre Required: Adapting Open Models to Chitonga with Paid Bilingual Speakers, Printed Books and a Verifying Harness},
year = {2026},
publisher = {Zenodo},
note = {Preprint},
doi = {10.5281/zenodo.23487563}
}
Base model: NLLB Team (2024), Scaling neural machine translation to 200 languages, Nature 630.
Contact
Christoph Lindinger, ZamAi (zamai.pro): chris@zamai.pro. AI agents can write to agent@zamai.pro.