Rúben GalvãoThe Rabbit Hole

The Rabbit Hole / AI / Model architectures

Aleph Alpha · Architecture map

Kolibri 1.1

Indexed attention and cross-layer KV reuse replace Kolibri's unrestricted global reads.

Kolibri 1.1 · Kolibri release timeline

Inside Kolibri 1.1

Parameters
75B · 3B active
Layers
50
Width
2,560
Mixer
Grouped-query
Indexed layers · independent cache and candidate-pool owners (one-based)
LayerK/V producerCandidate pool producer
55 · own5 · rebuild
105 · reuse5 · reuse
155 · reuse15 · rebuild
2020 · own20 · rebuild
2525 · own20 · reuse
3030 · own30 · rebuild
3530 · reuse30 · reuse
4030 · reuse30 · reuse
4530 · reuse30 · reuse
505 · reuse30 · reuse

Every indexed layer re-ranks its candidate pool using its own query. A reused pool is not a reused final selection.

Select a component to explore it. Layer colours match the execution-order strip.
The complete Kolibri 1.1 architectureInput IDs select embeddings. Layer types execute in the order strip; dotted lines connect the type examples below. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0. 40 local caches (513 tokens) and four full-history KV caches. Four index-pool producers independently determine candidates; every indexed layer re-ranks its own selected positions. KV-only footprint excludes shared pool and quantisation scales. Final normalisation and output weights produce vocabulary scores and the next-token distribution.Text becomes token IDs.Text → tokens → IDstheoldrabbitsleepsEmbedding lookup128,0002,560Input token vectorsCL2,560Execution order · 50 layersLayer 1: Opening local denseLayer 2: Opening local denseLayer 3: Local MoELayer 4: Local MoELayer 5: Own KV · rebuild poolLayer 6: Local MoELayer 7: Local MoELayer 8: Local MoELayer 9: Local MoELayer 10: Shared KV · reuse poolLayer 11: Local MoELayer 12: Local MoELayer 13: Local MoELayer 14: Local MoELayer 15: Shared KV · rebuild poolLayer 16: Local MoELayer 17: Local MoELayer 18: Local MoELayer 19: Local MoELayer 20: Own KV · rebuild poolLayer 21: Local MoELayer 22: Local MoELayer 23: Local MoELayer 24: Local MoELayer 25: Own KV · reuse poolLayer 26: Local MoELayer 27: Local MoELayer 28: Local MoELayer 29: Local MoELayer 30: Own KV · rebuild poolLayer 31: Local MoELayer 32: Local MoELayer 33: Local MoELayer 34: Local MoELayer 35: Shared KV · reuse poolLayer 36: Local MoELayer 37: Local MoELayer 38: Local MoELayer 39: Local MoELayer 40: Shared KV · reuse poolLayer 41: Local MoELayer 42: Local MoELayer 43: Local MoELayer 44: Local MoELayer 45: Shared KV · reuse poolLayer 46: Local MoELayer 47: Local MoELayer 48: Local MoELayer 49: Local MoELayer 50: Shared KV · reuse poolOpening local dense · matches this colour in the execution-order barOpening local denseOpening local dense · 2 repetitions2 layers · one layer shown2RMSNorm before this operation.RMSNormGrouped-query attention: Dense FFN width 3584.Grouped-queryattentionRotate query and key position components before attention scores; values are unchanged. Dense FFN width 3584.RoPESliding-window attention over 513 tokens.513Add the branch output to the original stream. +RMSNorm before this operation.RMSNormDense feed-forward: Dense FFN width 3584.Densefeed-forwardAdd the branch output to the original stream. +Layer type · execution order aboveLocal MoE · matches this colour in the execution-order barLocal MoELocal MoE · 38 repetitions38 layers · one layer shown38RMSNorm before this operation.RMSNormGrouped-query attention: Six routed and one shared expert, width 512.Grouped-queryattentionRotate query and key position components before attention scores; values are unchanged. Six routed and one shared expert, width 512.RoPESliding-window attention over 513 tokens.513Add the branch output to the original stream. +RMSNorm before this operation.RMSNormMoE: Six routed and one shared expert, width 512.MoE6 of 384 routed experts selected per token. Highlighted boxes are schematic; boxes do not correspond one-to-one to experts. 1 shared experts run for every token.Add the branch output to the original stream. +6 of 384 experts + 1sharedLayer type · execution order aboveOwn KV · rebuild pool · matches this colour in the execution-order barOwn KV · rebuild poolOwn KV · rebuild pool · 3 repetitions3 layers · one layer shown3RMSNorm before this operation.RMSNormGrouped-query attention: Make K/V and a fresh candidate pool; re-rank candidates.Grouped-queryattentionNo explicit positional embedding in this attention layer. Causal masking still restricts which tokens it can read.NoPEAdd the branch output to the original stream. +RMSNorm before this operation.RMSNormMoE: Make K/V and a fresh candidate pool; re-rank candidates.MoE6 of 384 routed experts selected per token. Highlighted boxes are schematic; boxes do not correspond one-to-one to experts. 1 shared experts run for every token.Add the branch output to the original stream. +6 of 384 experts + 1sharedLayer type · execution order aboveShared KV · rebuild pool · matches this colour in the execution-order barShared KV · rebuild poolShared KV · rebuild pool · 1 repetitionsIndependent layer type1RMSNorm before this operation.RMSNormGrouped-query attention: Read earlier K/V but calculate a fresh pool.Grouped-queryattentionNo explicit positional embedding in this attention layer. Causal masking still restricts which tokens it can read.NoPEAdd the branch output to the original stream. +RMSNorm before this operation.RMSNormMoE: Read earlier K/V but calculate a fresh pool.MoE6 of 384 routed experts selected per token. Highlighted boxes are schematic; boxes do not correspond one-to-one to experts. 1 shared experts run for every token.Add the branch output to the original stream. +6 of 384 experts + 1sharedLayer type · execution order aboveOwn KV · reuse pool · matches this colour in the execution-order barOwn KV · reuse poolOwn KV · reuse pool · 1 repetitionsIndependent layer type1RMSNorm before this operation.RMSNormGrouped-query attention: Make K/V; re-rank the previous pool.Grouped-queryattentionNo explicit positional embedding in this attention layer. Causal masking still restricts which tokens it can read.NoPEAdd the branch output to the original stream. +RMSNorm before this operation.RMSNormMoE: Make K/V; re-rank the previous pool.MoE6 of 384 routed experts selected per token. Highlighted boxes are schematic; boxes do not correspond one-to-one to experts. 1 shared experts run for every token.Add the branch output to the original stream. +6 of 384 experts + 1sharedLayer type · execution order aboveShared KV · reuse pool · matches this colour in the execution-order barShared KV · reuse poolShared KV · reuse pool · 5 repetitions5 layers · one layer shown5RMSNorm before this operation.RMSNormGrouped-query attention: Read earlier K/V and re-rank the previous pool.Grouped-queryattentionNo explicit positional embedding in this attention layer. Causal masking still restricts which tokens it can read.NoPEAdd the branch output to the original stream. +RMSNorm before this operation.RMSNormMoE: Read earlier K/V and re-rank the previous pool.MoE6 of 384 routed experts selected per token. Highlighted boxes are schematic; boxes do not correspond one-to-one to experts. 1 shared experts run for every token.Add the branch output to the original stream. +6 of 384 experts + 1sharedLayer type · execution order aboveAfter all 50 layer executionsResidual streamLast columnCL2,560Final RMSNormA separate learned vocabulary projection.Output weights2,560128,000Vocabulary scoresSoftmax128,000Next-token probabilities
Inside grouped-query attention · Opening local dense
12 query heads per group × 4 K/V groups.

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

