Downloads · 30 days
11
10% of all-time downloads
asmud/cahya-whisper-medium-onnx
cahya-whisper-medium-onnx is a automatic speech recognition model from asmud. Use it when you need speech turned into text. It is set up for onnxruntime. The card lists the license as apache-2.0.
ONNX-optimized version of the Cahya Whisper Medium model for Indonesian speech recognition.
Downloads · 30 days
11
10% of all-time downloads
All-time downloads
105
Public
Repo size
826 MB
Likes
1
Public
Click a slice to open those files.
.onnx826 MB · 100%
From the Hugging Face model README
ONNX-optimized version of the Cahya Whisper Medium model for Indonesian speech recognition.
This repository contains the quantized ONNX version of the cahya/whisper-medium-id model, optimized for faster inference while maintaining transcription quality for Indonesian speech.
encoder_model_quantized.onnx - Quantized encoder model (313 MB)decoder_model_quantized.onnx - Quantized decoder model (512 MB)config.json - Model configurationgeneration_config.json - Generation parametersexample.py - Usage example scriptpip install -r requirements.txt
from example import CahyaWhisperONNX
# Initialize model
model = CahyaWhisperONNX("./")
# Transcribe audio file
transcription = model.transcribe("audio.wav")
print(transcription)
python example.py --audio path/to/audio.wav
import librosa
from example import CahyaWhisperONNX
# Initialize model
model = CahyaWhisperONNX("./")
# Load audio manually
audio, sr = librosa.load("audio.wav", sr=16000)
# Transcribe with custom parameters
transcription = model.transcribe(audio, max_new_tokens=256)
print(f"Transcription: {transcription}")
# Get model information
info = model.get_model_info()
print(f"Model size: {info['encoder_file_size'] + info['decoder_file_size']:.1f} MB")
| Parameter | Value |
|---|---|
| Architecture | Whisper Medium |
| Language | Indonesian (ID) |
| Parameters | ~769M |
| Quantization | INT8 |
| Sample Rate | 16kHz |
| Context Length | 30s |
Performance comparison with original cahya/whisper-medium-id:
| Metric | Original | ONNX Quantized | Improvement |
|---|---|---|---|
| Model Size | 1024 MB | 825 MB | 19% smaller |
| Inference Time | 2.34s | 1.86s | 21% faster |
| Memory Usage | 45.2 MB | 38.7 MB | 14% lower |
| WER | 0.045 | 0.048 | -6% (minimal) |
Benchmarked on CPU with typical Indonesian speech samples
"Could not find an implementation for ConvInteger" Error
pip install -U onnxruntimeOut of Memory Error
providers=['CPUExecutionProvider']Poor Transcription Quality
Faster Inference:
max_new_tokens parameteronnxruntime-gpuBetter Quality:
@misc{cahya-whisper-medium-onnx,
title={Cahya Whisper Medium ONNX},
author={Indonesian Speech Recognition Community},
year={2024},
url={https://huggingface.co/asmud/cahya-whisper-medium-onnx}
}
Same license as the original Cahya Whisper model.