Views
No views yet
facebook/w2v-bert-2.0 on the
WAXAL Ethiopian subset
covering Amharic, Tigrinya, Oromo, Sidaama and Wolaytta.| Language | WER (%) |
|---|---|
| Amharic | 25.44 |
| Oromo | 27.52 |
| Sidaama | 30.33 |
| Tigrinya | 39.75 |
| Wolaytta | 38.29 |
| Macro avg | 32.27 |
1from transformers import AutoProcessor, AutoModelForCTC
2import torch, librosa
3
4REPO = "boazsew/Ethio-ASR-w2v-bert-2.0-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/w2v-bert-2.0 (600M 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/w2v-bert-2.0 license.