Downloads · 30 days
54
12% of all-time downloads
keithtwesigye/lunyoro-nllb-lun2en
lunyoro-nllb-lun2en is a translation model from keithtwesigye. Use it when you need text moved from one language to another. The card lists the license as mit.
Fine-tuned NLLB-200 model for Lunyoro/Rutooro → English translation.
Downloads · 30 days
54
12% of all-time downloads
All-time downloads
434
Public
Parameters
615M
48.1 GB on disk
Likes
1
Public
Click a slice to open those files.
.onnx_data5.7 GB · 40%
From the Hugging Face model README
Fine-tuned NLLB-200 model for Lunyoro/Rutooro → English translation.
Lunyoro-Rutooro is a Bantu language spoken by the Bunyoro-Kitara and Tooro kingdoms in western Uganda.
facebook/nllb-200-distilled-600Mrun_Latneng_LatnThe training data was compiled from:
from transformers import NllbTokenizer, AutoModelForSeq2SeqLM
model_name = "keithtwesigye/lunyoro-nllb_lun2en"
tokenizer = NllbTokenizer.from_pretrained(model_name)
model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
tokenizer.src_lang = "run_Latn"
text = "Oraire ota?"
inputs = tokenizer(text, return_tensors="pt", truncation=True)
output = model.generate(
**inputs,
forced_bos_token_id=tokenizer.convert_tokens_to_ids("eng_Latn"),
num_beams=4,
max_length=256
)
print(tokenizer.decode(output[0], skip_special_tokens=True))
| Model | Description |
|---|---|
| lunyoro-en2lun | MarianMT English → Lunyoro |
| lunyoro-lun2en | MarianMT Lunyoro → English |
| lunyoro-nllb_en2lun | NLLB-200 English → Lunyoro |
| lunyoro-nllb_lun2en | NLLB-200 Lunyoro → English |
Source code: chriskagenda/TRANSLATOR