All models

hubert (CTC ASR)

Self-supervised speech encoder trained by masked prediction of clustered acoustic units.

Audio and speech · 332 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 (34 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
HuBERT
Parameters
94.4M
Operations
332
Framework
PyTorch
Recurrent
No
Published
2021
Name in source
hubert:ctc-asr
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
m5371
Graph hash
b6532cec83f7d12ec798d5d3635c5b84e6c6b096e9f4807dcef9128b17535efb
Skeleton hash
cd4d4bd2fc93db6103b3daff197a078c289be2e03637de7be23d7c719fc8f10f
Architecture hash
a51d60d36b9e32fd32a17163eed8542f3ebe508dc8f1261ab0afdb98d69cec3c
Diagram SHA-256
96a1617b2ad60450da10a02789575b55010ae67a706f39ef0ac885bd8d1f8b5f
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

HuBERT is a self-supervised speech model: it clusters aligned target labels for a BERT-like prediction loss and applies that loss only over masked regions, which forces the model to learn both acoustic and language modeling over continuous inputs. It was built for the awkward facts of speech: multiple sound units per utterance, no lexicon during pre-training, and variable-length sound units without explicit segmentation. The models expect raw audio input as a 1D float array sampled at 16kHz.

In torchaudio the base, large and extra large builds are all instances of its Wav2Vec2Model class. In Hugging Face Transformers the CTC head is the one the docs use to automatically transcribe speech into text.

Key idea. A BERT-like masked prediction loss over clustered acoustic targets, applied only on masked regions, so the model learns acoustic and language modeling from continuous speech without a lexicon.

  • HuBERT
  • hubert_base
  • hubert_large
  • hubert_xlarge
  • HUBERT_ASR_LARGE
  • HUBERT_ASR_XLARGE
  • self-supervised speech
  • speech recognition
  • CTC
  • wav2vec2
  • audio classification
  • speech representation

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