Rúben GalvãoThe Rabbit Hole

The Rabbit Hole / AI / Model architectures

Microsoft · Architecture map

Mage-VL-Cowork

A Qwen3 4B language stack and vision encoder trained to choose between GUI actions and terminal tools.

Mage-VL-Cowork, October 2026 · Mage release timeline

Inside Mage-VL-Cowork

Parameters
4B
Layers
36
Width
2,560
Mixer
Grouped-query
Select a component to explore it.
The complete Mage-VL-Cowork architectureInput IDs select embeddings. Each layer adds its updates along the residual stream. 36 full-attention layers; 32 query heads share eight KV heads of width 128. Q/K use per-head RMSNorm. The text configuration permits 262144 positions; the model card specifies a 32768-token working context. Eight key/value heads per decoder layer. Screenshot history and persistent bash sessions are managed by the agent harness. Final normalisation and output weights produce vocabulary scores and the next-token distribution.Text becomes token IDs.Text → tokens → IDstheoldrabbitsleepsEmbedding lookup151,9362,560Input token vectorsCL2,56024 vision layers of width 1024, 16 attention heads, 16-pixel patches and 2×2 spatial merging; projected to the 2560-wide language stream.Vision / videoencoderLanguage decoderLanguage decoder · 36 repetitions36 layers · one layer shown36RMSNorm before this operation.RMSNormGrouped-query attention: Qwen3 grouped-query attention followed by a 9728-wide SwiGLU network.Grouped-queryattentionRotate query and key position components before attention scores; values are unchanged. Qwen3 grouped-query attention followed by a 9728-wide SwiGLU network.RoPEAdd the branch output to the original stream. +RMSNorm before this operation.RMSNormSwiGLU: Qwen3 grouped-query attention followed by a 9728-wide SwiGLU network.SwiGLUAdd the branch output to the original stream. +Residual streamLast columnCL2,560Final RMSNormA separate learned vocabulary projection.Output weights2,560151,936Vocabulary scoresSoftmax151,936Next-token probabilities
Inside grouped-query attention · Language decoder
4 query heads per group × 8 K/V groups.

Earlier context dimmed · current token bright · dashed regions contain cached entries.

Mage-VL-Cowork: Language decoder · grouped-query attention36 full-attention layers; 32 query heads share eight KV heads of width 128. Q/K use per-head RMSNorm. The text configuration permits 262144 positions; the model card specifies a 32768-token working context. Eight key/value heads per decoder layer. Screenshot history and persistent bash sessions are managed by the agent harness.8 KV groups; the front face shows one representative.8 KV groups4 heads / group; the front face shows one representative.4 heads / groupAttention input. 36 full-attention layers; 32 query heads share eight KV heads of width 128. Q/K use per-head RMSNorm. The text configuration permits 262144 positions; the model card specifies a 32768-token working context.Earlier context is dimmed; outlined columns are current.Current token computation.Attention input2,560CLWq. 36 full-attention layers; 32 query heads share eight KV heads of width 128. Q/K use per-head RMSNorm. The text configuration permits 262144 positions; the model card specifies a 32768-token working context.Wq2,560128Wk. 36 full-attention layers; 32 query heads share eight KV heads of width 128. Q/K use per-head RMSNorm. The text configuration permits 262144 positions; the model card specifies a 32768-token working context.Wk2,560128Wv. 36 full-attention layers; 32 query heads share eight KV heads of width 128. Q/K use per-head RMSNorm. The text configuration permits 262144 positions; the model card specifies a 32768-token working context.Wv2,560128RMSNorm. 36 full-attention layers; 32 query heads share eight KV heads of width 128. Q/K use per-head RMSNorm. The text configuration permits 262144 positions; the model card specifies a 32768-token working context.RMSNormRoPE. 36 full-attention layers; 32 query heads share eight KV heads of width 128. Q/K use per-head RMSNorm. The text configuration permits 262144 positions; the model card specifies a 32768-token working context.RoPERMSNorm. 36 full-attention layers; 32 query heads share eight KV heads of width 128. Q/K use per-head RMSNorm. The text configuration permits 262144 positions; the model card specifies a 32768-token working context.RMSNormRoPE. 36 full-attention layers; 32 query heads share eight KV heads of width 128. Q/K use per-head RMSNorm. The text configuration permits 262144 positions; the model card specifies a 32768-token working context.RoPEK cache. 36 full-attention layers; 32 query heads share eight KV heads of width 128. Q/K use per-head RMSNorm. The text configuration permits 262144 positions; the model card specifies a 32768-token working context.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.K cache128CLV cache. 36 full-attention layers; 32 query heads share eight KV heads of width 128. Q/K use per-head RMSNorm. The text configuration permits 262144 positions; the model card specifies a 32768-token working context.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.V cache128CLQ context. 36 full-attention layers; 32 query heads share eight KV heads of width 128. Q/K use per-head RMSNorm. The text configuration permits 262144 positions; the model card specifies a 32768-token working context.Earlier context is dimmed; outlined columns are current.Current token computation.Q context128CLScaled query–key scores, masking and softmax. 36 full-attention layers; 32 query heads share eight KV heads of width 128. Q/K use per-head RMSNorm. The text configuration permits 262144 positions; the model card specifies a 32768-token working context.CLCL×. 36 full-attention layers; 32 query heads share eight KV heads of width 128. Q/K use per-head RMSNorm. The text configuration permits 262144 positions; the model card specifies a 32768-token working context.×Joined heads. 36 full-attention layers; 32 query heads share eight KV heads of width 128. Q/K use per-head RMSNorm. The text configuration permits 262144 positions; the model card specifies a 32768-token working context.32Wo. 36 full-attention layers; 32 query heads share eight KV heads of width 128. Q/K use per-head RMSNorm. The text configuration permits 262144 positions; the model card specifies a 32768-token working context.Wo4,0962,560Attention output. 36 full-attention layers; 32 query heads share eight KV heads of width 128. Q/K use per-head RMSNorm. The text configuration permits 262144 positions; the model card specifies a 32768-token working context.Earlier context is dimmed; outlined columns are current.Current token computation.Attention output2,560CL
Model-specific details
Language decoder · 36 repetitions
Qwen3 grouped-query attention followed by a 9728-wide SwiGLU network.
Attention and positions
36 full-attention layers; 32 query heads share eight KV heads of width 128. Q/K use per-head RMSNorm. The text configuration permits 262144 positions; the model card specifies a 32768-token working context.
Memory
Eight key/value heads per decoder layer. Screenshot history and persistent bash sessions are managed by the agent harness.

One policy, two kinds of action

The language decoder produces either a GUI action or a terminal tool call. The harness executes that action and returns observations. Its external tool loop is separate from the transformer stack.

How it scores

Developer reported

Checkpoint / sizeResultEvaluation
Mage-VL-Cowork66.04%OSWorld-Verified Microsoft Mage launch · 361 tasksMAGEHybridAgent; 361 tasks excluding Google Drive; 50-step budget; two-run mean (65.33%, 66.75%); history_n=3; images_to_keep=3; 1920×1080 desktop

Explore the components

Sources for this map