Views
No views yet
| Metric | Value |
|---|---|
| WER (Word Error Rate) | 29.56% |
| Test set | 500 examples |
| Training samples | 20,000 |
| Total audio | 25.6 hours |
| Mode | Full fine-tuning (964M params) |
1from transformers import Wav2Vec2ForCTC, AutoProcessor
2import torch
3import torchaudio
4
5# Load model and processor
6model_id = "Sadou/mms-1b-wolof-finetuned"
7processor = AutoProcessor.from_pretrained(model_id)
8model = Wav2Vec2ForCTC.from_pretrained(model_id)
9
10# Load audio (must be 16kHz, mono)
11waveform, sr = torchaudio.load("your_audio.wav")
12if sr != 16000:
13 waveform = torchaudio.transforms.Resample(sr, 16000)(waveform)
14if waveform.shape[0] > 1:
15 waveform = waveform.mean(dim=0, keepdim=True)
16
17# Transcribe
18inputs = processor(waveform[0].numpy(), sampling_rate=16000, return_tensors="pt")
19
20with torch.no_grad():
21 logits = model(**inputs).logits
22
23predicted_ids = torch.argmax(logits, dim=-1)
24transcription = processor.batch_decode(predicted_ids)[0]
25print(f"Transcription: {transcription}")facebook/mms-1b-all| Step | WER | Phase |
|---|---|---|
| 300 | 47.67% | Initial training |
| 900 | 38.86% | |
| 1500 | 33.35% | |
| 2100 | 30.77% | |
| 2400 | 30.11% | Plateau detected |
| 2700 | 30.56% | LR decay started |
| 3300 | 29.56% | |
| 3600 | 29.56% | Final ✅ |
1from transformers import pipeline
2
3pipe = pipeline(
4 'automatic-speech-recognition',
5 model="Sadou/mms-1b-wolof-finetuned",
6 chunk_length_s=30,
7 stride_length_s=(4, 2),
8 device=0,
9)
10
11result = pipe("long_audio.wav")
12print(result['text'])1@misc{wolof-mms-2026,
2 author = {Sadou Barry},
3 title = {MMS-1B Wolof Fine-Tuned},
4 year = {2026},
5 publisher = {HuggingFace},
6 url = {https://huggingface.co/Sadou/mms-1b-wolof-finetuned}
7}