Kolibri 1.1: Opening local dense · grouped-query attention48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0. 40 local caches (513 tokens) and four full-history KV caches. Four index-pool producers independently determine candidates; every indexed layer re-ranks its own selected positions. KV-only footprint excludes shared pool and quantisation scales.4 KV groups; the front face shows one representative.4 KV groups12 heads / group; the front face shows one representative.12 heads / groupAttention input. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.Earlier context is dimmed; outlined columns are current.Current token computation.Attention input2,560CLWq. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.Wq2,560128Wk. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.Wk2,560128Wv. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.Wv2,560128RMSNorm. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.RMSNormRoPE. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.RoPERMSNorm. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.RMSNormRoPE. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.RoPEK cache. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.K cache128≤ 513V cache. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.V cache128≤ 513Q context. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.Earlier context is dimmed; outlined columns are current.Current token computation.Q context128CLScaled query–key scores, masking and softmax. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.Window 513CLCL×. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.×Joined heads. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.48Wo. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.Wo6,1442,560Attention output. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.Earlier context is dimmed; outlined columns are current.Current token computation.Attention output2,560CL
Inside grouped-query attention · Own KV · rebuild pool
12 query heads per group × 4 K/V groups.

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

Kolibri 1.1: Own KV · rebuild pool · grouped-query attention48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0. 40 local caches (513 tokens) and four full-history KV caches. Four index-pool producers independently determine candidates; every indexed layer re-ranks its own selected positions. KV-only footprint excludes shared pool and quantisation scales.4 KV groups; the front face shows one representative.4 KV groups12 heads / group; the front face shows one representative.12 heads / groupAttention input. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.Earlier context is dimmed; outlined columns are current.Current token computation.Attention input2,560CLWq. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.Wq2,560128Wk. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.Wk2,560128Wv. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.Wv2,560128RMSNorm. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.RMSNormRMSNorm. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.RMSNormK cache. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.K cache128CLV cache. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.V cache128CLQ context. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.Earlier context is dimmed; outlined columns are current.Current token computation.Q context128CLRe-rank candidate positions with this layer’s queries and keys; select up to 2048 plus 128 recent and 8 initial tokens.Top 2048Score averaged blocks of 16 keys; retain up to 16384 candidate positions.Block poolScaled query–key scores, masking and softmax. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.NoPECLCL×. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.×Joined heads. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.48Wo. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.Wo6,1442,560Attention output. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.Earlier context is dimmed; outlined columns are current.Current token computation.Attention output2,560CL
Inside grouped-query attention · Shared KV · rebuild pool
12 query heads per group × 4 K/V groups.

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

