All models

wav2vec2-conformer (audio frame classification)

Wav2Vec2 with its attention blocks swapped for Conformer blocks for a lower word error rate.

Audio and speech · 732 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 (31 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

Parameters
179.7M
Operations
732
Framework
PyTorch
Recurrent
No
Name in source
wav2vec2-conformer:audio-frame-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
m11216
Graph hash
df54f82aebefbb17180635d44dbaaaff5454ec21ad2e37c881a55ea4991a04af
Skeleton hash
a426f5b0e81168754a75a7b03b3fdbf667c48903baaa969c8c110481c6974e89
Architecture hash
9fad6dab83f07f126bc52afbc65ba216c1e4f36143dbf4c5c22e9d2f0fc53a7c
Diagram SHA-256
f6c4ff8e5ded85f48f1d2a1a017c60b434e5cc43f6c0e7cfdf1a009c823d5809
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

Wav2Vec2-Conformer keeps the Wav2Vec2 architecture but swaps its attention block for a Conformer block, the convolution-augmented Transformer introduced for speech recognition. For the same number of layers it needs more parameters than Wav2Vec2 but yields an improved word error rate. It was added to an updated version of the fairseq S2T paper on fast speech-to-text modeling. The official results sit in Table 3 and Table 4 of that paper.

The weights were released by the Meta AI team within the Fairseq library. It uses the same tokenizer and feature extractor as Wav2Vec2. It can run with no relative position embeddings, Transformer-XL-like position embeddings or rotary position embeddings, chosen through the config. The docs add that Meta released a new version, Wav2Vec2-BERT 2.0, pretrained on 4.5M hours of audio.

Key idea. Wav2Vec2-Conformer replaces the attention block in Wav2Vec2 with a Conformer block, trading more parameters per layer for a lower word error rate.

  • wav2vec2-conformer
  • wav2vec2 conformer
  • wav2vec 2.0 conformer
  • conformer
  • wav2vec2
  • fairseq
  • speech recognition
  • asr
  • transformers

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