Rúben GalvãoThe Rabbit Hole

The Rabbit Hole / AI / Model architectures

Tencent · Architecture map

Hy4 preview

Latent attention with a sparse token selector that most layers share, a sigmoid gate and a learnable sink on every head, and a residual stream widened to four copies.

Hy4 preview, August 2026 · Hunyuan release timeline

Inside Hy4 preview

Parameters
770B · 49B active
Layers
78
Width
6,144
Mixer
Latent
Select a component to explore it. Layer colours match the execution-order strip.
The complete Hy4 preview architectureInput IDs select embeddings. Layer types execute in the order strip; dotted lines connect the type examples below. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink. A 512-value KV latent plus a 64-value rotary key per token per layer, plus the indexer's keys (128 values per token) in the 21 layers that run an indexer. Final normalisation and output weights produce vocabulary scores and the next-token distribution.Text becomes token IDs.Text → tokens → IDstheoldrabbitsleepsEmbedding lookup120,8326,144Input token vectorsCL6,144Execution order · 78 layersLayer 1: Transformer layer 1Layer 2: Indexer layers 2, 6, 10 and every fourth after, to 78Layer 3: Layers that reuse the indexer (the other 57)Layer 4: Layers that reuse the indexer (the other 57)Layer 5: Layers that reuse the indexer (the other 57)Layer 6: Indexer layers 2, 6, 10 and every fourth after, to 78Layer 7: Layers that reuse the indexer (the other 57)Layer 8: Layers that reuse the indexer (the other 57)Layer 9: Layers that reuse the indexer (the other 57)Layer 10: Indexer layers 2, 6, 10 and every fourth after, to 78Layer 11: Layers that reuse the indexer (the other 57)Layer 12: Layers that reuse the indexer (the other 57)Layer 13: Layers that reuse the indexer (the other 57)Layer 14: Indexer layers 2, 6, 10 and every fourth after, to 78Layer 15: Layers that reuse the indexer (the other 57)Layer 16: Layers that reuse the indexer (the other 57)Layer 17: Layers that reuse the indexer (the other 57)Layer 18: Indexer layers 2, 6, 10 and every fourth after, to 78Layer 19: Layers that reuse the indexer (the other 57)Layer 20: Layers that reuse the indexer (the other 57)Layer 21: Layers that reuse the indexer (the other 57)Layer 22: Indexer layers 2, 6, 10 and every fourth after, to 78Layer 23: Layers that reuse the indexer (the other 57)Layer 24: Layers that reuse the indexer (the other 57)Layer 25: Layers that reuse the indexer (the other 57)Layer 26: Indexer layers 2, 6, 10 and every fourth after, to 78Layer 27: Layers that reuse the indexer (the other 57)Layer 28: Layers that reuse the indexer (the other 57)Layer 29: Layers that reuse the indexer (the other 57)Layer 30: Indexer layers 2, 6, 10 and every fourth after, to 78Layer 31: Layers that reuse the indexer (the other 57)Layer 32: Layers that reuse the indexer (the other 57)Layer 33: Layers that reuse the indexer (the other 57)Layer 34: Indexer layers 2, 6, 10 and every fourth after, to 78Layer 35: Layers that reuse the indexer (the other 57)Layer 36: Layers that reuse the indexer (the other 57)Layer 37: Layers that reuse the indexer (the other 57)Layer 38: Indexer layers 2, 6, 10 and every fourth after, to 78Layer 39: Layers that reuse the indexer (the other 57)Layer 40: Layers that reuse the indexer (the other 57)Layer 41: Layers that reuse the indexer (the other 57)Layer 42: Indexer layers 2, 6, 10 and every fourth after, to 78Layer 43: Layers that reuse the indexer (the other 57)Layer 44: Layers that reuse the indexer (the other 57)Layer 45: Layers that reuse the indexer (the other 57)Layer 46: Indexer layers 2, 6, 10 and every fourth after, to 78Layer 47: Layers that reuse the indexer (the other 57)Layer 48: Layers that reuse the indexer (the other 57)Layer 49: Layers that reuse the indexer (the other 57)Layer 50: Indexer layers 2, 6, 10 and every fourth after, to 78Layer 51: Layers that reuse the indexer (the other 57)Layer 52: Layers that reuse the indexer (the other 57)Layer 53: Layers that reuse the indexer (the other 57)Layer 54: Indexer layers 2, 6, 10 and every fourth after, to 78Layer 55: Layers that reuse the indexer (the other 57)Layer 56: Layers that reuse the indexer (the other 57)Layer 57: Layers that reuse the indexer (the other 57)Layer 58: Indexer layers 2, 6, 10 and every fourth after, to 78Layer 59: Layers that reuse the indexer (the other 57)Layer 60: Layers that reuse the indexer (the other 57)Layer 61: Layers that reuse the indexer (the other 57)Layer 62: Indexer layers 2, 6, 10 and every fourth after, to 78Layer 63: Layers that reuse the indexer (the other 57)Layer 64: Layers that reuse the indexer (the other 57)Layer 65: Layers that reuse the indexer (the other 57)Layer 66: Indexer layers 2, 6, 10 and every fourth after, to 78Layer 67: Layers that reuse the indexer (the other 57)Layer 68: Layers that reuse the indexer (the other 57)Layer 69: Layers that reuse the indexer (the other 57)Layer 70: Indexer layers 2, 6, 10 and every fourth after, to 78Layer 71: Layers that reuse the indexer (the other 57)Layer 72: Layers that reuse the indexer (the other 57)Layer 73: Layers that reuse the indexer (the other 57)Layer 74: Indexer layers 2, 6, 10 and every fourth after, to 78Layer 75: Layers that reuse the indexer (the other 57)Layer 76: Layers that reuse the indexer (the other 57)Layer 77: Layers that reuse the indexer (the other 57)Layer 78: Indexer layers 2, 6, 10 and every fourth after, to 78Transformer layer 1 · matches this colour in the execution-order barTransformer layer 1Transformer layer 1 · 1 repetitionsIndependent layer type1RMSNorm before this operation.RMSNormGated MLA: Dense feed-forward network (hidden size 18432).Gated MLARotate query and key position components before attention scores; values are unchanged. Dense feed-forward network (hidden size 18432).RoPE64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.Attention sinkThis layer scores past tokens itself and keeps the top 2048.Token indexerSelected positionsApply the hyper-connection update. UpdateRMSNorm before this operation.RMSNormSwiGLU: Dense feed-forward network (hidden size 18432).SwiGLUApply the hyper-connection update. UpdateLayer type · execution order aboveIndexer layers 2, 6, 10 and every fourth after, to 78 · matches this colour in the execution-order barIndexer layers 2, 6, 10 and every f…Indexer layers 2, 6, 10 and every fourth after, to 78 · 20 repetitions20 layers · one layer shown20RMSNorm before this operation.RMSNormGated MLA: 256 routed experts (size 2048), 8 chosen per token, plus 1 shared expert of size 2048.Gated MLARotate query and key position components before attention scores; values are unchanged. 256 routed experts (size 2048), 8 chosen per token, plus 1 shared expert of size 2048.RoPE64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.Attention sinkThis layer scores past tokens itself and keeps the top 2048. The next three layers reuse its choice.Token indexerSelected positionsApply the hyper-connection update. UpdateRMSNorm before this operation.RMSNormMoE: 256 routed experts (size 2048), 8 chosen per token, plus 1 shared expert of size 2048.MoE8 of 256 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.Apply the hyper-connection update. Update8 of 256 experts + 1sharedLayer type · execution order aboveLayers that reuse the indexer (the other 57) · matches this colour in the execution-order barLayers that reuse the indexer (the …Layers that reuse the indexer (the other 57) · 57 repetitions57 layers · one layer shown57RMSNorm before this operation.RMSNormGated MLA: Same expert block. These layers run no indexer; they read the top 2048 tokens chosen by the most recent layer that did.Gated MLARotate query and key position components before attention scores; values are unchanged. Same expert block. These layers run no indexer; they read the top 2048 tokens chosen by the most recent layer that did.RoPE64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.Attention sinkEarlier layerThe token choice comes from the latest layer that ran an indexer.ReusedselectionSelected positionsApply the hyper-connection update. UpdateRMSNorm before this operation.RMSNormMoE: Same expert block. These layers run no indexer; they read the top 2048 tokens chosen by the most recent layer that did.MoE8 of 256 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.Apply the hyper-connection update. Update8 of 256 experts + 1sharedLayer type · execution order aboveAfter all 78 layer executionsiHC · 4 residual streamsLast columnCL6,144Final RMSNormA separate learned vocabulary projection.Output weights6,144120,832Vocabulary scoresSoftmax120,832Next-token probabilities
Inside latent attention · Transformer layer 1
64 heads · 512 cached latent values + 64 rotary values.

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

