w2v-BERT 2.0 for Kinyarwanda speech, fine-tuned on stuttered speech

badrex/w2v-bert-2.0-kinyarwanda-asr (w2v-BERT 2.0 with a CTC head, about 600 million parameters, trained on about 1,000 hours of Kinyarwanda) fine-tuned on the CDLI non-standard speech dataset, whose speakers are mostly young adults who stutter.

It is a CTC (connectionist temporal classification) model: it decodes in one pass, so it cannot get stuck in repetition loops. It writes lower-case Kinyarwanda letters, spaces and apostrophes, with no punctuation. The weights are 2.3 GB (fp32).

This is the model behind the best result of our project on low-cost Kinyarwanda speech recognition for people who stutter (Rwanda Innovation Sprint, run by CDLI). The repository name says "3ep", but the run was set to 5 epochs with early stopping, and the weights here are the best checkpoint (step 1,250, epoch 1.7).

How to use

import soundfile as sf
import torch
from transformers import AutoProcessor, Wav2Vec2BertForCTC

repo = "oluwagbotty/w2vbert-ky-ft-3ep"
processor, model = AutoProcessor.from_pretrained(repo), Wav2Vec2BertForCTC.from_pretrained(repo).eval()
audio, rate = sf.read("clip_16khz_mono.wav")  # 16 kHz, mono
inputs = processor(audio, sampling_rate=16000, return_tensors="pt")
with torch.no_grad():
    logits = model(**inputs).logits
print(processor.batch_decode(logits.argmax(-1))[0])

Results

Test split of the CDLI Kinyarwanda dataset, 1,169 recordings from 9 speakers, greedy decoding. We score the way the CDLI model cards do: apostrophes are removed and the words joined, then Whisper's basic text normaliser is applied. Pooled WER counts all words together. Per-utterance WER is the average of the WER of each recording (capped at 100%).

Model Parameters Pooled WER (%) Per-utterance WER (%) CER (%) Loops
This model 0.6B 38.7 40.6 11.7 0
The same model before fine-tuning 0.6B 46.4 51.2 14.6 0
NeMo Conformer-CTC, our fine-tune 0.12B 39.7 41.0 13.0 0
CDLI Whisper large-v3 (loops fixed) 1.55B 39.9 38.4 13.7 17 fixed
CDLI Whisper small (loops fixed) 0.24B 47.6 45.2 17.5 17 fixed
  • Across the 9 test speakers, this model minus its zero-shot version is -7.7 pooled WER points (95% interval -15.1 to -3.5), so fine-tuning helped clearly. Minus Whisper large is -1.2 (-3.8 to +2.6), so they are on par. Minus Whisper small is -8.9 (-11.9 to -4.3). Compared with our one-epoch fine-tune it is -1.1 (-2.6 to +0.2), probably a small real gain. We did not compute intervals for CER or per-utterance WER.
  • With plain scoring (no apostrophe step): WER 41.2, CER 12.2, per-utterance WER 42.8. Text prompts (read sentences) 40.4, picture prompts (free descriptions) 41.4.
  • Per-utterance WER by severity group, averaged per speaker (3 speakers each, do not over-read): mild 39.4, moderate 40.1, severe 42.2.
  • Validation split (6 speakers, used to choose the checkpoint): WER 41.3% (plain scoring) at the chosen checkpoint.

Speed (Apple M1 Pro CPU, 10 recordings of 15 s on average, fp32). 6.7 s per recording with 10 threads and 8.9 s with 2 threads (real-time factor 0.55 and 0.65). Dynamic int8 quantisation of the linear layers reduces the weights to 0.8 GB and gave pooled WER +0.5 points (not a significant change, 200 test recordings), but it is only faster with many threads. This model is much slower on a CPU than the smaller NeMo model above.

Training

  • Starting point: badrex/w2v-bert-2.0-kinyarwanda-asr. Train split only. Dev split for choosing the checkpoint.
  • AdamW, learning rate 2e-5, linear schedule with 10% warm-up, effective batch size 16 (2 per GPU, 2 GPUs, 4 accumulation steps), mixed precision. Set to 5 epochs, evaluated every 250 steps, stopped early after 4 evaluations without improvement. Best dev WER 41.28% at step 1,250.
  • Targets were lower-cased and reduced to the model's characters. Stutter repetitions were kept.

Data and attribution

Data sourced from the CDLI Non-Standard Speech Dataset, Centre for Digital Language Inclusion, UCL, 2025. This project was funded by UK International Development through the AT2030 Programme with support from Google.org.

The model was fine-tuned on the train split of the CDLI Rwandan Kinyarwanda non-standard speech dataset v1.0 (access is gated; accept the CDLI terms and conditions there). The dataset is not included in this repository and cannot be shared from it.

  • Train: 11,536 recordings from 46 speakers (47.7 hours). The speakers are mostly young adults. Most of them stutter, and a few have other speech differences.
  • The dev split (6 speakers) was used only to choose the checkpoint. The test split (9 speakers) was scored once, after training.
  • The extra split was never used.
  • No speaker is in both train and dev or test.
  • The audio was recorded in Rwanda in 2026, indoors with low noise, on a tablet app, from picture prompts (free descriptions) and text prompts (sentences that the speaker reads).

Limitations and risks

  • Few test speakers. The test split has 9 speakers (3 mild, 3 moderate, 3 severe). A difference of less than about 3 WER points between two models cannot be confirmed with this many speakers. Each speaker group in the tables has only 3 speakers, so do not read conclusions from them.
  • Verbatim output. The training transcripts are verbatim, so the model often writes repetitions as they were said (for example "mu mu mu mwaka"). Blocks and prolongations are not visible in text. If you need the fluent sentence, clean the text after decoding.
  • Spelling and spacing. The transcripts use competing spelling and word-spacing conventions (for example "uyumunsi" and "uyu munsi"). About two thirds of the word errors are spelling or spacing variants, so WER overstates the difficulty and CER is the fairer number.
  • Speakers and conditions. The data is mostly young adults (18 to 30), mostly male (44 of the 61 speakers in the full dataset), recorded indoors with low noise. Performance on children, older speakers, other dialects, noisy places or phone audio is not known. Whispered speech is not covered.
  • Long clips. About a quarter of the recordings stop at about 25 seconds because of an app limit, so speech may be cut off in the data.
  • Prompt type. Sentences that speakers read in the text prompts also appear in the train transcripts, so text-prompt results are easier than free speech. Picture-prompt results are the better guide for open speech.
  • Not for decisions about people. This model must not be used to diagnose or assess any speech condition, or for legal, law enforcement or clinical decisions. It must not be used to identify speakers or to profile or monitor people. The CDLI terms and conditions forbid re-identifying speakers, building voices that mimic a speaker, and training models that promote exclusion or harm.
  • Errors can hurt. A wrong transcript can change the meaning of what a person said. Show the text to the speaker so that they can check it, and do not act on it automatically.

Citation

If you use this model, please also cite the dataset:

@misc{cdli_speech_2026,
  author = {Centre for Digital Language Inclusion (CDLI), a project of UCL's (University College London's) GDI Hub (Global Disability Innovation Hub)},
  title = {CDLI Non-Standard Speech Datasets},
  year = {2026},
  url = {https://huggingface.co/cdli/datasets}
}
Downloads last month
40
Safetensors
Model size
0.6B params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for oluwagbotty/w2vbert-ky-ft-3ep

Finetuned
(5)
this model

Dataset used to train oluwagbotty/w2vbert-ky-ft-3ep