Downloads · 30 days
10
19% of all-time downloads
nickdee96/mms-1b-kik-accelerate-2multi
mms-1b-kik-accelerate-2multi is a automatic speech recognition model from nickdee96. Use it when you need speech turned into text. The card lists the license as apache-2.0.
This model is a fine-tuned version of Facebook's MMS (Massively Multilingual Speech) 1B parameter model, specifically adapted for Kikuyu (Gĩkũyũ) automatic speech recognition. The model uses language adapters to effic…
Downloads · 30 days
10
19% of all-time downloads
All-time downloads
53
Public
Parameters
965M
3.9 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors3.9 GB · 100%
From the Hugging Face model README
This model is a fine-tuned version of Facebook's MMS (Massively Multilingual Speech) 1B parameter model, specifically adapted for Kikuyu (Gĩkũyũ) automatic speech recognition. The model uses language adapters to efficiently fine-tune the pre-trained MMS model for the Kikuyu language, achieving a Word Error Rate (WER) of 35.74% on the test set.
facebook/mms-1b-allki)The model was trained on the Kenyan Audio Datasets Kikuyu subset:
The model uses a character-level vocabulary specifically designed for Kikuyu, containing 24 tokens:
Characters: a, b, c, d, e, f, g, h, i, j, k, m, n, o, r, t, u, w, y, ĩ, ũ
Special tokens: [PAD], [UNK], | (word separator)
The model showed consistent improvement during training:
from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor
import torch
import soundfile as sf
# Load model and processor
model = Wav2Vec2ForCTC.from_pretrained("nickdee96/mms-1b-kik-accelerate-2multi")
processor = Wav2Vec2Processor.from_pretrained("nickdee96/mms-1b-kik-accelerate-2multi")
# Load audio file (16kHz)
audio, sr = sf.read("kikuyu_audio.wav")
# Process audio
inputs = processor(audio, sampling_rate=16000, return_tensors="pt", padding=True)
# Generate transcription
with torch.no_grad():
logits = model(inputs.input_values).logits
# Decode prediction
predicted_ids = torch.argmax(logits, dim=-1)
transcription = processor.batch_decode(predicted_ids)[0]
print(f"Transcription: {transcription}")
from transformers import pipeline
# Initialize ASR pipeline
asr = pipeline("automatic-speech-recognition",
model="nickdee96/mms-1b-kik-accelerate-2multi")
# Transcribe audio
result = asr("kikuyu_audio.wav")
print(result["text"])
The model leverages the MMS (Massively Multilingual Speech) architecture with:
@misc{kikuyu-asr-2024,
title={MMS 1B Kikuyu ASR Model},
author={Kikuyu ASR Team},
year={2024},
publisher={Hugging Face},
journal={Hugging Face Model Hub},
howpublished={\url{https://huggingface.co/nickdee96/mms-1b-kik-accelerate-2multi}}
}
This model is released under the Apache 2.0 license, following the base MMS model licensing.
For questions or issues with this model, please open an issue in the repository or contact the model authors.