Nepali-English Code-Mixed Whisper (Small) β Best Checkpoint
Fine-tuned version of openai/whisper-small created and developed by Aadarsh Pandit.
This model is specifically trained on Cycle 1 (Training Split) and evaluated on Cycle 2 (Evaluation Benchmark) for intra-sentential code-switched / code-mixed Automatic Speech Recognition (ASR) between Nepali and English, effectively handling dynamic language switching and embedded English vocabulary in conversational Nepali speech.
π Model Details
- Author: Aadarsh Pandit (@Aadarsh17 / GitHub)
- Affiliation: DOAI x ILPRL-KU
- Base Architecture:
openai/whisper-small(Encoder-Decoder Transformer, 244M parameters) - Checkpoint: Best validation checkpoint (
best_checkpoint) - Weights Format: SafeTensors (
model.safetensors, ~922 MB) - Companion Dataset: DOAIxILPRL-KU/nepali-english-codeswitched
- Trained on: Cycle 1 Training Split (
train.csv) - Evaluated on: Cycle 2 Evaluation Split (
evaluation.csv)
- Trained on: Cycle 1 Training Split (
π Quickstart & Inference
import torch
from transformers import WhisperProcessor, WhisperForConditionalGeneration
import librosa
model_id = "DOAIxILPRL-KU/nepalienglish-codemix-model-small"
processor = WhisperProcessor.from_pretrained(model_id)
model = WhisperForConditionalGeneration.from_pretrained(model_id)
# Load audio (16kHz mono)
audio, sr = librosa.load("sample.wav", sr=16000)
inputs = processor(audio, sampling_rate=16000, return_tensors="pt")
with torch.no_grad():
predicted_ids = model.generate(inputs.input_features, language="ne")
transcription = processor.batch_decode(predicted_ids, skip_special_tokens=True)[0]
print("Transcription:", transcription)
π Citation & Attribution
@misc{pandit2026nepalienglishcodemix,
author = {Aadarsh Pandit},
title = {Nepali-English Code-Mixed Whisper Small Model},
year = {2026},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/DOAIxILPRL-KU/nepalienglish-codemix-model-small}}
}
- Downloads last month
- -
Model tree for DOAIxILPRL-KU/nepalienglish-codemix-model-small
Base model
openai/whisper-small