Downloads · 30 days
75
26% of all-time downloads
Ijwi-ry-Ikirundi-AI/nllb-kirundi-multi
nllb-kirundi-multi is a translation model from Ijwi-ry-Ikirundi-AI. Use it when you need text moved from one language to another. It is set up for transformers. The card lists the license as cc-by-nc-4.0.
<div align="center" <img src="https://raw.githubusercontent.com/Sama-ndari/kirundi-contribution-app/main/static/icon.png" alt="Ijwi ry'Ikirundi AI" width="120" style="border-radius: 50%;" <h1nllb-kirundi-multi</h1 <p<…
Downloads · 30 days
75
26% of all-time downloads
All-time downloads
290
Public
Parameters
615M
2.5 GB on disk
Likes
3
Public
Click a slice to open those files.
.safetensors2.5 GB · 99%
From the Hugging Face model README
Seq2Seq translation model from Ijwi ry'Ikirundi AI.
Supports:
run_Latn) ↔ French (fra_Latn)run_Latn) ↔ English (eng_Latn)| Base | facebook/nllb-200-distilled-600M (Meta, CC BY-NC 4.0) |
| Data | The Ijwi ry'Ikirundi AI dataset, ~11k Kirundi ↔ French / English pairs at V1. The full version is private; the public version is the Kirundi Open Speech Dataset. |
| BLEU | 9.94 (V1, self-reported) |
Quality will improve as the community adds more complete pairs through the Contribution App.
1. Load once (run this cell first)
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("Ijwi-ry-Ikirundi-AI/nllb-kirundi-multi")
model = AutoModelForSeq2SeqLM.from_pretrained("Ijwi-ry-Ikirundi-AI/nllb-kirundi-multi")
2. Translate (change text, src_lang and tgt_lang only)
text = "Amahoro y'Imana abane nawe."
src_lang = "run_Latn" # language of `text`
tgt_lang = "fra_Latn" # language you want out
tokenizer.src_lang = src_lang
inputs = tokenizer(text, return_tensors="pt")
output = model.generate(
**inputs,
forced_bos_token_id=tokenizer.convert_tokens_to_ids(tgt_lang),
)
print(tokenizer.decode(output[0], skip_special_tokens=True))
4 directions: pick the matching src_lang / tgt_lang.
| Direction | src_lang | tgt_lang | Example text |
|---|---|---|---|
| Kirundi → French | run_Latn | fra_Latn | Amahoro y'Imana abane nawe. |
| French → Kirundi | fra_Latn | run_Latn | Que la paix de Dieu soit avec toi. |
| Kirundi → English | run_Latn | eng_Latn | Amahoro y'Imana abane nawe. |
| English → Kirundi | eng_Latn | run_Latn | May God's peace be with you. |
CC BY-NC 4.0: free for research, education and non-commercial projects, as long as you credit Ijwi ry'Ikirundi AI. Commercial use is not allowed.
This model is a fine-tune of NLLB-200 by Meta, itself released under CC BY-NC 4.0, so its non-commercial terms apply as well.
Questions or partnerships: 💬 Hugging Face discussion
Built by Ijwi ry'Ikirundi AI
Samandari · Rugwe