Downloads · 30 days
4
10% of all-time downloads
Saidakbar01/whisper-small-uz-onnx-int8
whisper-small-uz-onnx-int8 is a automatic speech recognition model from Saidakbar01. Use it when you need speech turned into text. It is set up for optimum. The card lists the license as apache-2.0.
ONNX export of Saidakbar01/whisper-small-uz-finetuned, a Whisper-small model fine-tuned for the Uzbek language.
Downloads · 30 days
4
10% of all-time downloads
All-time downloads
39
Public
Repo size
467 MB
Likes
0
Public
Click a slice to open those files.
.onnx467 MB · 99%
From the Hugging Face model README
ONNX export of Saidakbar01/whisper-small-uz-finetuned, a Whisper-small model fine-tuned for the Uzbek language.
Quantized with INT8 dynamic quantization (
AutoQuantizationConfig.avx2,is_static=False,per_channel=False).
| Property | Value |
|---|---|
| Base architecture | openai/whisper-small |
| Fine-tuned model | Saidakbar01/whisper-small-uz-finetuned |
| Format | ONNX (INT8) |
| Size | 446 MB |
| WER (200-sample validation) | 33.31% |
| Language | Uzbek (uz) |
| Task | Automatic Speech Recognition |
encoder_model_quantized.onnxdecoder_model_quantized.onnxdecoder_with_past_model_quantized.onnxfrom optimum.onnxruntime import ORTModelForSpeechSeq2Seq
from transformers import WhisperProcessor
import torch
# Load processor and ONNX model
processor = WhisperProcessor.from_pretrained(
"openai/whisper-small",
language="uz",
task="transcribe",
)
model = ORTModelForSpeechSeq2Seq.from_pretrained(
"Saidakbar01/whisper-small-uz-onnx-int8",
encoder_file_name="encoder_model_quantized.onnx",
decoder_file_name="decoder_model_quantized.onnx",
decoder_with_past_file_name="decoder_with_past_model_quantized.onnx",
)
# Transcribe audio (numpy float32 array at 16 kHz)
inputs = processor(audio_array, sampling_rate=16000, return_tensors="pt")
with torch.no_grad():
predicted_ids = model.generate(
inputs.input_features,
language="uz",
task="transcribe",
)
transcription = processor.batch_decode(predicted_ids, skip_special_tokens=True)[0]
print(transcription)
The parent model was fine-tuned on the DavronSherbaev/uzbekvoice-filtered dataset.
WER was measured on 200 samples from the validation split using jiwer.
| Model | WER |
|---|---|
| openai/whisper-small (baseline) | 111.33% |
| Saidakbar01/whisper-small-uz-finetuned (fine-tuned) | 31.54% |
| whisper-small-uz-onnx-int8 (this model) | 33.31% |