Hy4 preview: Transformer layer 1 · latent attention64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink. A 512-value KV latent plus a 64-value rotary key per token per layer, plus the indexer's keys (128 values per token) in the 21 layers that run an indexer.1 shared latent cache; the front face shows one representative.1 shared latent cache64 attention heads; the front face shows one representative.64 attention headsAttention input. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.Earlier context is dimmed; outlined columns are current.Current token computation.Attention input6,144CLWq↓. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.Wq↓6,1442,048RMSNorm. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.RMSNormWq↑. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.Wq↑2,048256RoPE 64. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.RoPE 64Wkv↓. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.Wkv↓6,144512RMSNorm. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.RMSNorm512Wkᴿ. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.Wkᴿ6,14464RoPE 64. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.RoPE 64cᴷⱽ ⊕ kᴿ. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.cᴷⱽ ⊕ kᴿLatent cache. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.Latent cache576CLWk↑. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.Wk↑512192Wv↑. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.Wv↑512256kᶜ ⊕ kᴿ. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.kᶜ ⊕ kᴿ256Q context. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.Earlier context is dimmed; outlined columns are current.Current token computation.Q context256CLTop 2048. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.Top 2048Scaled query–key scores, masking and softmax. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.SinkCLCL×. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.×Wg. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.Wg6,144256σ. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.σ×. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.×Joined heads. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.64Wo. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.Wo16,3846,144Attention output. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.Earlier context is dimmed; outlined columns are current.Current token computation.Attention output6,144CL
Inside latent attention · Layers that reuse the indexer (the other 57)
64 heads · 512 cached latent values + 64 rotary values.

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

