Downloads · 30 days
13
22% of all-time downloads
safaewardi/whisper-medium-finetuned
whisper-medium-finetuned is a machine learning model from safaewardi. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
Version fine-tunée de openai/whisper-medium pour améliorer la robustesse face aux perturbations acoustiques (réverbération, bruit additif).
Downloads · 30 days
13
22% of all-time downloads
All-time downloads
59
Public
Parameters
764M
13.8 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors6.1 GB · 80%
From the Hugging Face model README
Version fine-tunée de openai/whisper-medium pour améliorer la robustesse
face aux perturbations acoustiques (réverbération, bruit additif).
Ce modèle a été fine-tuné sur 1800 échantillons ciblés pour corriger les hallucinations et améliorer la robustesse de whisper-medium face aux :
Le fine-tuning ciblé a permis de réduire le WER de 70 % sur ces conditions difficiles, sans dégrader les performances baseline.
| Langue | Original | Fine-tuné | Amélioration |
|---|---|---|---|
| 🇬🇧 EN | 0.167 | 0.046 | -72 % ✅ |
| 🇫🇷 FR | 0.509 | 0.137 | -73 % ✅ |
| 🇸🇦 AR | 0.494 | 0.171 | -65 % ✅ |
| Global | 0.322 | 0.095 | -70 % ✅ |
| Cas | Avant | Après |
|---|---|---|
| fr_052 (reverb 0.5) | Merci. | Transcription complète ✅ |
| fr_064 (reverb 0.5) | Merci. | Transcription complète ✅ |
| fr_066 (reverb 0.5) | Merci. | Partiellement corrigé |
| fr_097 (reverb 0.5) | Merci. | 90 % correct ✅ |
| Modèle | WER | Hallucinations |
|---|---|---|
| whisper-medium (original) | 0.114 | 5 |
| whisper-medium (fine-tuné) | 0.095 ✅ | 3 ✅ |
| whisper-large-v3 | 0.080 | 237 ⚠️ |
Le modèle fine-tuné est le meilleur compromis performance/fiabilité.
from transformers import WhisperProcessor, WhisperForConditionalGeneration
import soundfile as sf
import librosa
# Charger le modèle
processor = WhisperProcessor.from_pretrained("safaewardi/whisper-medium-finetuned")
model = WhisperForConditionalGeneration.from_pretrained("safaewardi/whisper-medium-finetuned")
# Charger un audio
audio, sr = sf.read("audio.wav")
if audio.ndim > 1:
audio = audio.mean(axis=1)
if sr != 16000:
audio = librosa.resample(audio.astype("float32"), orig_sr=sr, target_sr=16000)
# Transcrire
inputs = processor(audio, sampling_rate=16000, return_tensors="pt")
with torch.no_grad():
ids = model.generate(**inputs, language="fr", task="transcribe", max_new_tokens=225)
transcription = processor.batch_decode(ids, skip_special_tokens=True)[0]
print(transcription)
| Paramètre | Valeur |
|---|---|
| Méthode | Full fine-tuning |
| Learning rate | 1e-5 |
| Batch size | 1 (× 16 accumulation) |
| Epochs | 2 |
| Optimizer | AdamW 8-bit |
| Gradient checkpointing | Oui |
| FP16 | Oui |
| Durée | 38 min sur Tesla T4 |
| Loss finale | 0.31 (vs 5.83 initial) |
@misc{wardi2026whisper,
title={Robustesse des Speech-LLMs face aux perturbations acoustiques et aux variations linguistiques},
author={Wardi, Safae},
year={2026},
howpublished={\url{https://github.com/WardiSafae/speech-llm-robustness}}
}
Auteur : Safae Wardi — Master Big Data et Systèmes Intelligents, USMBA Fès