Downloads · 30 days
3
6% of all-time downloads
Saugat212/ASR_MODEL
ASR_MODEL is a machine learning model from Saugat212. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Fine-tuning and inference for Nepali language speech recognition using Wav2Vec2 and Whisper models.
Downloads · 30 days
3
6% of all-time downloads
All-time downloads
50
Public
Parameters
316M
1.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.3 GB · 100%
From the Hugging Face model README
Fine-tuning and inference for Nepali language speech recognition using Wav2Vec2 and Whisper models.
| Property | Value |
|---|---|
| Model ID | Saugat212/ASR_MODEL |
| Base Model | facebook/wav2vec2-base |
| Architecture | wav2vec2 |
| Parameters | 0.3B |
| Language | Nepali |
| File | Description |
|---|---|
whisper_transcription.ipynb | Whisper model for Nepali speech-to-text transcription |
wav2vec2_finetuning.ipynb | Wav2Vec2 fine-tuning recipe for Nepali ASR |
wav2vec2_finetune.py | Python script for Wav2Vec2 fine-tuning |
finetune.py | ASR fine-tuning script |
Dataset/ | Training datasets (CSV files with audio paths and transcriptions) |
Phase 1/Finetuning/ | Phase 1 training data, checkpoints, and inference notebooks |
from transformers import Wav2Vec2Processor, Wav2Vec2ForCTC
model_name = "Saugat212/ASR_MODEL"
processor = Wav2Vec2Processor.from_pretrained(model_name)
model = Wav2Vec2ForCTC.from_pretrained(model_name)
import torchaudio
import torch
# Load audio
waveform, sample_rate = torchaudio.load("audio.wav")
# Process
input_values = processor(waveform.squeeze(), return_tensors="pt", sampling_rate=sample_rate).input_values
# Infer
with torch.no_grad():
logits = model(input_values).logits
predicted_ids = torch.argmax(logits, dim=-1)
# Decode
transcription = processor.batch_decode(predicted_ids)[0]
print(transcription)
Saugat212/ASR_MODEL - Fine-tuned Nepali ASRDataset/final_transcriptions.csv with audio paths and transcriptionscleaned_data.csvSee wav2vec2_finetuning.ipynb for complete fine-tuning pipeline.