Downloads · 30 days
19
6% of all-time downloads
openchs/asr-whisper-largev3-finetuned
asr-whisper-largev3-finetuned is a automatic speech recognition model from openchs. Use it when you need speech turned into text. It is set up for transformers. The card lists the license as apache-2.0.
This model is a fine-tuned version of openai/whisper-large-v3 on the Mozilla Common Voice Swahili 23.0 dataset. It represents a significant improvement in Swahili transcription capabilities, leveraging the latest Whis…
Downloads · 30 days
19
6% of all-time downloads
All-time downloads
299
Public
Parameters
1.5B
111 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors6.2 GB · 100%
From the Hugging Face model README
This model is a fine-tuned version of openai/whisper-large-v3 on the Mozilla Common Voice Swahili 23.0 dataset. It represents a significant improvement in Swahili transcription capabilities, leveraging the latest Whisper architecture (v3) which includes additional language tokens and improved architectural features over v2.
This model specifically targets Swahili (Kiswahili) speech recognition. By fine-tuning the massive whisper-large-v3 checkpoint on the Common Voice 23.0 dataset, this model adapts the general multilingual capabilities of Whisper to the specific acoustic and linguistic characteristics of standard Swahili.
Key Highlights:
Note: The model name suggests "helpline" usage, but this specific version is trained on Common Voice (read speech). It serves as a strong general-purpose baseline before domain adaptation to telephony/helpline audio.
Dataset: Mozilla Common Voice 23.0 (Swahili)
Common Voice is a crowdsourced dataset where volunteers record sample sentences.
The model was fine-tuned using the Hugging Face Seq2SeqTrainer.
betas=(0.9,0.999), epsilon=1e-08)| Epoch | Step | Training Loss | Validation Loss | WER | Status |
|---|---|---|---|---|---|
| 0.02 | 500 | 0.5310 | 0.6190 | 41.31% | Warmup |
| 1.00 | 3000 | 0.3316 | 0.3876 | 30.24% | Improving |
| 2.00 | 6000 | 0.1993 | 0.3512 | 25.53% | Strong performance |
| 2.03 | 6500 | 0.1393 | 0.3486 | 24.74% | ✅ Best Checkpoint |
| 2.06 | 7000 | 0.1035 | 0.3477 | 24.86% | Stable |
| 2.08 | 7500 | 0.1905 | 0.4069 🔺 | 28.92% | Overfitting begins |
| 3.01 | 9000 | 0.2348 | 0.3681 | 26.64% | Final Step |
Analysis: The model reached peak performance at Step 6,500 with a WER of 24.74% and Validation Loss of 0.3486. Subsequent steps (7,500+) show an increase in validation loss and WER, indicating the model began to overfit to the training data. Users are advised to load the model state from step 6,500 if available, or utilize the final model with awareness of this slight degradation.
from transformers import pipeline
# Load the pipeline
pipe = pipeline("automatic-speech-recognition", model="your-username/asr-whisper-large-v3-helpline")
# Transcribe
# ensure you force the language to Swahili for best results
result = pipe("audio.mp3", generate_kwargs={"language": "swahili"})
print(result["text"])
from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq
import torch
import librosa
# Load Model
model_id = "your-username/asr-whisper-large-v3-helpline"
device = "cuda" if torch.cuda.is_available() else "cpu"
torch_dtype = torch.float16 if torch.cuda.is_available() else torch.float32
model = AutoModelForSpeechSeq2Seq.from_pretrained(
model_id, torch_dtype=torch_dtype, low_cpu_mem_usage=True, use_safetensors=True
)
model.to(device)
processor = AutoProcessor.from_pretrained(model_id)
# Load Audio
audio, sr = librosa.load("sample_swahili.wav", sr=16000)
# Process
inputs = processor(audio, sampling_rate=16000, return_tensors="pt").to(device)
input_features = inputs.input_features
# Generate
generated_ids = model.generate(input_features, language="swahili")
transcription = processor.batch_decode(generated_ids, skip_special_tokens=True)[0]
print(transcription)