CoolFace
Modelpublic

Younicorn/whisper-medium

sourceHugging Faceapache-2.0updated 2d agoView on Hugging Face
0likes
Model Card

whisper-medium

ONNX builds of `openai/whisper-medium`.

Whisper is OpenAI's automatic speech recognition model, trained on 680 000 hours of multilingual audio. It transcribes and translates speech in 99 languages, and produces segment-level timestamps.

It reads audio in 30-second windows and decodes text one token at a time, which is what makes it robust to accents and background noise and also what makes it slower than models built for one language.

This checkpoint: 769 M parameters — close to large accuracy at half the size.

Variants

Every variant is the same checkpoint at a different weight precision. Pick a row, download that folder, and read onnx_manifest.json in it for the graph names and their checksums.

VariantSizevs `fp32`WERvs `fp32`
fp162,554 MB÷1.3——
plain-int8866 MB÷3.81.98 %+0.00 pt
plain-int4488 MB÷6.71.98 %+0.00 pt
grain-int4-b64511 MB÷6.41.77 %-0.21 pt
zone-int4-cross536 MB÷6.11.87 %-0.11 pt

fp32 is not published for this checkpoint — it is the source format, available from the original repository. It is used above as the reference the other rows are measured against.

Word error rate measured on ten minutes of English speech against a hand-checked transcript, greedy decoding, no voice-activity detection. It is a single corpus in a single language: use it to compare the rows against each other, not as an absolute score.

What the names mean

  • —`fp16` — Half-precision encoder, full-precision decoder. Smaller than fp32 and slower on CPU, where no float16 kernel exists — useful on GPU.
  • —`plain-int8` — 8-bit weights, nothing excluded.
  • —`plain-int4` — 4-bit weights, nothing excluded. Usually the smallest that still works.
  • —`grain-int4-b64` — 4-bit weights, one scale per 64 values.
  • —`zone-int4-cross` — 4-bit weights, with the cross-attention kept at 8 bits.

The int4 variants are meant for the CPU. On ONNX Runtime's CUDA provider the 4-bit matrix kernel (MatMulNBits) loses precision above 128 rows, which covers every encoder pass.

Licence

These are format conversions. The weights, and the licence they come with, are those of the original checkpoint — see the source repository.