Downloads · 30 days
8
2% of all-time downloads
RafatK/Whisper_Largev2-Yoruba-Decodis_Base
Whisper_Largev2-Yoruba-Decodis_Base 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
8
2% of all-time downloads
All-time downloads
321
Public
Parameters
1.5B
6.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors6.2 GB · 100%
From the Hugging Face model README
This automatic speech recognition (ASR) model is trained using three open multilingual datasets to provide high-accuracy transcription for clean, read-aloud Yoruba speech.
It is ideal for tasks involving clean and well-structured and clean speech input, such as reading assistants, or general-purpose multilingual transcription.
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 and Yoruba. 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
processor = WhisperProcessor.from_pretrained("openai/whisper-large-v2")
model = WhisperForConditionalGeneration.from_pretrained("RafatK/Whisper_Largev2-Yoruba-Decodis_Base", 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,
processor = "openai/whisper-large-v2",
tokenizer = "openai/whisper-large-v2",
feature_extractor = "openai/whisper-large-v2",
chunk_length_s=15,
device=device,
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,
'language': 'english',
'task': 'transcribe'
}
)
text_output = pipe("audio.wav")['text']
📊 Total Duration: ~40 hours
📁 Languages: Yoruba (yo)
whisper-large-v2| Dataset | This Model | Whisper Large V2 |
|---|---|---|
| FLEURS (benchmark) | 26.18 | No-info |
| Our test set | 81.29 | no-info |
This model performs best in:
Not recommended for real-world noisy conditions without domain adaptation.
📝 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.