Downloads · 30 days
5
100% of all-time downloads
ogaufi/whisper-small-tn-lora
whisper-small-tn-lora is a machine learning model from ogaufi. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This model is a fine-tuned version of openai/whisper-small on the Setswana (tn) Common Voice dataset. It was optimized specifically for high-accuracy Speech-to-Text (ASR) as part of the PuoSpeaker project.
Downloads · 30 days
5
100% of all-time downloads
All-time downloads
5
Public
Repo size
128 MB
Likes
0
Public
Click a slice to open those files.
.pt56.7 MB · 67%
From the Hugging Face model README
This model is a fine-tuned version of openai/whisper-small on the Setswana (tn) Common Voice dataset. It was optimized specifically for high-accuracy Speech-to-Text (ASR) as part of the PuoSpeaker project.
The model shows exceptional performance in capturing Setswana phonetics, tone, and rhythm.
While the ASR is state-of-the-art, the current Text-to-Speech (TTS) integration (XTTS-v2) is in a prototype stage.
from transformers import WhisperProcessor, WhisperForConditionalGeneration
from peft import PeftModel
import torch
base_model = "openai/whisper-small"
adapter_model = "ogaufi/whisper-small-tn-lora-v2" # Recommended 5k checkpoint
processor = WhisperProcessor.from_pretrained(base_model)
model = WhisperForConditionalGeneration.from_pretrained(base_model)
model = PeftModel.from_pretrained(model, adapter_model)
# Standard Whisper inference pipeline follows...
Trained on the Common Voice Setswana corpus, specifically focusing on the validated split to ensure high-quality linguistic grounding.