All models

wav2vec2-conformer (audio classification)

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

Audio and speech · 734 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

Parameters
179.9M
Operations
734
Framework
PyTorch
Recurrent
No
Name in source
wav2vec2-conformer: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
m11215
Graph hash
26c64c06d107ce4372fa9f4b3520c4077d121621f906ce8fc53357e0b94f6573
Skeleton hash
77b7fc1fb038d9ad7abe739e3e9ea171eaf74496914b981a0aebb6941b504a3b
Architecture hash
6fbd4ad8830e524e5da24601a295a70818bcf6052fab3a87410ccfb3d9b84352
Diagram SHA-256
ba9be2305495553b6e50fa1109ea917e560659de9c9414f9aeb1b70e62dc193a
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.