
fastvlm (mobile vlm)
Multimodal79 ops8.6M params
Multimodal Gemma model with sliding-window attention, 128K context and a SigLip image encoder
Multimodal · 79 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
menagerie.classics.ri_trans_temporal:build_univla: build({}) Gemma 3 is a multimodal model with pretrained and instruction-tuned variants. The architecture is mostly the same as earlier Gemma models. The key differences are alternating 5 local sliding window self-attention layers for every global self-attention layer, support for a 128K token context length, and a SigLip encoder that can pan and scan high-resolution images. The instruction-tuned variant was post-trained with knowledge distillation and reinforcement learning.
The vision encoder uses a fixed resolution of 896x896, and pan and scan crops the image into multiple smaller patches that are concatenated with the base image embedding. A text-only 1B checkpoint is used as a causal language model.
Key idea. Gemma 3 extends the Gemma architecture with alternating local sliding window and global attention, a 128K token context, and a SigLip image encoder.
AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.