All models

torchaudio.models.wavlm_large

Self-supervised speech encoder tuned for both spoken content and speaker identity tasks.

Audio and speech · 1,036 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 (27 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
WavLM
Parameters
315.5M
Operations
1,036
Framework
PyTorch
Recurrent
No
Published
2021
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
m10601
Graph hash
1feaa436b19332d6f6ac9f88d115864831308d6a8e889b1b7dd05a401cfbe1d2
Skeleton hash
254c79b48b87975e40e95b1f2a0672531753a9e4d1319405b3ed684ae82bb620
Architecture hash
c20a74821115c7c8911940a67373e566545c4442a7f5499ebfbc0adfbc3ef7e8
Diagram SHA-256
3eae34e76c6a379431d37c693380c8bad572c31c09940946f5911558d1e37140
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

WavLM is a self-supervised speech model built to serve the full stack of speech tasks, not just recognition. It is built on the HuBERT framework, with an emphasis on both spoken content modeling and speaker identity preservation. Two changes do the work: the Transformer gets a gated relative position bias to help recognition tasks. For better speaker discrimination, training mixes in additional overlapped utterances that are created without supervision. The training set also grew from 60k hours to 94k hours.

Hugging Face exposes it through task heads, and WavLM can be fine-tuned with CTC, in which case the output has to be decoded with the Wav2Vec2 CTC tokenizer. It performs especially well on speaker verification, speaker identification and speaker diarization. The torchaudio base and large builds, spelled WaveLM in their docstrings, are architecture-compatible with Wav2Vec2 and return the Wav2Vec2Model class. The paper reports WavLM Large achieving state-of-the-art performance on the SUPERB benchmark.

Key idea. A HuBERT-based pre-trained speech model aimed at full-stack speech tasks, balancing spoken content modeling with speaker identity preservation.

  • wavlm
  • wav lm
  • wavlm base
  • wavlm base plus
  • wavlm large
  • self-supervised speech
  • speaker verification
  • speech recognition encoder
  • torchaudio wavlm
  • transformers wavlm
  • hubert

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