Instructions to use benax-rw/KinyaWhisper with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use benax-rw/KinyaWhisper with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="benax-rw/KinyaWhisper")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq processor = AutoProcessor.from_pretrained("benax-rw/KinyaWhisper") model = AutoModelForSpeechSeq2Seq.from_pretrained("benax-rw/KinyaWhisper", device_map="auto") - Notebooks
- Google Colab
- Kaggle
π£οΈ KinyaWhisper
KinyaWhisper is a fine-tuned version of OpenAIβs Whisper model for automatic speech recognition (ASR) in Kinyarwanda. It was trained on 102 manually labeled .wav files and serves as a reproducible baseline for speech recognition in low-resource, indigenous languages.
π§ Usage
To run inference on your own audio files using the fine-tuned KinyaWhisper model:
from transformers import WhisperProcessor, WhisperForConditionalGeneration
import torchaudio
# Load fine-tuned KinyaWhisper model and processor from Hugging Face
model = WhisperForConditionalGeneration.from_pretrained("benax-rw/KinyaWhisper")
processor = WhisperProcessor.from_pretrained("benax-rw/KinyaWhisper")
# Load and preprocess audio
waveform, sample_rate = torchaudio.load("your_audio.wav")
inputs = processor(waveform.squeeze(), sampling_rate=sample_rate, return_tensors="pt")
# Generate prediction
predicted_ids = model.generate(inputs["input_features"])
transcription = processor.batch_decode(predicted_ids, skip_special_tokens=True)[0]
print("π£οΈ Transcription:", transcription)
ποΈ Taining Details
β’ Model: openai/whisper-small β’ Epochs: 80 β’ Batch size: 4 β’ Learning rate: 1e-5 β’ Optimizer: Adam β’ Final loss: 0.00024 β’ WER: 51.85%
β οΈLimitations
The model was trained on a small dataset (102 samples). It performs best on short, clear Kinyarwanda utterances and may struggle with longer or noisy audio. This is an early-stage educational model, not yet suitable for production use.
π Citation
If you use this model, please cite:
@misc{baziramwabo2025kinyawhisper,
author = {Gabriel Baziramwabo},
title = {KinyaWhisper: Fine-Tuning Whisper for Kinyarwanda ASR},
year = {2025},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/benax-rw/KinyaWhisper}},
note = {Version 1.0}
}
π¬ Contact
Maintained by Gabriel Baziramwabo. βοΈ gabriel@benax.rw π https://benax.rw
- Downloads last month
- 5
Model tree for benax-rw/KinyaWhisper
Base model
openai/whisper-smallDataset used to train benax-rw/KinyaWhisper
Space using benax-rw/KinyaWhisper 1
Evaluation results
- WER on KinyaWhisper Custom Datasetself-reported51.850