Downloads · 30 days
5
12% of all-time downloads
Enochid/abo-yoruba-llama-3.2-3b
abo-yoruba-llama-3.2-3b is a text generation model from Enochid. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as cc-by-nc-4.0.
A LoRA fine-tune of Llama-3.2-3B-Instruct adapted for Yorùbá, trained with Adaption AutoScientist on a 100% human-sourced, contamination-proof corpus (see the dataset card). Built for the AutoScientist challenge — lan…
Downloads · 30 days
5
12% of all-time downloads
All-time downloads
41
Public
Repo size
212 MB
Likes
0
Public
Click a slice to open those files.
.safetensors195 MB · 92%
From the Hugging Face model README
A LoRA fine-tune of Llama-3.2-3B-Instruct adapted for Yorùbá, trained with Adaption AutoScientist on a 100% human-sourced, contamination-proof corpus (see the dataset card). Built for the AutoScientist challenge — language track.
On 100 held-out examples from the task distribution, judged by Gemini 3.1 Pro (win rate vs. the base model):
| Metric | Base | Adapted |
|---|---|---|
| Win rate on held-out Yorùbá tasks | 30 | 71 |
Honest trade-off: on a broader multi-language benchmark the win rate went the other way (≈57 → 43). The model specialized into Yorùbá at the cost of general multilingual breadth — expected for a Yorùbá-track adaptation, and worth stating plainly.
train_on_inputs=false.a7116920… (byte-identical to the released dataset — this guarantees the released dataset is what the model trained on).Research and non-commercial use for Yorùbá NLP: diacritics restoration, formal translation, and Yorùbá QA. It is a specialist, not a general chat assistant.
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base = "meta-llama/Llama-3.2-3B-Instruct" # or an equivalent mirror
tok = AutoTokenizer.from_pretrained("<this-repo>")
model = PeftModel.from_pretrained(AutoModelForCausalLM.from_pretrained(base), "<this-repo>")
msg = [{"role": "user", "content": "Restore the correct Yoruba diacritics (tone marks and dots) in this text:\n\nBawo ni, se alaafia ni?"}]
ids = tok.apply_chat_template(msg, add_generation_prompt=True, return_tensors="pt", return_dict=True)
print(tok.decode(model.generate(**ids, max_new_tokens=120, repetition_penalty=1.3, no_repeat_ngram_size=3)[0][ids["input_ids"].shape[1]:], skip_special_tokens=True))
CC-BY-NC-4.0 (inherits the dataset's most restrictive source term). Base model under the Llama 3.2 Community License.