All models

speech-seq2seq (whisper)

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

Audio and speech · 373 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 (26 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
23.5M
Operations
373
Framework
PyTorch
Recurrent
No
Published
2022
Source
transformers 5.18.0
Name in source
whisper:speech-seq2seq
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
m11242
Graph hash
9388fb17323c61b547f6eb800ef4db92e0473c2e10eb5a1499e64095e42cdcbf
Skeleton hash
62e86581a0bb18e80058e9a3a17159b6b4f792d3e623415feeb85106d1fd59fe
Architecture hash
ca8f0987c33b97003527f1aa254863e7b208eed37cef95517bd55585bfde64a2
Diagram SHA-256
639a907df5af6e98463d47435170d00cda82597dc16dc51b1953a88ba8cbfc30
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.