Downloads · 30 days
32
7% of all-time downloads
UmarRamzan/w2v2-bert-urdu
w2v2-bert-urdu is a automatic speech recognition model from UmarRamzan. Use it when you need speech turned into text. It is set up for transformers. The card lists the license as mit.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
32
7% of all-time downloads
All-time downloads
491
Public
Parameters
606M
70.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.4 GB · 100%
From the Hugging Face model README
This model is a fine-tuned version of facebook/w2v-bert-2.0 on the Urdu split of the Common Voice 17 dataset. It achieves the following results on the evaluation set:
from transformers import AutoFeatureExtractor, Wav2Vec2BertModel
import torch
from datasets import load_dataset
dataset = load_dataset("hf-internal-testing/librispeech_asr_demo", "clean", split="validation")
dataset = dataset.sort("id")
sampling_rate = dataset.features["audio"].sampling_rate
processor = AutoProcessor.from_pretrained("UmarRamzan/w2v2-bert-urdu")
model = Wav2Vec2BertModel.from_pretrained("UmarRamzan/w2v2-bert-urdu")
# audio file is decoded on the fly
inputs = processor(dataset[0]["audio"]["array"], sampling_rate=sampling_rate, return_tensors="pt")
with torch.no_grad():
outputs = model(**inputs)
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Wer |
|---|---|---|---|---|
| 0.4362 | 0.1695 | 50 | 0.4144 | 0.3213 |
| 0.3776 | 0.3390 | 100 | 0.4029 | 0.3137 |
| 0.3918 | 0.5085 | 150 | 0.4095 | 0.3060 |
| 0.3968 | 0.6780 | 200 | 0.3961 | 0.3060 |
| 0.3685 | 0.8475 | 250 | 0.3681 | 0.2929 |