
perceiver (image classification)
Multimodal1,313 ops62.3M params
Latent-array transformer that reads any input and writes any output through cross-attention.
Multimodal · 742 operations Checked
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.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
How this diagram was made
transformers.AutoModelForMaskedLM.from_config()
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.
AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.