Rúben GalvãoThe Rabbit Hole

The Rabbit Hole / AI / Model architectures

Thinking Machines Lab · Architecture map

Inkling 2 Small

A 48-layer multimodal MoE with learned relative attention and block attention residuals.

Inkling 2 Small, November 2026 · Inkling release timeline

Inside Inkling 2 Small

Parameters
594B · 17B active
Layers
48
Width
4,608
Mixer
Grouped-query
Select a component to explore it. Layer colours match the execution-order strip.
The complete Inkling 2 Small architectureInput IDs select embeddings. Layer types execute in the order strip; dotted lines connect the type examples below. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input. 40 local caches of at most 1024 tokens and eight full-history caches. Convolution state is separate. Final normalisation and output weights produce vocabulary scores and the next-token distribution.Text becomes token IDs.Text → tokens → IDstheoldrabbitsleepsEmbedding lookup201,0244,608Input token vectorsCL4,60823 vision layers, width 1024, 16 heads, 20-pixel native patches and 2×2 adapter merging.Vision / videoencoderExecution order · 48 layersLayer 1: Windowed attentionLayer 2: Windowed attentionLayer 3: Windowed attentionLayer 4: Windowed attentionLayer 5: Windowed attentionLayer 6: Full attentionLayer 7: Windowed attentionLayer 8: Windowed attentionLayer 9: Windowed attentionLayer 10: Windowed attentionLayer 11: Windowed attentionLayer 12: Full attentionLayer 13: Windowed attentionLayer 14: Windowed attentionLayer 15: Windowed attentionLayer 16: Windowed attentionLayer 17: Windowed attentionLayer 18: Full attentionLayer 19: Windowed attentionLayer 20: Windowed attentionLayer 21: Windowed attentionLayer 22: Windowed attentionLayer 23: Windowed attentionLayer 24: Full attentionLayer 25: Windowed attentionLayer 26: Windowed attentionLayer 27: Windowed attentionLayer 28: Windowed attentionLayer 29: Windowed attentionLayer 30: Full attentionLayer 31: Windowed attentionLayer 32: Windowed attentionLayer 33: Windowed attentionLayer 34: Windowed attentionLayer 35: Windowed attentionLayer 36: Full attentionLayer 37: Windowed attentionLayer 38: Windowed attentionLayer 39: Windowed attentionLayer 40: Windowed attentionLayer 41: Windowed attentionLayer 42: Full attentionLayer 43: Windowed attentionLayer 44: Windowed attentionLayer 45: Windowed attentionLayer 46: Windowed attentionLayer 47: Windowed attentionLayer 48: Full attentionWindowed attention · matches this colour in the execution-order barWindowed attentionWindowed attention · 40 repetitions40 layers · one layer shown40RMSNorm before this operation.RMSNormSliding-window attention: Eight of 384 routed experts; intermediate width 2304. Learned relative attention and short convolutions.Sliding-windowattentionAdd query-dependent learned relative scores to content attention scores. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.Learned relative bias48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.Output gateSliding-window attention over 1,024 tokens.1,02448 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.Attention sink48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.Value normBlock attention residuals · 6 layers per block. Combine the residual and branch contributions using the model’s learned weighting. +RMSNorm before this operation.RMSNormMoE: Eight of 384 routed experts; intermediate width 2304. Learned relative attention and short convolutions.MoE8 of 384 routed experts selected per token. Highlighted boxes are schematic; boxes do not correspond one-to-one to experts.Block attention residuals · 6 layers per block. Combine the residual and branch contributions using the model’s learned weighting. +8 of 384 expertsLayer type · execution order aboveFull attention · matches this colour in the execution-order barFull attentionFull attention · 8 repetitions8 layers · one layer shown8RMSNorm before this operation.RMSNormGrouped-query attention: Eight of 384 routed experts; intermediate width 2304. Learned relative attention and short convolutions.Grouped-queryattentionAdd query-dependent learned relative scores to content attention scores. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.Learned relative bias48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.Output gate48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.Attention sink48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.Value normBlock attention residuals · 6 layers per block. Combine the residual and branch contributions using the model’s learned weighting. +RMSNorm before this operation.RMSNormMoE: Eight of 384 routed experts; intermediate width 2304. Learned relative attention and short convolutions.MoE8 of 384 routed experts selected per token. Highlighted boxes are schematic; boxes do not correspond one-to-one to experts.Block attention residuals · 6 layers per block. Combine the residual and branch contributions using the model’s learned weighting. +8 of 384 expertsLayer type · execution order aboveAfter all 48 layer executionsResidual streamLast columnCL4,608Final RMSNormA separate learned vocabulary projection.Output weights4,608201,024Vocabulary scoresSoftmax201,024Next-token probabilities
Inside grouped-query attention · Windowed attention
6 query heads per group × 8 K/V groups.

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

