All models

perceiver

Latent-array transformer that reads any input and writes any output through cross-attention.

Multimodal · 742 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 (28 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
269.3M
Operations
742
Framework
PyTorch
Recurrent
No
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
m8147
Graph hash
47f069c21bc8de956edf68ad4a7e981e4b87cf2b8e19cbd2b657787a70645db6
Skeleton hash
77f29004f47530c56380959044c169cc931e5b2bdaccac6e32ca413dae6ad549
Architecture hash
bcd832021318948c28ade0b0117aafd34171db1de210df430e3ff67e2c072103
Diagram SHA-256
d96dc8d6a43f894b165645c73a13ad190b63dd9f17457c6322ce92f5189639bf
TorchLens version
2.35.3
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

How this diagram was made

transformers.AutoModelForMaskedLM.from_config()

What it is

A masked language model built from the default configuration, taking token ids and returning token logits.

About this model's family

Perceiver IO is a general architecture that extends the Perceiver to handle arbitrary outputs in addition to arbitrary inputs. Instead of running self-attention over the inputs, it runs self-attention over a fixed set of latent variables and uses the inputs only for cross-attention, so time and memory no longer depend on input length. The latents are randomly initialized and then trained end-to-end using backpropagation. Perceiver IO produces outputs of arbitrary size by cross-attending with the outputs as queries and the latents as keys and values.

The captured members are a masked language model built from configuration and a learned-position image classifier with 512 latents of width 1024, eight blocks of six self-attention layers and 1000 labels. Perceiver uses a vocabulary of 262 byte IDs, so its masked language modeling runs directly on raw bytes rather than tokenized input.

Key idea. Attending over a fixed latent array instead of the inputs, with cross-attention in and out, so cost is linear in input and output size.

  • Perceiver
  • Perceiver IO
  • latent transformer
  • cross-attention
  • image classification
  • masked language modeling
  • byte-level

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