Alwaly/wolof_asr_bg
Viewer • Updated • 81.4k • 44
How to use sokho2/mms-300m-wolof with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("automatic-speech-recognition", model="sokho2/mms-300m-wolof") # Load model directly
from transformers import AutoProcessor, AutoModelForCTC
processor = AutoProcessor.from_pretrained("sokho2/mms-300m-wolof")
model = AutoModelForCTC.from_pretrained("sokho2/mms-300m-wolof")Fine-tuned facebook/mms-300m for Wolof (Wolof: wol) automatic speech recognition using CTC.
| Metric | Value |
|---|---|
| WER | 13.64% |
| CER | 4.51% |
| RTF | 263x |
on ALFFA Wolof + Google FLEURS
facebook/mms-300m| Dataset | Samples | Text Column |
|---|---|---|
Or4kool/wolof_speech_dataset |
~9,260 (filtered) | text |
Alwaly/wolof_asr_bg |
~81,361 | transcription |
(data augmentation) |
~72,863 | transcription |
| Total | ~163K |
<pad> (index 0)find_unused_parameters=True for frozen feature encoder compatibilityfrom transformers import Wav2Vec2ForCTC, Wav2Vec2Processor
import torch
import soundfile as sf
processor = Wav2Vec2Processor.from_pretrained("sokho2/mms-300m-wolof-v001")
model = Wav2Vec2ForCTC.from_pretrained("sokho2/mms-300m-wolof-v001")
# Load audio (16kHz mono)
audio, sr = sf.read("audio.wav")
inputs = processor(audio, sampling_rate=16000, return_tensors="pt", padding=True)
with torch.no_grad():
logits = model(**inputs).logits
predicted_ids = torch.argmax(logits, dim=-1)
transcription = processor.batch_decode(predicted_ids)
print(transcription[0])
| Model | WER | CER | RTF | Params |
|---|---|---|---|---|
| sokho2/mms-300m-wolof-v001 (this model) | 13.64% | 4.51% | 263x | 300M |
| Omnilingual ASR CTC 1B | 28.01% | 7.45% | 163x | 1B |
| bilalfaye/wav2vec2-large-mms-1b-wolof | 29.00% | 8.60% | 138x | 1B |
| vonewman/wav2vec2-large-mms-1b-wolof | 32.15% | 8.94% | 140x | 1B |
| M9and2M/marone_wolof_wav2vec2-xls-r-300m | 39.11% | 21.77% | 264x | 300M |
| BenDaouda/wav2vec2-large-xls-wolof-asr | 41.31% | 14.70% | 267x | 300M |
| BenDaouda/wav2vec2-large-xls-r-1b-wolof-VoiceToText | 48.08% | 15.83% | 267x | 1B |
| Or4kool/mms_300m_wolof_stt | 72.19% | 35.61% | 267x | 300M |
| kingabzpro/wav2vec2-large-xlsr-53-wolof | 96.93% | 53.47% | 271x | 300M |
Evaluated on 2,337 samples from ALFFA Wolof (dev + test) + Google FLEURS Wolof (wo_sn) test set.
CC-BY-NC-4.0 (following the base MMS model license)
@misc{sokho2-mms-300m-wolof,
author = {Sokho2},
title = {MMS-300M Wolof ASR},
year = {2026},
url = {https://huggingface.co/sokho2/mms-300m-wolof}
}
Base model
facebook/mms-300m