Views
No views yet
whisper model type — works with stock onnx-asr, no patches needed). Addresses
onnx-asr#140.optimum's ONNX export re-saves the tokenizer and
silently truncates CrisperWhisper's vocab.json (698KB vs the source repo's 878KB),
shifting every special-token ID (e.g. <|startoftranscript|> came out as 45073
instead of the correct 50258) and producing near-blank/looping decode output. This
export replaces vocab.json/added_tokens.json with the originals copied verbatim
from the source repo.1import onnx_asr
2model = onnx_asr.load_model("whisper", "path/to/this/repo") # or quantization="int8"
3print(model.recognize("audio_16khz.wav", language="en")) # or "de"transformers pipeline output exactly, for both languages. RTF on an
AMD Ryzen 5 7600 (6C/12T CPU, shared/loaded host): ~1.7-3.0 fp32, ~0.8-1.5 int8.