Inkling 2 Small: Windowed attention · grouped-query attention48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input. 40 local caches of at most 1024 tokens and eight full-history caches. Convolution state is separate.Attention input. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.Earlier context is dimmed; outlined columns are current.Current token computation.Attention input4,608CLWq. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.Wq4,608128Wr. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.Wr4,60816Wk. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.Wk4,608128Wv. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.Wv4,608128L2 clip. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.L2 clipL2 clip. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.L2 clipCausal 4-tap depthwise convolution with separate visit state; static learned taps.Short convCausal 4-tap depthwise convolution with separate visit state; static learned taps.Short convL2 clip. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.L2 clipPer-head value RMS normalisation without learned scale.RMSNormQ. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.Earlier context is dimmed; outlined columns are current.Current token computation.Q128CLK cache. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.K cache128≤ 1024V cache. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.V cache128≤ 1024Relative table. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.Relative table161,024Dot the clipped relative query with the learned vector indexed by relative distance; add these logits to content scores before softmax.Relative scoreQ · K. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.Q · KAdd logits. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.Add logitsWsink. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.Wsink4,6081Softmax over content plus relative logits, with a projected sink logit in the normalisation. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.Window 1,02448 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.SinkCLCL×. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.×Wg. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.Wg4,608128σ. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.σ×. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.×Joined heads. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.48Wo. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.Wo6,1444,608Causal depthwise convolution on the projected attention output before the attention-residual update.Short convAttention output. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.Earlier context is dimmed; outlined columns are current.Current token computation.Attention output4,608CL
Inside grouped-query attention · Full attention
6 query heads per group × 8 K/V groups.

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

Inkling 2 Small: Full attention · grouped-query attention48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input. 40 local caches of at most 1024 tokens and eight full-history caches. Convolution state is separate.Completed block outputs and the current partial block.Earlier context is dimmed; outlined columns are current.Current token computation.Block states4,608CLWq. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.Wq4,608128Wr. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.Wr4,60816Wk. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.Wk4,608128Wv. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.Wv4,608128Independent learned attention-residual query, followed by input RMSNorm.Q readIndependent learned attention-residual query, followed by input RMSNorm.K readIndependent learned attention-residual query, followed by input RMSNorm.V readL2 clip. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.L2 clipL2 clip. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.L2 clipCausal 4-tap depthwise convolution with separate visit state; input-dependent taps supplement static taps.Dynamic convCausal 4-tap depthwise convolution with separate visit state; input-dependent taps supplement static taps.Dynamic convL2 clip. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.L2 clipPer-head value RMS normalisation without learned scale.RMSNormQ. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.Earlier context is dimmed; outlined columns are current.Current token computation.Q128CLK cache. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.K cache128CLV cache. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.V cache128CLRelative table. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.Relative table161,024Dot the clipped relative query with the learned vector indexed by relative distance; add these logits to content scores before softmax.Relative scoreQ · K. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.Q · KAdd logits. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.Add logitsWsink. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.Wsink4,6081Softmax over content plus relative logits, with a projected sink logit in the normalisation. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.SinkCLCL×. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.×Wg. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.Wg4,608128σ. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.σ×. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.×Joined heads. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.48Wo. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.Wo6,1444,608Causal depthwise convolution on the projected attention output before the attention-residual update.Short convAttention output. 48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.Earlier context is dimmed; outlined columns are current.Current token computation.Attention output4,608CL
Model-specific details
Windowed attention · 40 repetitions
Eight of 384 routed experts; intermediate width 2304. Learned relative attention and short convolutions.
Full attention · 8 repetitions
Eight of 384 routed experts; intermediate width 2304. Learned relative attention and short convolutions.
Attention and positions
48 query heads, eight KV heads, head width 128. Five windowed layers precede each global layer; relative position score width 16 and extent 1024. Static local and dynamic global K/V convolutions. Each global layer reads three independently mixed attention residuals for Q, K and V; local layers read one. The relative query, sink and output gate use the query-side input.
Memory
40 local caches of at most 1024 tokens and eight full-history caches. Convolution state is separate.

What changes from Mini

Explore the components

Sources for this map