ONNX Model Zoo

voxreality/whisper-small-el-finetune-onnx

By voxreality · ↓ 0 · ♥ 0 · Updated 2025-04-29

What's in this repo

This page lists the files in voxreality/whisper-small-el-finetune-onnx, including decoder_model.onnx, decoder_with_past_model.onnx, encoder_model.onnx.

  • 3 ONNX models (.onnx files)
  • 15 files, including 9 .json, 3 .onnx, 1 .md, 1 .txt
  • Last updated 2025-04-29

ONNX files

File Size Download
decoder_model.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

ONNX format of voxreality/whisper-small-el-finetune model

Model inference example:

from transformers import WhisperProcessor
from optimum.onnxruntime import ORTModelForSpeechSeq2Seq
from datasets import Audio, load_dataset

# load model and processor
model_id = "voxreality/whisper-small-el-finetune-onnx"

processor = WhisperProcessor.from_pretrained(model_id)
model = ORTModelForSpeechSeq2Seq.from_pretrained(model_id,provider="CPUExecutionProvider")
forced_decoder_ids = processor.get_decoder_prompt_ids(language="greek", task="transcribe")

# load streaming dataset and read first audio sample
ds = load_dataset("mozilla-foundation/common_voice_11_0", "el", split="test", streaming=True)
ds = ds.cast_column("audio", Audio(sampling_rate=16_000))
input_speech = next(iter(ds))["audio"]
input_features = processor(input_speech["array"], sampling_rate=input_speech["sampling_rate"], return_tensors="pt").input_features
predicted_ids = model.generate(input_features, forced_decoder_ids=forced_decoder_ids)

# decode token ids to text
transcription = processor.batch_decode(predicted_ids, skip_special_tokens=True)
print(transcription[0])

Model info

onnx whisper license:apache-2.0 region:us
↓ 0 ♥ 0

Created: 2025-04-24

Updated: 2025-04-29

View on Hugging Face

Files (15)

.gitattributes
README.md
added_tokens.json
config.json
decoder_model.onnx ONNX
decoder_with_past_model.onnx ONNX
encoder_model.onnx ONNX
generation_config.json
merges.txt
normalizer.json
preprocessor_config.json
special_tokens_map.json
tokenizer.json
tokenizer_config.json
vocab.json

Related models