All models

gemma3 (image text to text)

Multimodal Gemma model with sliding-window attention, 128K context and a SigLip image encoder

Multimodal · 79 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 (16 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
8.6M
Operations
79
Framework
PyTorch
Recurrent
No
Published
2025
Source
transformers 5.18.0
Name in source
gemma3:image-text-to-text
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
m11882
Graph hash
fc90e2d8b02ee02cc0c5e1afc349d848c3bfb89944af5fc800755edf1901c12d
Skeleton hash
61011e046417c653f2203f3bc0ddccca1650a60e230e9016a6dd547476ccb3da
Architecture hash
84b4f978c0b73d74aedde43a9e45d3e7e2117d861e5ee0492ce907b48b540ad1
Diagram SHA-256
da69b6de1428e2b60e454a915911d817b42364679b739df423a71e1521cb270a
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

menagerie.classics.ri_trans_temporal:build_univla: build({})

What it is

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.

  • multimodal language model
  • sliding window attention
  • global attention
  • 128K context
  • image encoder
  • pan and scan
  • instruction tuning
  • knowledge distillation
  • reinforcement learning
  • causal language model

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