Instructions to use nileagi/nileagi-nym-mt-lite with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nileagi/nileagi-nym-mt-lite 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="nileagi/nileagi-nym-mt-lite")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("nileagi/nileagi-nym-mt-lite") model = AutoModelForSeq2SeqLM.from_pretrained("nileagi/nileagi-nym-mt-lite", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Request access
Describe your intended use below. Downloads unlock after approval.
Weights are released under CC BY-NC-SA 4.0 for non-commercial research and education. Credit NileAGI, keep adaptations under the same licence, and contact us before any commercial product or paid service. Do not use the model to harm people, break the law, or present outputs as human writing.
Log in or Sign Up to review the conditions and access this model content.
Runyambo MT (lite)
Authors: Zephania and Isack Odero
Swahili → Runyambo (Orunyambo) lexical / phrase MT. Fine-tuned from NLLB-200 distilled 1.3B (bakeoff sibling to the quality 600M SKU).
Prefer nileagi/nileagi-nym-mt as the default promote; use lite when you want the larger backbone.
| Quality sibling | nileagi/nileagi-nym-mt |
| Reverse | nileagi/nileagi-nym-mt-rev |
| Collection | nileagi/nileagi-nym |
| Technical report | TECHNICAL_REPORT.tex |
Summary
| Task | Lexical / phrase MT |
| Direction | Swahili → Runyambo |
| Language codes | swh_Latn → nym_Latn |
| Base | facebook/nllb-200-distilled-1.3B |
| Primary metric | chrF2 |
| Test chrF2 | 16.6 (BLEU 3.4 · exact 0.2%) |
Identity baseline (copy Swahili) ≈ chrF2 8.0. Tied with quality on primary chrF2; small BLEU / exact edge over 600M.
How to use
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("nileagi/nileagi-nym-mt-lite", use_fast=False)
model = AutoModelForSeq2SeqLM.from_pretrained("nileagi/nileagi-nym-mt-lite")
tok.src_lang = "swh_Latn"
inputs = tok("habari", return_tensors="pt")
bos = tok.convert_tokens_to_ids("nym_Latn")
out = model.generate(**inputs, forced_bos_token_id=bos, max_new_tokens=64)
print(tok.decode(out[0], skip_special_tokens=True))
Always set swh_Latn and force BOS nym_Latn.
HTTP API
Port 8096 with NILEAGI_MT_SKU=lite (nileagi-nym-mt-api).
Intended use / out of scope
Same as the quality card: lexical / short-phrase research only — not sentence MT, not English→Runyambo, not commercial without a NileAGI licence.
Access
Weights are gated under CC BY-NC-SA 4.0.
Attribute NileAGI. Adapted weights must stay CC BY-NC-SA 4.0. Commercial: hi@nileagi.com.
License
Weights: CC BY-NC-SA 4.0.
See LICENSE and NOTICE.md.
Citation
@misc{nileagi-nym-mt-lite-2026,
title = {Runyambo machine translation lite (Swahili to Runyambo)},
author = {Zephania and Isack Odero},
year = {2026},
howpublished = {Hugging Face},
url = {https://huggingface.co/nileagi/nileagi-nym-mt-lite},
note = {NileAGI}
}
- Downloads last month
- -