Downloads · 30 days
11
9% of all-time downloads
Bateesa/tiny-aya-global-lora-qa
tiny-aya-global-lora-qa is a text generation model from Bateesa. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
A lightweight, multilingual Small Language Model (SLM) fine-tuned for question-and-answer tasks across five languages spoken in Uganda and East Africa. Built on top of CohereLabs/tiny-aya-global using LoRA (PEFT), thi…
Downloads · 30 days
11
9% of all-time downloads
All-time downloads
124
Public
Repo size
36.7 MB
Likes
1
Public
Click a slice to open those files.
.json21.4 MB · 58%
From the Hugging Face model README
A lightweight, multilingual Small Language Model (SLM) fine-tuned for question-and-answer tasks across five languages spoken in Uganda and East Africa. Built on top of CohereLabs/tiny-aya-global using LoRA (PEFT), this model is optimized for low-resource, local-language understanding.
| Field | Details |
|---|---|
| Base Model | CohereLabs/tiny-aya-global |
| Fine-tuning Method | LoRA (PEFT) |
| Task | Question Answering (QA) |
| Languages | Ateso, Luganda, English, Runyankore, Japadhola |
| Training Samples | 90K custom QA pairs |
| Framework | Transformers + PEFT 0.18.1 |
| License | Apache 2.0 |
| Language | Code | Region |
|---|---|---|
| English | en | International |
| Luganda | lug | Central Uganda |
| Runyankore | nyn | Western Uganda |
| Ateso | teo | Eastern Uganda / Northern Kenya |
| Japadhola | dho | Eastern Uganda |
This model is designed for question-and-answer inference in multilingual East African contexts. It is suitable for:
The model can be further fine-tuned or integrated into:
pip install transformers peft torch
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
base_model_id = "CohereLabs/tiny-aya-global"
adapter_id = "Bateesa/tiny-aya-global-lora-qa"
tokenizer = AutoTokenizer.from_pretrained(base_model_id)
model = AutoModelForCausalLM.from_pretrained(base_model_id)
model = PeftModel.from_pretrained(model, adapter_id)
model.eval()
def ask(question: str) -> str:
prompt = f"Question: {question}\nAnswer:"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=128)
return tokenizer.decode(outputs[0], skip_special_tokens=True)
# English
print(ask("What is the capital of Uganda?"))
# Luganda
print(ask("Ekibuga ekikulembera Uganda kye ki?"))
# Runyankore
print(ask("Obwakabaka bw'Uganda nibuki?"))
Question: ... \nAnswer: ...)Fine-tuned using LoRA (Low-Rank Adaptation) via the HuggingFace PEFT library on top of CohereLabs/tiny-aya-global.
| Parameter | Value |
|---|---|
| Method | LoRA |
| PEFT Version | 0.18.1 |
| Training regime | fp16 mixed precision |
| LoRA rank (r) | 8 |
| LoRA alpha | 16 |
| LoRA dropout | 0.05 |
| Target modules | q_proj, v_proj |
| Epochs | 3 |
| Batch size | 4 |
| Learning rate | 2e-4 |
Held-out subset from the 90K custom QA samples, with manual review of responses across all five languages.
⚠️ This model is trained on a small dataset of 90 samples. Performance may vary across languages and domains. It is best used as a baseline or proof-of-concept. Expanding the training dataset is strongly recommended for production use.
Users should validate model outputs before deploying in community-facing applications. Additional data collection and evaluation is recommended, especially for Ateso and Japadhola which have fewer NLP resources available.
Carbon emissions can be estimated using the Machine Learning Impact Calculator.
| Field | Details |
|---|---|
| Hardware Type | GPU (e.g., T4 / A100) |
| Training Duration | ~1–2 hours (estimated for 90 samples) |
| Cloud Provider | TBD |
| Carbon Emitted | Low (small dataset + LoRA adapter only) |
If you use this model in your research or application, please cite:
@misc{multilingual-slm-ug,
title = {Multilingual SLM for Ugandan Languages: Ateso, Luganda, English, Runyankore, Japadhola},
author = {PhosAI},
year = {2025},
publisher = {HuggingFace},
url = {https://huggingface.co/Bateesa/tiny-aya-global-lora-qa}
}
For questions, feedback, or collaboration inquiries, please open an issue on the model repository or contact [your contact info].
0.18.1≥ 4.38.0≥ 2.0