You need to agree to share your Hugging Face information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

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 (metadata_cycle1.csv) and evaluated on Cycle 2 (metadata_cycle2.csv) 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 (metadata_cycle1.csv)
    • Evaluated on: Cycle 2 (metadata_cycle2.csv)

πŸš€ 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
55
Safetensors
Model size
0.2B params
Tensor type
F32
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for DOAIxILPRL-KU/nepalienglish-codemix-model-small

Finetuned
(3,867)
this model