All models

whisper (audio classification)

Encoder-decoder speech transformer pretrained on 680,000 hours of audio; some members are compact random-init stand-ins

Audio and speech · 79 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (18 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Family
Whisper
Parameters
31.2K
Operations
79
Framework
PyTorch
Recurrent
No
Published
2022
Source
transformers 5.18.0
Name in source
whisper:audio-classification
License
Apache-2.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m11241
Graph hash
918583bacb57c35616f4c51b0a4086b50c6d6832014bfa1f9157ab85568df864
Skeleton hash
f859ee861411ffdad3a506999eb7ecf040f36d1378715bfcaa83f0d95a14dc49
Architecture hash
b917d9f11ea1f5fc348374449278038208de50b0683a127fb571e0f85a153950
Diagram SHA-256
695f9fb6f31645e195d1d67e098ffef117f739233db0d76933e6387072ad9f30
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

About this model's family

Whisper is an encoder-decoder, sequence-to-sequence transformer for speech, pretrained on 680,000 hours of labeled audio. That volume of data gives it zero-shot ability on audio tasks in English and many other languages. The decoder maps the encoder's learned speech representations to useful outputs such as text without additional fine-tuning, which the documentation sums up as: Whisper just works out of the box.

In the library, Whisper relies on a custom generate method for inference. The WhisperProcessor prepares the audio and decodes predicted ids back into text. Besides the conditional-generation model, the library exposes WhisperForCausalLM and WhisperForAudioClassification heads on the same architecture.

Key idea. A sequence-to-sequence speech transformer whose 680,000 hours of labeled pretraining audio give zero-shot transcription across many languages with no fine-tuning.

  • Whisper
  • OpenAI Whisper
  • whisper-tiny
  • whisper-base
  • whisper-small
  • whisper-medium
  • whisper-large
  • whisper-large-v3-turbo
  • faster-whisper
  • ctranslate2
  • speech recognition
  • ASR
  • transcription
  • WhisperForConditionalGeneration

AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.