Views
No views yet
facebook/mms-300m on the
WAXAL Ethiopian subset
covering Amharic, Tigrinya, Oromo, Sidaama and Wolaytta.| Language | WER (%) |
|---|---|
| Amharic | 30.85 |
| Oromo | 26.64 |
| Sidaama | 31.08 |
| Tigrinya | 42.74 |
| Wolaytta | 38.21 |
| Macro avg | 33.90 |
1from transformers import AutoProcessor, AutoModelForCTC
2import torch, librosa
3
4REPO = "boazsew/Ethio-ASR-mms-300m-uf"
5processor = AutoProcessor.from_pretrained(REPO)
6model = AutoModelForCTC.from_pretrained(REPO, torch_dtype=torch.bfloat16).to("cuda").eval()
7
8# Load any 16 kHz audio
9audio, sr = librosa.load("your_audio.wav", sr=16000, mono=True)
10inputs = processor(audio, sampling_rate=16000, return_tensors="pt")
11key = "input_features" if "input_features" in inputs else "input_values"
12in_kwargs = {key: inputs[key].to("cuda", dtype=torch.bfloat16)}
13if "attention_mask" in inputs:
14 in_kwargs["attention_mask"] = inputs["attention_mask"].to("cuda")
15
16with torch.no_grad():
17 logits = model(**in_kwargs).logits
18pred_ids = logits.argmax(dim=-1)
19text = processor.batch_decode(pred_ids)[0]
20print(text) # starts with [AMH]/[TIR]/[ORM]/[WAL]/[SID] language tagfacebook/mms-300m (300M parameters)badrex/waxalNLP-ethiopic-final (~1106 h, 5 Ethiopian
languages)1@article{abdullah2026ethioasr,
2 title={Ethio-ASR: Joint Multilingual Speech Recognition and Language
3 Identification for Ethiopian Languages},
4 author={Abdullah, Badr M. and others},
5 journal={arXiv preprint arXiv:2603.23654},
6 year={2026}
7}reproduction_uf/.facebook/mms-300m license.