Kolibri 1.1: Shared KV · rebuild pool · grouped-query attention48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0. 40 local caches (513 tokens) and four full-history KV caches. Four index-pool producers independently determine candidates; every indexed layer re-ranks its own selected positions. KV-only footprint excludes shared pool and quantisation scales.4 KV groups; the front face shows one representative.4 KV groups12 heads / group; the front face shows one representative.12 heads / groupAttention input. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.Earlier context is dimmed; outlined columns are current.Current token computation.Attention input2,560CLWq. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.Wq2,560128RMSNorm. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.RMSNormExact producer varies by layer; see indexed schedule.Earlier layerK cache. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.K cache128CLV cache. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.V cache128CLQ context. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.Earlier context is dimmed; outlined columns are current.Current token computation.Q context128CLRe-rank candidate positions with this layer’s queries and keys; select up to 2048 plus 128 recent and 8 initial tokens.Top 2048Score averaged blocks of 16 keys; retain up to 16384 candidate positions.Block poolScaled query–key scores, masking and softmax. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.NoPECLCL×. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.×Joined heads. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.48Wo. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.Wo6,1442,560Attention output. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.Earlier context is dimmed; outlined columns are current.Current token computation.Attention output2,560CL
Inside grouped-query attention · Own KV · reuse pool
12 query heads per group × 4 K/V groups.

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

Kolibri 1.1: Own KV · reuse pool · grouped-query attention48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0. 40 local caches (513 tokens) and four full-history KV caches. Four index-pool producers independently determine candidates; every indexed layer re-ranks its own selected positions. KV-only footprint excludes shared pool and quantisation scales.4 KV groups; the front face shows one representative.4 KV groups12 heads / group; the front face shows one representative.12 heads / groupAttention input. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.Earlier context is dimmed; outlined columns are current.Current token computation.Attention input2,560CLWq. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.Wq2,560128Wk. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.Wk2,560128Wv. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.Wv2,560128RMSNorm. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.RMSNormRMSNorm. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.RMSNormK cache. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.K cache128CLV cache. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.V cache128CLQ context. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.Earlier context is dimmed; outlined columns are current.Current token computation.Q context128CLRe-rank candidate positions with this layer’s queries and keys; select up to 2048 plus 128 recent and 8 initial tokens.Top 2048Read the most recent candidate pool; final token choices are not shared.Earlier poolScaled query–key scores, masking and softmax. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.NoPECLCL×. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.×Joined heads. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.48Wo. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.Wo6,1442,560Attention output. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.Earlier context is dimmed; outlined columns are current.Current token computation.Attention output2,560CL
Inside grouped-query attention · Shared KV · reuse pool
12 query heads per group × 4 K/V groups.

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

Kolibri 1.1: Shared KV · reuse pool · grouped-query attention48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0. 40 local caches (513 tokens) and four full-history KV caches. Four index-pool producers independently determine candidates; every indexed layer re-ranks its own selected positions. KV-only footprint excludes shared pool and quantisation scales.4 KV groups; the front face shows one representative.4 KV groups12 heads / group; the front face shows one representative.12 heads / groupAttention input. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.Earlier context is dimmed; outlined columns are current.Current token computation.Attention input2,560CLWq. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.Wq2,560128RMSNorm. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.RMSNormExact producer varies by layer; see indexed schedule.Earlier layerK cache. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.K cache128CLV cache. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.V cache128CLQ context. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.Earlier context is dimmed; outlined columns are current.Current token computation.Q context128CLRe-rank candidate positions with this layer’s queries and keys; select up to 2048 plus 128 recent and 8 initial tokens.Top 2048Read the most recent candidate pool; final token choices are not shared.Earlier poolScaled query–key scores, masking and softmax. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.NoPECLCL×. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.×Joined heads. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.48Wo. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.Wo6,1442,560Attention output. 48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.Earlier context is dimmed; outlined columns are current.Current token computation.Attention output2,560CL
Model-specific details
Opening local dense · 2 repetitions
Dense FFN width 3584.
Local MoE · 38 repetitions
Six routed and one shared expert, width 512.
Own KV · rebuild pool · 3 repetitions
Make K/V and a fresh candidate pool; re-rank candidates.
Shared KV · rebuild pool · 1 repetitions
Read earlier K/V but calculate a fresh pool.
Own KV · reuse pool · 1 repetitions
Make K/V; re-rank the previous pool.
Shared KV · reuse pool · 5 repetitions
Read earlier K/V and re-rank the previous pool.
Attention and positions
48 query heads share four KV heads, width 128. Q and K RMSNorm; RoPE only in local attention. Indexed attention uses NoPE and a weight-free selector based on the first 12 query heads and key head 0.
Memory
40 local caches (513 tokens) and four full-history KV caches. Four index-pool producers independently determine candidates; every indexed layer re-ranks its own selected positions. KV-only footprint excludes shared pool and quantisation scales.

What changed

Explore the components

Sources for this map