Hy4 preview: Layers that reuse the indexer (the other 57) · latent attention64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink. A 512-value KV latent plus a 64-value rotary key per token per layer, plus the indexer's keys (128 values per token) in the 21 layers that run an indexer.1 shared latent cache; the front face shows one representative.1 shared latent cache64 attention heads; the front face shows one representative.64 attention headsAttention input. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.Earlier context is dimmed; outlined columns are current.Current token computation.Attention input6,144CLWq↓. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.Wq↓6,1442,048RMSNorm. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.RMSNormWq↑. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.Wq↑2,048256RoPE 64. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.RoPE 64Wkv↓. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.Wkv↓6,144512RMSNorm. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.RMSNorm512Wkᴿ. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.Wkᴿ6,14464RoPE 64. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.RoPE 64cᴷⱽ ⊕ kᴿ. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.cᴷⱽ ⊕ kᴿLatent cache. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.Earlier columns are cached; outlined columns are newly computed.Cached positions from earlier decoding steps.Current token computation.Latent cache576CLWk↑. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.Wk↑512192Wv↑. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.Wv↑512256kᶜ ⊕ kᴿ. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.kᶜ ⊕ kᴿ256Q context. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.Earlier context is dimmed; outlined columns are current.Current token computation.Q context256CLReuse 2048. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.Reuse 2048Earlier choice. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.Earlier choiceScaled query–key scores, masking and softmax. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.SinkCLCL×. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.×Wg. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.Wg6,144256σ. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.σ×. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.×Joined heads. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.64Wo. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.Wo16,3846,144Attention output. 64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.Earlier context is dimmed; outlined columns are current.Current token computation.Attention output6,144CL
Model-specific details
Transformer layer 1 · 1 repetitions
Dense feed-forward network (hidden size 18432).
indexer runs here
This layer scores past tokens itself and keeps the top 2048.
Indexer layers 2, 6, 10 and every fourth after, to 78 · 20 repetitions
256 routed experts (size 2048), 8 chosen per token, plus 1 shared expert of size 2048.
indexer runs here
This layer scores past tokens itself and keeps the top 2048. The next three layers reuse its choice.
Layers that reuse the indexer (the other 57) · 57 repetitions
Same expert block. These layers run no indexer; they read the top 2048 tokens chosen by the most recent layer that did.
reuses an earlier indexer
The token choice comes from the latest layer that ran an indexer.
Attention and positions
64 heads over a latent cache: queries are compressed to rank 2048, keys and values to a 512-value latent. Each head has a key of 192 content plus 64 rotary values and a value of 256. A sparse indexer (32 heads of size 128) picks the top 2048 tokens, but it runs in only 21 of 78 layers; the other 57 reuse the choice of the latest layer that ran one. The attention output of each head is multiplied by a sigmoid gate computed from the layer input, and each head has a learnable sink.
Memory
A 512-value KV latent plus a 64-value rotary key per token per layer, plus the indexer's keys (128 values per token) in the 21 layers that run an indexer.

What changes from Hy3

The preview has width 6,144 and supports 1,048,576 tokens.

Explore the components

Sources for this map