Downloads · 30 days
20
5% of all-time downloads
thinkKenya/luo_swa_translation_model
luo_swa_translation_model is a translation model from thinkKenya. Use it when you need text moved from one language to another.
THiNK’s Luo–Swahili Translation Model is a fine-tuned T5-small designed to translate between the Luo (dav) and Swahili (swa) languages. It was trained on a parallel corpus of approximately 29,300 Luo–Swahili sentence…
Downloads · 30 days
20
5% of all-time downloads
All-time downloads
413
Public
Parameters
60.5M
134 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors242 MB · 99%
From the Hugging Face model README
THiNK’s Luo–Swahili Translation Model is a fine-tuned T5-small designed to translate between the Luo (dav) and Swahili (swa) languages. It was trained on a parallel corpus of approximately 29,300 Luo–Swahili sentence pairs drawn from the larger “Kenyan Low-Resource Language Data” dataset. thinkKenya—also known as Tech Innovators Network Kenya—is a community-driven technology initiative founded in 2019 to support digital transformation and applied open innovation across Kenya, with a special focus on African local languages.
dav) ↔ Swahili (ISO swa)luo_swa (≈29.3 k total examples; train split: 21.3 k; test split: 5.33 k)| Component | Details |
|---|---|
| Model weights | model.safetensors (242 MB) |
| Tokenizer files | tokenizer.json, special_tokens_map.json, tokenizer_config.json |
| Config file | config.json |
| Training args | training_args.bin |
| Software versions | transformers ≥ 4.x, datasets ≥ 2.x |
from transformers import T5Tokenizer, T5ForConditionalGeneration
tokenizer = T5Tokenizer.from_pretrained("thinkKenya/luo_swa_translation_model")
model = T5ForConditionalGeneration.from_pretrained("thinkKenya/luo_swa_translation_model")
input_text = "translate Luo to Swahili: Wuki ghwa choki"
inputs = tokenizer(input_text, return_tensors="pt")
outputs = model.generate(**inputs)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Thought for a couple of seconds
Below is the License section added to the model card, specifying the CC BY 4.0 terms and the required attribution format.
This model and the underlying dataset are released under the Creative Commons Attribution 4.0 International License (CC BY 4.0).
You are free to:
Under the following terms:
Suggested attribution for this model:
“Luo–Swahili Translation Model, thinkKenya (Tech Innovators Network Kenya), CC BY 4.0, https://huggingface.co/thinkKenya/luo_swa_translation_model”
@misc{luo_swa_translation_model,
title = {Luo–Swahili Translation Model},
author = {thinkKenya (Tech Innovators Network Kenya)},
year = {2024},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/thinkKenya/luo_swa_translation_model}},
}