Downloads · 30 days
69
50% of all-time downloads
mgbam/gaialab-naija-adapter-v0.5
gaialab-naija-adapter-v0.5 is a text generation model from mgbam. 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.
GaiaLab Naija Assistant v0.5 is an experimental LoRA adapter for Qwen/Qwen2.5-0.5B-Instruct.
Downloads · 30 days
69
50% of all-time downloads
All-time downloads
137
Public
Repo size
46.7 MB
Likes
0
Public
Click a slice to open those files.
.safetensors35.2 MB · 69%
From the Hugging Face model README
GaiaLab Naija Assistant v0.5 is an experimental LoRA adapter for
Qwen/Qwen2.5-0.5B-Instruct.
It is designed to explore small, accessible language models for Nigerian-context communication, including customer service, Nigerian English, basic Nigerian Pidgin, professional boundaries, business writing, and scam-safety guidance.
This is an early research release.
The adapter was trained on a small, manually reviewed dataset of 47 examples. It should not be treated as a production-ready general-purpose assistant.
The current release demonstrates a reproducible workflow for:
| Field | Value |
|---|---|
| Model | GaiaLab Naija Assistant v0.5 |
| Base model | Qwen/Qwen2.5-0.5B-Instruct |
| Fine-tuning method | LoRA / PEFT |
| Model type | Causal language model adapter |
| Primary language | English |
| Additional language variety | Nigerian English and basic Nigerian Pidgin |
| Training examples | 47 |
| Dataset health score | 95/100 |
| Developer | Oluwafemi Idiakhoa |
| Project | GaiaLab AI |
The v0.5 training dataset contained:
| Category | Examples |
|---|---|
| Safety and scams | 13 |
| Professional boundaries | 12 |
| Customer service | 10 |
| Nigerian English | 10 |
| Business writing | 1 |
| Nigerian Pidgin | 1 |
| Total | 47 |
Risk-level distribution:
| Risk level | Examples |
|---|---|
| High | 19 |
| Medium | 7 |
| Low | 21 |
The dataset pipeline reported:
This adapter may be useful for:
This model should not be used as the sole authority for:
Never provide passwords, PINs, one-time passwords, bank verification codes, private keys, or other sensitive credentials to the model.
pip install torch transformers peft
import torch
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base_model_id = "Qwen/Qwen2.5-0.5B-Instruct"
adapter_id = "mgbam/gaialab-naija-adapter-v0.5"
tokenizer = AutoTokenizer.from_pretrained(
base_model_id,
trust_remote_code=True,
)
base_model = AutoModelForCausalLM.from_pretrained(
base_model_id,
torch_dtype=torch.float32,
trust_remote_code=True,
)
model = PeftModel.from_pretrained(
base_model,
adapter_id,
)
messages = [
{
"role": "system",
"content": (
"You are GaiaLab Naija Assistant. Be helpful, concise, "
"culturally aware, truthful, and safe."
),
},
{
"role": "user",
"content": "Write a polite reminder for a customer who has not paid.",
},
]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True,
)
inputs = tokenizer(text, return_tensors="pt")
with torch.no_grad():
output = model.generate(
**inputs,
max_new_tokens=120,
do_sample=False,
)
generated_tokens = output[0][inputs["input_ids"].shape[1]:]
response = tokenizer.decode(
generated_tokens,
skip_special_tokens=True,
)
print(response)
The adapter was trained on examples involving:
The adapter was trained with LoRA using the PEFT library.
The local training configuration included:
Qwen/Qwen2.5-0.5B-InstructA formal side-by-side comparison between v0.4 and v0.5 has not yet been published.
Therefore, this model card does not claim that v0.5 performs better than v0.4.
Evaluation results will be added after both adapters are tested on the same held-out benchmark and reviewed using consistent criteria.
The training dataset is very small and unevenly distributed.
In particular:
All important outputs should be reviewed by a person.
| Version | Status |
|---|---|
| v0.1 | Initial experimental adapter |
| v0.2 | Early iterative release |
| v0.3 | Expanded experimental release |
| v0.4 | First formally reviewed and benchmarked development version |
| v0.5 | Reproducible dataset pipeline and corrective-example training release |
https://github.com/oluwafemidiakhoa/gaialab-naija-assistanthttps://huggingface.co/mgbam/gaialab-naija-adapter-v0.5https://www.gailabai.comGaiaLab Naija Assistant is an experimental research project. Users are responsible for reviewing generated content before relying on it or sending it to others.
Do not use this model to impersonate individuals, facilitate fraud, request confidential credentials, or make consequential decisions without qualified human oversight.
Developed by Oluwafemi Idiakhoa under the GaiaLab AI initiative.