theainerd_Wav2Vec2-large-xlsr-hindi
theainerd · 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:
- hi metrics:
- wer base_model:
- facebook/wav2vec2-large-xlsr-53 pipeline_tag: automatic-speech-recognition
Wav2Vec2-Large-XLSR-53-hindi
Fine-tuned facebook/wav2vec2-large-xlsr-53 hindi using the Multilingual and code-switching ASR challenges for low resource Indian languages. 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
test_dataset = load_dataset("common_voice", "hi", split="test[:2%]")
processor = Wav2Vec2Processor.from_pretrained("theainerd/Wav2Vec2-large-xlsr-hindi")
model = Wav2Vec2ForCTC.from_pretrained("theainerd/Wav2Vec2-large-xlsr-hindi")
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
The model can be evaluated as follows on the hindi test data of Common Voice.
import torch
import torchaudio
from datasets import load_dataset, load_metric
from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor
import re
test_dataset = load_dataset("common_voice", "hi", split="test")
wer = load_metric("wer")
processor = Wav2Vec2Processor.from_pretrained("theainerd/Wav2Vec2-large-xlsr-hindi")
model = Wav2Vec2ForCTC.from_pretrained("theainerd/Wav2Vec2-large-xlsr-hindi")
model.to("cuda")
resampler = torchaudio.transforms.Resample(48_000, 16_000)
chars_to_ignore_regex = '[\,\?\.\!\-\;\:\"\“]'
# Preprocessing the datasets.
# We need to read the aduio files as arrays
def speech_file_to_array_fn(batch):
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: 72.62 %
Training
The script used for training can be found Hindi ASR Fine Tuning Wav2Vec2
Magnet link
Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:
magnet:?xt=urn:btih:8455f3201e7b846467c342ad4a5a978f58938292&dn=theainerd_Wav2Vec2-large-xlsr-hindiOpen magnet in torrent client · infohash 8455f3201e7b846467c342ad4a5a978f58938292
Files & hashes
| Path | Size | sha1 | sha256 |
|---|---|---|---|
| README.md | 3.5 KB (3,561 B) | c6526716ba0cf16c8207929771cab7fdd33506d1 | e7a69e7fa5527202791d4c8f4f9bc8a29ed52e0d2db2afec581f4749876e6e8d |
| config.json | 1.5 KB (1,563 B) | 3186ea56ed88cee9706213844787fae279e92468 | fb5bc87f291c930687bab0d0cd35013beff2269892bc05a5ea4fd77dc0833865 |
| model.safetensors | 1.18 GB (1,262,069,832 B) | 9b2c372ca79d34312eb017ab688f5f848934dbae | c9469047fff51aa63e2ac40bdcef19ad5a5ab62fdfa04d14c05840e7398d1532 |
| preprocessor_config.json | 158 B (158 B) | 0886a48276922a77013d8aa4681192138ae90d90 | c403ce09975b90dff0dd8302c42d422e9de1f166cd7772df23490069893cb0cf |
| pytorch_model.bin | 1.18 GB (1,262,196,247 B) | e1f4f13c038a8d19a7d8ab0bfe6288d3f8f81e5a | 7af3f44f6dd07c76ab6533cb2bbb4ae62d4c87cc2583f2a82c150c9e7bf4936d |
| special_tokens_map.json | 85 B (85 B) | 9abf71998c3e0de2f13c0fd73ed81477c9dae118 | 50eb73d51191696209d30d42d6ede50e57e7a542ca1db12df714b2c0aa3da8e2 |
| tokenizer_config.json | 138 B (138 B) | a2a8340e0a162e4e223867107d9db359f5697c1d | 3160c256a4d10e1fc5133a2d318e63406cc382b957563198931c8a90f9b9242d |
| vocab.json | 696 B (696 B) | e66daab6002fc840d3954bccb535f28906b05350 | 0ece4033f4111e3d9e7cd9e068dd4922072628f41fd622a3e57ee46df77b2094 |
Cite this release
- Canonical URL
- https://aiseedbank.org/models/theainerd_Wav2Vec2-large-xlsr-hindi/
- Slug
- theainerd_Wav2Vec2-large-xlsr-hindi
- Infohash
- 8455f3201e7b846467c342ad4a5a978f58938292
- License
- no license recorded
- Signing key fingerprint
- 85a3b32c3712427b
Every file carries a locally computed sha256 — verify a download against the signed sums: theainerd_Wav2Vec2-large-xlsr-hindi.SHA256SUMS (+ minisign signature).
Provenance
| Upstream repository | theainerd/Wav2Vec2-large-xlsr-hindi |
|---|---|
| Revision (pinned) | 062f7f566e2671336992b011dcb9387cd3cffe5e |
| Fetched at | 2026-09-04T06:31:10Z |
| License at fetch | no license recorded |
| 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-04T06:31:36Z
no license recorded2.35 GB (2,524,272,280 bytes)transformerspytorchsafetensorswav2vec2automatic-speech-recognitionendpoints_compatible1 language (hi)