tamarand/whisper-small-ko-new-onnx
By tamarand · ↓ 0 · ♥ 0 · Updated 2026-01-16
What's in this repo
This page lists the files in tamarand/whisper-small-ko-new-onnx, including decoder_model.onnx, decoder_model_merged.onnx, decoder_with_past_model.onnx and more.
- 4 ONNX models (.onnx files)
- 16 files, including 9 .json, 4 .onnx, 1 .md, 1 .txt
- Last updated 2026-01-16
ONNX files
| File | Size | Download |
|---|---|---|
| decoder_model.onnx | — | Download |
| decoder_model_merged.onnx | — | Download |
| decoder_with_past_model.onnx | — | Download |
| encoder_model.onnx | — | Download |
How to use
These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.
README
Whisper Small KO New (ONNX)
Korean automatic speech recognition model exported to ONNX for fast inference.
Model
- Base model:
kimthegarden/whisper-small-ko-new - Task: automatic speech recognition (Korean)
- License: MIT
Files
encoder_model.onnx,decoder_model.onnxconfig.json,generation_config.json- Tokenizer and processor files (
tokenizer.json,vocab.json, etc.)
Quickstart (Python)
Install dependencies:
pip install transformers optimum[onnxruntime] soundfile
Run inference:
import numpy as np
import soundfile as sf
from optimum.onnxruntime import ORTModelForSpeechSeq2Seq
from transformers import WhisperProcessor
model_id = "YOUR_USERNAME/whisper-small-ko-new-onnx"
processor = WhisperProcessor.from_pretrained(model_id)
model = ORTModelForSpeechSeq2Seq.from_pretrained(model_id)
# Load 16kHz mono audio
audio, sr = sf.read("sample.wav")
if sr != 16000:
raise ValueError("Please provide 16kHz audio.")
if audio.ndim > 1:
audio = np.mean(audio, axis=1)
inputs = processor(audio, sampling_rate=16000, return_tensors="pt")
predicted_ids = model.generate(inputs.input_features)
text = processor.batch_decode(predicted_ids, skip_special_tokens=True)[0]
print(text)
Notes
- Input audio must be 16 kHz mono.
- For long audio, split into chunks (e.g., 30 seconds) before decoding.
Model info
Created: 2026-01-16
Updated: 2026-01-16
View on Hugging FaceFiles (16)
Related models
More from tamarand
No other models by this author.
More models
No task type declared.