Rúben GalvãoThe Rabbit Hole

The Rabbit Hole / AI / Model architectures

Cohere · Architecture map

Command A 111B

Three sliding-window layers with rotary positions, then one global layer with no positional encoding, repeated 16 times.

Command A 03-2025, March 2025 · Command release timeline

Inside Command A 111B

Parameters
111B
Layers
64
Width
12,288
Mixer
Grouped-query
Select a component to explore it. Layer colours match the execution-order strip.
The complete Command A 111B architectureInput IDs select embeddings. Layer types execute in the order strip; dotted lines connect the type examples below. 96 query heads share 8 key/value heads, head size 128. Three of every four layers use a 4,096-token sliding window with RoPE. Every fourth layer is global and uses no positional embedding. The last layer is a global one. Keys and values for 8 key/value heads per token per layer. The 48 sliding layers keep only the last 4,096 tokens. Final normalisation and output weights produce vocabulary scores and the next-token distribution.Text becomes token IDs.Text → tokens → IDstheoldrabbitsleepsEmbedding lookup256,00012,288Input token vectorsCL12,288Execution order · 64 layersLayer 1: Sliding-window layers (three of every four)Layer 2: Sliding-window layers (three of every four)Layer 3: Sliding-window layers (three of every four)Layer 4: Global layers (every fourth)Layer 5: Sliding-window layers (three of every four)Layer 6: Sliding-window layers (three of every four)Layer 7: Sliding-window layers (three of every four)Layer 8: Global layers (every fourth)Layer 9: Sliding-window layers (three of every four)Layer 10: Sliding-window layers (three of every four)Layer 11: Sliding-window layers (three of every four)Layer 12: Global layers (every fourth)Layer 13: Sliding-window layers (three of every four)Layer 14: Sliding-window layers (three of every four)Layer 15: Sliding-window layers (three of every four)Layer 16: Global layers (every fourth)Layer 17: Sliding-window layers (three of every four)Layer 18: Sliding-window layers (three of every four)Layer 19: Sliding-window layers (three of every four)Layer 20: Global layers (every fourth)Layer 21: Sliding-window layers (three of every four)Layer 22: Sliding-window layers (three of every four)Layer 23: Sliding-window layers (three of every four)Layer 24: Global layers (every fourth)Layer 25: Sliding-window layers (three of every four)Layer 26: Sliding-window layers (three of every four)Layer 27: Sliding-window layers (three of every four)Layer 28: Global layers (every fourth)Layer 29: Sliding-window layers (three of every four)Layer 30: Sliding-window layers (three of every four)Layer 31: Sliding-window layers (three of every four)Layer 32: Global layers (every fourth)Layer 33: Sliding-window layers (three of every four)Layer 34: Sliding-window layers (three of every four)Layer 35: Sliding-window layers (three of every four)Layer 36: Global layers (every fourth)Layer 37: Sliding-window layers (three of every four)Layer 38: Sliding-window layers (three of every four)Layer 39: Sliding-window layers (three of every four)Layer 40: Global layers (every fourth)Layer 41: Sliding-window layers (three of every four)Layer 42: Sliding-window layers (three of every four)Layer 43: Sliding-window layers (three of every four)Layer 44: Global layers (every fourth)Layer 45: Sliding-window layers (three of every four)Layer 46: Sliding-window layers (three of every four)Layer 47: Sliding-window layers (three of every four)Layer 48: Global layers (every fourth)Layer 49: Sliding-window layers (three of every four)Layer 50: Sliding-window layers (three of every four)Layer 51: Sliding-window layers (three of every four)Layer 52: Global layers (every fourth)Layer 53: Sliding-window layers (three of every four)Layer 54: Sliding-window layers (three of every four)Layer 55: Sliding-window layers (three of every four)Layer 56: Global layers (every fourth)Layer 57: Sliding-window layers (three of every four)Layer 58: Sliding-window layers (three of every four)Layer 59: Sliding-window layers (three of every four)Layer 60: Global layers (every fourth)Layer 61: Sliding-window layers (three of every four)Layer 62: Sliding-window layers (three of every four)Layer 63: Sliding-window layers (three of every four)Layer 64: Global layers (every fourth)Sliding-window layers (three of every four) · matches this colour in the execution-order barSliding-window layers (three of eve…Sliding-window layers (three of every four) · 48 repetitions48 layers · one layer shown48One shared normalisation feeds both branches.Shared LayerNormDense gated network with intermediate size 36864. Local attention with RoPE.Grouped-queryattentionRotate query and key position components before attention scores; values are unchanged. Dense gated network with intermediate size 36864. Local attention with RoPE.RoPESliding-window attention over 4,096 tokens.4,096Dense gated network with intermediate size 36864. Local attention with RoPE.SwiGLUBoth branches read the same input and update the residual together.+Parallel branches · one residual updateLayer type · execution order aboveGlobal layers (every fourth) · matches this colour in the execution-order barGlobal layers (every fourth)Global layers (every fourth) · 16 repetitions16 layers · one layer shown16One shared normalisation feeds both branches.Shared LayerNormSame dense network. Full attention with no positional embedding.Grouped-queryattentionNo explicit positional embedding in this attention layer. Causal masking still restricts which tokens it can read.NoPESame dense network. Full attention with no positional embedding.SwiGLUBoth branches read the same input and update the residual together.+Parallel branches · one residual updateLayer type · execution order aboveAfter all 64 layer executionsResidual streamLast columnCL12,288Final LayerNormReuses the embedding table, transposed.Tied output weights12,288256,000Vocabulary scoresSoftmax256,000Next-token probabilities
Inside grouped-query attention · Sliding-window layers (three of every four)
12 query heads per group × 8 K/V groups.

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

Command A 111B: Sliding-window layers (three of every four) · grouped-query attention96 query heads share 8 key/value heads, head size 128. Three of every four layers use a 4,096-token sliding window with RoPE. Every fourth layer is global and uses no positional embedding. The last layer is a global one. Keys and values for 8 key/value heads per token per layer. The 48 sliding layers keep only the last 4,096 tokens.8 KV groups; the front face shows one representative.8 KV groups12 heads / group; the front face shows one representative.12 heads / groupAttention input. 96 query heads share 8 key/value heads, head size 128. Three of every four layers use a 4,096-token sliding window with RoPE. Every fourth layer is global and uses no positional embedding. The last layer is a global one.Earlier context is dimmed; outlined columns are current.Current token computation.Attention input12,288CLWq. 96 query heads share 8 key/value heads, head size 128. Three of every four layers use a 4,096-token sliding window with RoPE. Every fourth layer is global and uses no positional embedding. The last layer is a global one.Wq12,288128Wk. 96 query heads share 8 key/value heads, head size 128. Three of every four layers use a 4,096-token sliding window with RoPE. Every fourth layer is global and uses no positional embedding. The last layer is a global one.Wk12,288128Wv. 96 query heads share 8 key/value heads, head size 128. Three of every four layers use a 4,096-token sliding window with RoPE. Every fourth layer is global and uses no positional embedding. The last layer is a global one.Wv12,288128RoPE. 96 query heads share 8 key/value heads, head size 128. Three of every four layers use a 4,096-token sliding window with RoPE. Every fourth layer is global and uses no positional embedding. The last layer is a global one.RoPERoPE. 96 query heads share 8 key/value heads, head size 128. Three of every four layers use a 4,096-token sliding window with RoPE. Every fourth layer is global and uses no positional embedding. The last layer is a global one.RoPEK cache. 96 query heads share 8 key/value heads, head size 128. Three of every four layers use a 4,096-token sliding window with RoPE. Every fourth layer is global and uses no positional embedding. The last layer is a global one.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.K cache128≤ 4096V cache. 96 query heads share 8 key/value heads, head size 128. Three of every four layers use a 4,096-token sliding window with RoPE. Every fourth layer is global and uses no positional embedding. The last layer is a global one.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.V cache128≤ 4096Q context. 96 query heads share 8 key/value heads, head size 128. Three of every four layers use a 4,096-token sliding window with RoPE. Every fourth layer is global and uses no positional embedding. The last layer is a global one.Earlier context is dimmed; outlined columns are current.Current token computation.Q context128CLScaled query–key scores, masking and softmax. 96 query heads share 8 key/value heads, head size 128. Three of every four layers use a 4,096-token sliding window with RoPE. Every fourth layer is global and uses no positional embedding. The last layer is a global one.96 query heads share 8 key/value heads, head size 128. Three of every four layers use a 4,096-token sliding window with RoPE. Every fourth layer is global and uses no positional embedding. The last layer is a global one.Window 4,096CLCL×. 96 query heads share 8 key/value heads, head size 128. Three of every four layers use a 4,096-token sliding window with RoPE. Every fourth layer is global and uses no positional embedding. The last layer is a global one.×Joined heads. 96 query heads share 8 key/value heads, head size 128. Three of every four layers use a 4,096-token sliding window with RoPE. Every fourth layer is global and uses no positional embedding. The last layer is a global one.96Wo. 96 query heads share 8 key/value heads, head size 128. Three of every four layers use a 4,096-token sliding window with RoPE. Every fourth layer is global and uses no positional embedding. The last layer is a global one.Wo12,28812,288Attention output. 96 query heads share 8 key/value heads, head size 128. Three of every four layers use a 4,096-token sliding window with RoPE. Every fourth layer is global and uses no positional embedding. The last layer is a global one.Earlier context is dimmed; outlined columns are current.Current token computation.Attention output12,288CL
Inside grouped-query attention · Global layers (every fourth)
12 query heads per group × 8 K/V groups.

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

Command A 111B: Global layers (every fourth) · grouped-query attention96 query heads share 8 key/value heads, head size 128. Three of every four layers use a 4,096-token sliding window with RoPE. Every fourth layer is global and uses no positional embedding. The last layer is a global one. Keys and values for 8 key/value heads per token per layer. The 48 sliding layers keep only the last 4,096 tokens.8 KV groups; the front face shows one representative.8 KV groups12 heads / group; the front face shows one representative.12 heads / groupAttention input. 96 query heads share 8 key/value heads, head size 128. Three of every four layers use a 4,096-token sliding window with RoPE. Every fourth layer is global and uses no positional embedding. The last layer is a global one.Earlier context is dimmed; outlined columns are current.Current token computation.Attention input12,288CLWq. 96 query heads share 8 key/value heads, head size 128. Three of every four layers use a 4,096-token sliding window with RoPE. Every fourth layer is global and uses no positional embedding. The last layer is a global one.Wq12,288128Wk. 96 query heads share 8 key/value heads, head size 128. Three of every four layers use a 4,096-token sliding window with RoPE. Every fourth layer is global and uses no positional embedding. The last layer is a global one.Wk12,288128Wv. 96 query heads share 8 key/value heads, head size 128. Three of every four layers use a 4,096-token sliding window with RoPE. Every fourth layer is global and uses no positional embedding. The last layer is a global one.Wv12,288128K cache. 96 query heads share 8 key/value heads, head size 128. Three of every four layers use a 4,096-token sliding window with RoPE. Every fourth layer is global and uses no positional embedding. The last layer is a global one.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.K cache128CLV cache. 96 query heads share 8 key/value heads, head size 128. Three of every four layers use a 4,096-token sliding window with RoPE. Every fourth layer is global and uses no positional embedding. The last layer is a global one.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.V cache128CLQ context. 96 query heads share 8 key/value heads, head size 128. Three of every four layers use a 4,096-token sliding window with RoPE. Every fourth layer is global and uses no positional embedding. The last layer is a global one.Earlier context is dimmed; outlined columns are current.Current token computation.Q context128CLScaled query–key scores, masking and softmax. 96 query heads share 8 key/value heads, head size 128. Three of every four layers use a 4,096-token sliding window with RoPE. Every fourth layer is global and uses no positional embedding. The last layer is a global one.96 query heads share 8 key/value heads, head size 128. Three of every four layers use a 4,096-token sliding window with RoPE. Every fourth layer is global and uses no positional embedding. The last layer is a global one.NoPECLCL×. 96 query heads share 8 key/value heads, head size 128. Three of every four layers use a 4,096-token sliding window with RoPE. Every fourth layer is global and uses no positional embedding. The last layer is a global one.×Joined heads. 96 query heads share 8 key/value heads, head size 128. Three of every four layers use a 4,096-token sliding window with RoPE. Every fourth layer is global and uses no positional embedding. The last layer is a global one.96Wo. 96 query heads share 8 key/value heads, head size 128. Three of every four layers use a 4,096-token sliding window with RoPE. Every fourth layer is global and uses no positional embedding. The last layer is a global one.Wo12,28812,288Attention output. 96 query heads share 8 key/value heads, head size 128. Three of every four layers use a 4,096-token sliding window with RoPE. Every fourth layer is global and uses no positional embedding. The last layer is a global one.Earlier context is dimmed; outlined columns are current.Current token computation.Attention output12,288CL
Model-specific details
Sliding-window layers (three of every four) · 48 repetitions
Dense gated network with intermediate size 36864. Local attention with RoPE.
Global layers (every fourth) · 16 repetitions
Same dense network. Full attention with no positional embedding.
Attention and positions
96 query heads share 8 key/value heads, head size 128. Three of every four layers use a 4,096-token sliding window with RoPE. Every fourth layer is global and uses no positional embedding. The last layer is a global one.
Memory
Keys and values for 8 key/value heads per token per layer. The 48 sliding layers keep only the last 4,096 tokens.

Local and global layers

The 64-layer stack repeats three 4,096-token sliding-window layers followed by one global layer. Only local layers apply RoPE; every fourth layer is global and uses NoPE.

Command A 03-2025 supports a 262,144-token context.

How it scores

AA Intelligence Index

Version 4.3.2 · higher is better · checked 2026-11-01. Separate from Epoch ECI.

Checkpoint / sizeResultEvaluation
Command A7Estimated by AAAA Index 4.3.2Published checkpoint

Explore the components

Sources for this map