anuragshas_wav2vec2-large-xlsr-53-telugu
anuragshas · View on Hugging Face ↗
Model card
The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.
language: te datasets:
- openslr metrics:
- wer tags:
- audio
- automatic-speech-recognition
- speech
- xlsr-fine-tuning-week license: apache-2.0 model-index:
- name: Anurag Singh XLSR Wav2Vec2 Large 53 Telugu
results:
- task:
name: Speech Recognition
type: automatic-speech-recognition
dataset:
name: OpenSLR te
type: openslr
args: te
metrics:
- name: Test WER type: wer value: 44.98
- task:
name: Speech Recognition
type: automatic-speech-recognition
dataset:
name: OpenSLR te
type: openslr
args: te
metrics:
Wav2Vec2-Large-XLSR-53-Telugu
Fine-tuned facebook/wav2vec2-large-xlsr-53 on Telugu using the OpenSLR SLR66 dataset. When using this model, make sure that your speech input is sampled at 16kHz.
Usage
The model can be used directly (without a language model) as follows:
import torch
import torchaudio
from datasets import load_dataset
from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor
import pandas as pd
# Evaluation notebook contains the procedure to download the data
df = pd.read_csv("/content/te/test.tsv", sep="\t")
df["path"] = "/content/te/clips/" + df["path"]
test_dataset = Dataset.from_pandas(df)
processor = Wav2Vec2Processor.from_pretrained("anuragshas/wav2vec2-large-xlsr-53-telugu")
model = Wav2Vec2ForCTC.from_pretrained("anuragshas/wav2vec2-large-xlsr-53-telugu")
resampler = torchaudio.transforms.Resample(48_000, 16_000)
# Preprocessing the datasets.
# We need to read the aduio files as arrays
def speech_file_to_array_fn(batch):
speech_array, sampling_rate = torchaudio.load(batch["path"])
batch["speech"] = resampler(speech_array).squeeze().numpy()
return batch
test_dataset = test_dataset.map(speech_file_to_array_fn)
inputs = processor(test_dataset["speech"][:2], sampling_rate=16_000, return_tensors="pt", padding=True)
with torch.no_grad():
logits = model(inputs.input_values, attention_mask=inputs.attention_mask).logits
predicted_ids = torch.argmax(logits, dim=-1)
print("Prediction:", processor.batch_decode(predicted_ids))
print("Reference:", test_dataset["sentence"][:2])
Evaluation
import torch
import torchaudio
from datasets import Dataset, load_metric
from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor
import re
from sklearn.model_selection import train_test_split
import pandas as pd
# Evaluation notebook contains the procedure to download the data
df = pd.read_csv("/content/te/test.tsv", sep="\t")
df["path"] = "/content/te/clips/" + df["path"]
test_dataset = Dataset.from_pandas(df)
wer = load_metric("wer")
processor = Wav2Vec2Processor.from_pretrained("anuragshas/wav2vec2-large-xlsr-53-telugu")
model = Wav2Vec2ForCTC.from_pretrained("anuragshas/wav2vec2-large-xlsr-53-telugu")
model.to("cuda")
chars_to_ignore_regex = '[\,\?\.\!\-\_\;\:\"\“\%\‘\”\।\’\'\&]'
resampler = torchaudio.transforms.Resample(48_000, 16_000)
def normalizer(text):
# Use your custom normalizer
text = text.replace("\\n","\n")
text = ' '.join(text.split())
text = re.sub(r'''([a-z]+)''','',text,flags=re.IGNORECASE)
text = re.sub(r'''%'''," శాతం ", text)
text = re.sub(r'''(/|-|_)'''," ", text)
text = re.sub("ై","ై", text)
text = text.strip()
return text
def speech_file_to_array_fn(batch):
batch["sentence"] = normalizer(batch["sentence"])
batch["sentence"] = re.sub(chars_to_ignore_regex, '', batch["sentence"]).lower()+ " "
speech_array, sampling_rate = torchaudio.load(batch["path"])
batch["speech"] = resampler(speech_array).squeeze().numpy()
return batch
test_dataset = test_dataset.map(speech_file_to_array_fn)
# Preprocessing the datasets.
# We need to read the aduio files as arrays
def evaluate(batch):
inputs = processor(batch["speech"], sampling_rate=16_000, return_tensors="pt", padding=True)
with torch.no_grad():
logits = model(inputs.input_values.to("cuda"), attention_mask=inputs.attention_mask.to("cuda")).logits
pred_ids = torch.argmax(logits, dim=-1)
batch["pred_strings"] = processor.batch_decode(pred_ids)
return batch
result = test_dataset.map(evaluate, batched=True, batch_size=8)
print("WER: {:2f}".format(100 * wer.compute(predictions=result["pred_strings"], references=result["sentence"])))
Test Result: 44.98%
Training
70% of the OpenSLR Telugu dataset was used for training.
Train Split of annotations is here
Test Split of annotations is here
Training Data Preparation notebook can be found here
Training notebook can be foundhere
Evaluation notebook is here
Magnet link
Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:
magnet:?xt=urn:btih:d23d0d4def3bed87403b58ae54b88f4fbc8123d4&dn=anuragshas_wav2vec2-large-xlsr-53-teluguOpen magnet in torrent client · infohash d23d0d4def3bed87403b58ae54b88f4fbc8123d4
Files & hashes
| Path | Size | sha1 | sha256 |
|---|---|---|---|
| README.md | 4.8 KB (4,919 B) | 4122151149d2a8fd9867a36463bd786e297242d8 | 3ba92086c838ababbf84b0a7634c98a051242d430de10367965a93e403b91b4d |
| config.json | 1.5 KB (1,563 B) | eb125d179afdd35fdb896eda528c3581780b4ad0 | 471e9049c6b8bcd4adc871ecf487ddc3099b656752619f06925230f35526bb3a |
| preprocessor_config.json | 158 B (158 B) | 0886a48276922a77013d8aa4681192138ae90d90 | c403ce09975b90dff0dd8302c42d422e9de1f166cd7772df23490069893cb0cf |
| pytorch_model.bin | 1.18 GB (1,262,204,439 B) | 85f3064a0b81976cbd199f4c74be86d485b81222 | 78dfdcf81d5d1cbb1430b0a283bacebe721b5f1b50b6fdfe58e635f31b4c2526 |
| special_tokens_map.json | 85 B (85 B) | 9abf71998c3e0de2f13c0fd73ed81477c9dae118 | 50eb73d51191696209d30d42d6ede50e57e7a542ca1db12df714b2c0aa3da8e2 |
| tokenizer_config.json | 138 B (138 B) | a2a8340e0a162e4e223867107d9db359f5697c1d | 3160c256a4d10e1fc5133a2d318e63406cc382b957563198931c8a90f9b9242d |
| vocab.json | 718 B (718 B) | c515cdf136cb0af961aabcaf53819693dc4324e6 | e2431a43c4ee005bc2c9d09ed22999bf664bf19657065d014fc5b8d548b80cba |
Cite this release
- Canonical URL
- https://aiseedbank.org/models/anuragshas_wav2vec2-large-xlsr-53-telugu/
- Slug
- anuragshas_wav2vec2-large-xlsr-53-telugu
- Infohash
- d23d0d4def3bed87403b58ae54b88f4fbc8123d4
- License
- apache-2.0
- Signing key fingerprint
- 85a3b32c3712427b
Every file carries a locally computed sha256 — verify a download against the signed sums: anuragshas_wav2vec2-large-xlsr-53-telugu.SHA256SUMS (+ minisign signature).
Provenance
| Upstream repository | anuragshas/wav2vec2-large-xlsr-53-telugu |
|---|---|
| Revision (pinned) | 35b88df6c2e57a5514caec962ea87222ead7bce7 |
| Fetched at | 2026-09-03T20:56:01Z |
| License at fetch | apache-2.0 |
| Snapshot tool | huggingface · seedbank 0.1.0 |
Trackers
- udp://announce.aitorrent.org:6969/announce
- http://announce.aitorrent.org:7070/announce
- udp://announce2.aitorrent.org:6970/announce
- http://announce2.aitorrent.org:7071/announce
- udp://tracker.opentrackr.org:1337/announce
- udp://open.demonii.com:1337/announce
- udp://open.stealth.si:80/announce
- udp://exodus.desync.com:6969/announce
- udp://tracker.torrent.eu.org:451/announce
✓ verified · rehash-vs-hf-metadata at 2026-09-03T20:56:16Z
apache-2.01.18 GB (1,262,212,020 bytes)transformerspytorchjaxwav2vec2automatic-speech-recognitionaudiospeechxlsr-fine-tuning-weekmodel-indexendpoints_compatible1 language (te)