/ Модель

Характеристики

Контекст
1 024 токена
Параметры
153 млн
Лицензия
Apache 2.0
Архитектура
whisper · dense
Базовая модель
whisper-small
Библиотека
transformers
Опубликована
27 дек 2025

whisper-small-urdu

Распознавание речиАудио → текст4 профессии

Дообученная на урду модель Whisper для транскрибации чистой речи и создания субтитров.

119скачиваний за 30 дней2лайкавеса обновлены28 дек 2025

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Распознавание речи» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Модель khawajaaliarshad/whisper-small-urdu разработана Khawaja Ali и представляет собой дообученную версию openai/whisper-small на архитектуре Whisper Encoder-Decoder Transformer. Она предназначена для автоматического распознавания урду и преобразования речи в текст; обучающие данные взяты из расширенного набора Mozilla Common Voice Scripted Speech 24.0 на урду. По карточке модели, WER на тестовой части Common Voice составляет около 33%, а на валидационной — 32,80%. Модель содержит 153,1 млн параметров и распространяется в формате safetensors через Transformers.

Её можно применять для транскрибации записей на урду, создания голосовых помощников, подготовки субтитров и функций доступности для носителей языка. Для работы требуется монофоническое аудио с частотой дискретизации 16 кГц. Модель лучше работает на чистой записанной речи; точность может снижаться на спонтанной разговорной речи, при незнакомых акцентах и фоновом шуме. Лицензия модели — Apache 2.0.

Сценарии применения

  • транскрибация записей речи на урду
  • создание субтитров для видео на урду
  • распознавание речи для голосового помощника на урду
  • преобразование аудио на урду в текст для функций доступности

Ограничения

Обучение проводилось на записанной речи Common Voice, поэтому точность может быть ниже на спонтанной речи и при недостаточно представленных акцентах; шум также ухудшает распознавание. Для входа требуется монофоническое аудио с частотой 16 кГц.

Для каких профессий подходит4

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Whisper Small - Urdu Fine-tuned

This model is a fine-tuned version of openai/whisper-small for Urdu (اردو) automatic speech recognition (ASR), trained on the expanded Mozilla Common Voice Scripted Speech 24.0 - Urdu dataset, accessed via the Mozilla Data Collective API.

Model Description

  • Developed by: Khawaja Ali
  • Model type: Whisper (Encoder-Decoder Transformer)
  • Language: Urdu (ur)
  • License: Apache 2.0
  • Finetuned from: openai/whisper-small
  • Best Checkpoint: Step 3500 (loaded via load_best_model_at_end)
  • W&B Run: whisper-small-urdu-expanded-v1

Intended Uses & Limitations

Intended Uses

  • Transcribing Urdu speech to text
  • Building Urdu voice assistants
  • Subtitling Urdu audio/video content
  • Accessibility applications for Urdu speakers

Limitations

  • Domain: Trained on read speech; may underperform on conversational/spontaneous speech
  • Accents: Primarily trained on Common Voice contributors; dialect coverage may vary
  • Noise: Best performance on clean audio; background noise degrades accuracy
  • Audio format: Requires 16kHz mono audio

Performance

DatasetWER ↓Improvement
Common Voice Urdu (validation)32.80%-13.4pp vs baseline
Common Voice Urdu (test)~33%~13pp improvement

Baseline Comparison (Base Models, Zero-Shot on Urdu):

ModelParametersWER (Urdu)Notes
whisper-tiny39M~65%Zero-shot
whisper-small244M46.21%Zero-shot (our baseline)
whisper-small-urdu (this)244M32.80%Fine-tuned ✨ (29% relative improvement)
whisper-medium769M~40%Zero-shot
whisper-large-v21.5B~35%Zero-shot

🎉 This fine-tuned small model outperforms whisper-medium and approaches whisper-large-v2 performance!

Quick Start

Installation

pip install transformers torch librosa

Inference with Pipeline (Recommended)

from transformers import pipeline
import torch

device = "cuda:0" if torch.cuda.is_available() else "cpu"

pipe = pipeline(
    "automatic-speech-recognition",
    model="khawajaaliarshad/whisper-small-urdu",
    device=device,
)

# Transcribe audio file
result = pipe(
    "audio.wav",
    generate_kwargs={"language": "urdu", "task": "transcribe"},
)
print(result["text"])

Inference with Transformers

from transformers import WhisperProcessor, WhisperForConditionalGeneration
import torch
import librosa

# Load model
processor = WhisperProcessor.from_pretrained("khawajaaliarshad/whisper-small-urdu")
model = WhisperForConditionalGeneration.from_pretrained("khawajaaliarshad/whisper-small-urdu")

device = "cuda:0" if torch.cuda.is_available() else "cpu"
model.to(device)

# Load and process audio
audio, sr = librosa.load("audio.wav", sr=16000)
inputs = processor(audio, sampling_rate=16000, return_tensors="pt").to(device)

# Generate transcription
with torch.no_grad():
    predicted_ids = model.generate(
        inputs.input_features,
        language="urdu",
        task="transcribe",
        max_length=225,
    )

# Decode
transcription = processor.batch_decode(predicted_ids, skip_special_tokens=True)[0]
print(transcription)

Long-form Transcription

For audio longer than 30 seconds:

result = pipe(
    "long_audio.wav",
    chunk_length_s=30,
    batch_size=8,
    generate_kwargs={"language": "urdu", "task": "transcribe"},
)
print(result["text"])

Training Details

Training Data

The model was trained on the expanded Common Voice Scripted Speech 24.0 - Urdu dataset downloaded via the Mozilla Data Collective API.

