Downloads · 30 days
5
11% of all-time downloads
Saidakbar01/whisper-base-uz-onnx-int8
whisper-base-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-base-uz-finetuned, a Whisper-base model fine-tuned for the Uzbek language.
Downloads · 30 days
5
11% of all-time downloads
All-time downloads
46
Public
Repo size
178 MB
Likes
0
Public
Click a slice to open those files.
.onnx178 MB · 97%
From the Hugging Face model README
ONNX export of Saidakbar01/whisper-base-uz-finetuned, a Whisper-base 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-base |
| Fine-tuned model | Saidakbar01/whisper-base-uz-finetuned |
| Format | ONNX (INT8) |
| Size | 170 MB |
| WER (200-sample validation) | 56.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-base",
language="uz",
task="transcribe",
)
model = ORTModelForSpeechSeq2Seq.from_pretrained(
"Saidakbar01/whisper-base-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-base (baseline) | 200.69% |
| Saidakbar01/whisper-base-uz-finetuned (fine-tuned) | 53.13% |
| whisper-base-uz-onnx-int8 (this model) | 56.31% |