Downloads · 30 days
677
8% of all-time downloads
RafatK/Whisper_Largev2-Swahili-Decodis_Comb_FT
Whisper_Largev2-Swahili-Decodis_Comb_FT is a automatic speech recognition model from RafatK. Use it when you need speech turned into text.
<p align="left" <a href="https://decodis.com/" <img src="https://static.wixstatic.com/media/41bde8fdfad2782d8641edb098e72f1ea10d65~mv2.png/v1/fill/w185,h50,alc,q85,usm0.661.000.01,encavif,qualityauto/41bde8fdfad2782d8…
Downloads · 30 days
677
8% of all-time downloads
All-time downloads
8K
Public
Parameters
1.5B
9.3 GB on disk
Likes
3
Public
Click a slice to open those files.
.safetensors9.3 GB · 100%
From the Hugging Face model README
This automatic speech recognition (ASR) model is trained using open multilingual datasets and a multi-domain in-house dataset to provide high-accuracy transcription for clean, read-aloud Swahili speech.
It achieves strong generalization, maintaining benchmark accuracy while improving performance on real-world test data. The model can do well for both clean and noisy audios.
<!-- **Model is Finetuned by** [DECODIS](https://www.decodis.com/) -->This model is part of a full ASR ablation study that analyzes and understands the robustness of data and in dealing with different modes and variations of data collections. 👉 View all models on GitHub
We are particularly interested in validating the conclusions we’ve observed through our ablation studies:
While benchmark datasets like FLEURS are useful for comparison, they do not fully capture the variability and challenges of real-world speech — especially for underrepresented languages like Swahili. We are inviting the community to try out these models and help assess:
Whisper is a general-purpose speech recognition model. It is trained on a large dataset of diverse audio and is also a multitasking model that can perform multilingual speech recognition, speech translation, and language identification.
from transformers import WhisperForConditionalGeneration, WhisperProcessor
from transformers import pipeline
from transformers.utils import is_flash_attn_2_available
import torch
processor = WhisperProcessor.from_pretrained("openai/whisper-large-v2")
model = WhisperForConditionalGeneration.from_pretrained("RafatK/Swahili-Whisper_Largev2-Decodis_Comb_FT", torch_dtype=torch.float16).to("cuda")
# model.generation_config.input_ids = model.generation_config.forced_decoder_ids
model.generation_config.forced_decoder_ids = None
forced_decoder_ids = processor.get_decoder_prompt_ids(language="swahili", task="transcribe")
pipe = pipeline(
"automatic-speech-recognition",
model=model,
tokenizer=processor.tokenizer, # Explicitly pass the tokenizer
feature_extractor=processor.feature_extractor, # Explicitly pass the feature extractor
chunk_length_s=15,
device=0,
model_kwargs={"attn_implementation": "flash_attention_2"} if is_flash_attn_2_available() else {"attn_implementation": "sdpa"},
generate_kwargs = {
'num_beams':5,
'max_new_tokens':440,
'early_stopping':True,
'repetition_penalty': 1.8,
'language': 'swahili',
'task': 'transcribe'
}
)
text_output = pipe("audio.wav")['text']
📊 Total Duration: ~400 hours
📁 Languages: Swahili (sw)
whisper-large-v2| Dataset | This Model | Whisper Large V2 |
|---|---|---|
| FLEURS (benchmark) | 12.41 | 39.40 |
| Decodis Test Set (Collected by DECODIS) | 39.42 | 99.98 |
📝 Please try the models and share your feedback, issues, or results via:
GitHub Issues: Submit an issue
Hugging Face Discussions: Join the conversation
Your feedback will help us refine our dataset and improve ASR for underrepresented languages like Swahili and Yoruba.