PropertyValue
DatasetCommon Voice Scripted Speech 24.0 - Urdu (Expanded)
SourceMozilla Data Collective
Dataset IDcmj8u3pz600t9nxxbz9l2ck2n
LicenseCC0-1.0 (Public Domain)
Total Raw Samples252,899
Total Raw Hours302 hours (81.5 validated)
Speakers498

Processed splits used for training (expanded):

SplitSamplesHours (approx)
Train54,754~75 hrs
Validation5,046~7 hrs
Test5,091~7 hrs
Total64,891~89 hrs

Processed Dataset: khawajaaliarshad/common-voice-urdu-processed-expanded

This is the preprocessed version of the dataset used for training, with audio resampled to 16kHz and ready for Whisper fine-tuning.

Note: The model was trained on clean (non-augmented) data. Initial experiments with audio augmentation showed degraded performance due to train/eval domain mismatch.

Training Hyperparameters

ParameterValue
Base modelopenai/whisper-small
Learning rate1e-5
LR schedulerLinear with warmup
Warmup steps500
Training steps4,000
Epochs completed~1.17
Batch size (per device)4
Gradient accumulation4
Effective batch size16
PrecisionFP16
OptimizerAdamW
Adam betas(0.9, 0.98)
Weight decay0.01
Max gradient norm1.0
Metric for best modelWER

Training Infrastructure

ComponentDetails
PlatformKaggle Notebooks
HardwareNVIDIA T4 (16GB)
Training time~6.3 hours
Framework🤗 Transformers 4.52.0
Experiment trackingWeights & Biases
W&B Runwhisper-small-urdu-expanded-v1

Training Progress

CheckpointTrain LossEval LossEval WER
Step 5000.49140.636246.07%
Step 10000.41650.555659.80%
Step 15000.35000.517356.53%
Step 20000.29520.489433.10%
Step 25000.28820.473154.97%
Step 30000.25600.456253.87%
Step 35000.18580.447832.80% ✨
Step 40000.17080.444938.17%

Note: Best WER was achieved at step 3500 (32.80%). The model loaded via load_best_model_at_end=True uses this checkpoint.

Framework Versions

  • Python: 3.12
  • Transformers: 4.52.0
  • Datasets: 2.20.0
  • PyTorch: 2.8.0
  • Accelerate: 0.30+

Evaluation

Metrics

  • WER (Word Error Rate): Primary metric for ASR evaluation
  • Computed using jiwer library

Evaluation Code

from datasets import load_dataset
from transformers import pipeline
from evaluate import load

# Load test data
test_ds = load_dataset("mozilla-foundation/common_voice_17_0", "ur", split="test")

# Load model
pipe = pipeline("automatic-speech-recognition", model="khawajaaliarshad/whisper-small-urdu")

# Run evaluation
wer_metric = load("wer")
predictions, references = [], []

for sample in test_ds:
    result = pipe(sample["audio"]["array"], generate_kwargs={"language": "urdu"})
    predictions.append(result["text"])
    references.append(sample["sentence"])

wer = wer_metric.compute(predictions=predictions, references=references)
print(f"WER: {wer * 100:.2f}%")

Environmental Impact

Training was performed on Kaggle's free GPU tier, utilizing shared infrastructure.

FactorValue
HardwareNVIDIA T4
Training duration~6.3 hours
Cloud providerKaggle (Google Cloud)
RegionVarious
Carbon efficiencyShared infrastructure

Estimated using ML CO2 Impact Calculator

Citation

BibTeX

If you use this model in your research, please cite:

@misc{khawaja2025whisperurdu,
  author = {Khawaja, Ali},
  title = {Whisper Small Fine-tuned for Urdu Speech Recognition},
  year = {2025},
  publisher = {Hugging Face},
  howpublished = {\url{https://huggingface.co/khawajaaliarshad/whisper-small-urdu}},
}

Please also cite the original Whisper paper:

@article{radford2022whisper,
  title={Robust Speech Recognition via Large-Scale Weak Supervision},
  author={Radford, Alec and Kim, Jong Wook and Xu, Tao and Brockman, Greg and McLeavey, Christine and Sutskever, Ilya},
  journal={arXiv preprint arXiv:2212.04356},
  year={2022}
}

And the Mozilla Common Voice dataset:

@inproceedings{ardila2020common,
  title={Common Voice: A Massively-Multilingual Speech Corpus},
  author={Ardila, Rosana and Branson, Megan and Davis, Kelly and Henretty, Michael and Kohler, Michael and Meyer, Josh and Morais, Reuben and Saunders, Lindsay and Tyers, Francis M and Weber, Gregor},
  booktitle={Proceedings of the 12th Language Resources and Evaluation Conference},
  pages={4211--4215},
  year={2020}
}

Data Access: The Urdu dataset was accessed via the Mozilla Data Collective API (Dataset ID: cmj8u3pz600t9nxxbz9l2ck2n). The data is licensed under CC0-1.0 (Public Domain).

Acknowledgments

This project was made possible by the following resources and communities:

Models & Data

Compute & Tools

Libraries

Community

  • The Urdu-speaking contributors to Mozilla Common Voice
  • The Hugging Face community for guidance on Whisper fine-tuning
  • The open-source ML community

Model Card Authors

Contact

For questions, issues, or collaboration:

  • 🐛 Issues: Open an issue on the model repository
  • 💬 Discussion: Use the Community tab on HuggingFace

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Можно запустить

Подбираем GPU…

Класс архитектуры
WhisperForConditionalGeneration
Ревизия весов
163595c

0 моделей