Downloads · 30 days
3
5% of all-time downloads
WernL/whisper-afrikaans-whisper_training_1756041291
whisper-afrikaans-whisper_training_1756041291 is a automatic speech recognition model from WernL. Use it when you need speech turned into text. It is set up for peft. The card lists the license as apache-2.0.
This is a LoRA (Low-Rank Adaptation) adapter for openai/whisper-large-v3 fine-tuned on Afrikaans speech data.
Downloads · 30 days
3
5% of all-time downloads
All-time downloads
66
Public
Repo size
329 KB
Likes
1
Public
Click a slice to open those files.
.safetensors329 KB · 98%
From the Hugging Face model README
This is a LoRA (Low-Rank Adaptation) adapter for openai/whisper-large-v3 fine-tuned on Afrikaans speech data.
This model requires the peft library to load the LoRA adapter weights:
from transformers import WhisperProcessor, WhisperForConditionalGeneration
from peft import PeftModel
import torch
# Load base model and processor
base_model_name = "openai/whisper-large-v3"
processor = WhisperProcessor.from_pretrained(base_model_name)
base_model = WhisperForConditionalGeneration.from_pretrained(base_model_name)
# Load LoRA adapter
model = PeftModel.from_pretrained(base_model, "WernL/whisper-afrikaans-whisper_training_1756041291")
# Load audio
import librosa
audio, sr = librosa.load("path_to_audio.wav", sr=16000)
# Process
input_features = processor(audio, sampling_rate=16000, return_tensors="pt").input_features
predicted_ids = model.generate(input_features)
transcription = processor.batch_decode(predicted_ids, skip_special_tokens=True)
print(transcription[0])
from transformers import pipeline
# This may work if the adapter is properly configured
pipe = pipeline("automatic-speech-recognition", model="WernL/whisper-afrikaans-whisper_training_1756041291")
result = pipe("path_to_audio.wav")
print(result["text"])
Final training metrics:
This model was trained using the Whisper Training App.