Downloads · 30 days
13
22% of all-time downloads
denzelchingodza/muzezuru
muzezuru is a machine learning model from denzelchingodza. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as other.
A LoRA adapter fine-tuning bigscience/bloomz-3b toward fluent Shona conversation. Built on free-tier compute (Google Colab / Kaggle) with no budget, as an exploration of fine-tuning a capable base model on a low-resou…
Downloads · 30 days
13
22% of all-time downloads
All-time downloads
60
Public
Repo size
100 MB
Likes
0
Public
Click a slice to open those files.
.safetensors78.7 MB · 78%
From the Hugging Face model README
A LoRA adapter fine-tuning bigscience/bloomz-3b toward fluent Shona conversation. Built on free-tier compute (Google Colab / Kaggle) with no budget, as an exploration of fine-tuning a capable base model on a low-resource language.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_model_name = "bigscience/bloomz-3b"
adapter_repo = "REPLACE_WITH_YOUR_USERNAME/muzezuru"
tokenizer = AutoTokenizer.from_pretrained(adapter_repo)
base_model = AutoModelForCausalLM.from_pretrained(base_model_name, torch_dtype=torch.bfloat16)
model = PeftModel.from_pretrained(base_model, adapter_repo)
prompt = "### Instruction (Mirayiro):\nMhoro, wakadini?\n\n### Response (Mhinduro):\n"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=100, repetition_penalty=1.3, no_repeat_ngram_size=3)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))
Evaluated across 15 prompts spanning greetings, factual questions, conceptual questions, instructions, code-switching, opinions, and casual conversation. Summary:
This is a research/portfolio project reflecting what is achievable fine-tuning a multi-billion-parameter model on a genuinely low-resource language using entirely free compute — not a production-ready assistant.
alpaca_shona_taco) is CC BY-NC (non-commercial/research use only). This adapter is released for research/portfolio purposes accordingly; commercial use would require retraining on differently-licensed data.