Downloads · 30 days
5
17% of all-time downloads
toniju98/whisper-physio-lora
whisper-physio-lora is a machine learning model from toniju98. 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 apache-2.0.
Fine-tuned LoRA adapter for openai/whisper-small on German physiotherapy treatment dictations.
Downloads · 30 days
5
17% of all-time downloads
All-time downloads
29
Public
Repo size
3.6 MB
Likes
0
Public
Click a slice to open those files.
.json3.9 MB · 52%
From the Hugging Face model README
Fine-tuned LoRA adapter for openai/whisper-small on German physiotherapy treatment dictations.
Evaluated on 10 held-out German physio dictations:
| Model | WER | Fachbegriff-Accuracy | Latency (GPU) |
|---|---|---|---|
| Whisper Small (baseline) | 43.0% | 80.0% | 1.3s |
| Whisper Medium (baseline) | 32.4% | 85.0% | 2.5s |
| Whisper Small + LoRA (this model) | 34.8% | 80.0% | 3.1s |
Relative WER improvement over baseline Small: 19% — approaching the quality of Whisper Medium at 1/3 the model size.
q_proj and v_projfrom transformers import WhisperProcessor, WhisperForConditionalGeneration
from peft import PeftModel
import librosa
processor = WhisperProcessor.from_pretrained("toniju98/whisper-physio-lora")
base_model = WhisperForConditionalGeneration.from_pretrained("openai/whisper-small")
model = PeftModel.from_pretrained(base_model, "toniju98/whisper-physio-lora")
audio, _ = librosa.load("dictation.wav", sr=16000)
inputs = processor(audio, sampling_rate=16000, return_tensors="pt")
predicted_ids = model.generate(inputs.input_features, language="de", task="transcribe")
transcript = processor.batch_decode(predicted_ids, skip_special_tokens=True)[0]
print(transcript)
Portfolio project by Antonio Juric (GitHub). Part of the PhysioDoc pipeline: audio → transcript → structured treatment documentation.