Downloads · 30 days
48
10% of all-time downloads
keithtwesigye/lunyoro-nllb-en2lun
lunyoro-nllb-en2lun 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 English → Lunyoro/Rutooro translation.
Downloads · 30 days
48
10% of all-time downloads
All-time downloads
483
Public
Parameters
615M
53 GB on disk
Likes
0
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 English → Lunyoro/Rutooro translation.
Lunyoro-Rutooro is a Bantu language spoken by the Bunyoro-Kitara and Tooro kingdoms in western Uganda.
facebook/nllb-200-distilled-600Meng_Latnrun_LatnThe training data was compiled from:
from transformers import NllbTokenizer, AutoModelForSeq2SeqLM
model_name = "keithtwesigye/lunyoro-nllb_en2lun"
tokenizer = NllbTokenizer.from_pretrained(model_name)
model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
tokenizer.src_lang = "eng_Latn"
text = "How are you?"
inputs = tokenizer(text, return_tensors="pt", truncation=True)
output = model.generate(
**inputs,
forced_bos_token_id=tokenizer.convert_tokens_to_ids("run_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