The Rabbit Hole / AI / Model architectures
Tencent · Architecture map Hy4 Final multimodal flagship with gated sparse latent attention, IndexCache and a separate parallel drafter.
Hy4 final · Hunyuan release timeline
Architecture map What to notice Component articles Compare with another model Sources Inside Hy4
Parameters 770B
Layers 78
Width 6,144
Mixer Latent Select a component to explore it. Layer colours match the execution-order strip. Inside latent attention · Dense opening 64 heads · 512 cached latent values + 64 rotary values. Earlier context dimmed · current token bright · dashed regions contain cached entries.
Hy4: Dense opening · latent attention 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. Each backbone layer retains 512 latent and 64 rotary values per token; 21 indexers retain 128 index values per token. 1 shared latent cache; the front face shows one representative. 1 shared latent cache 64 attention heads; the front face shows one representative. 64 attention heads Attention input. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. Earlier context is dimmed; outlined columns are current. Current token computation. Attention input 6,144 CL Wq↓. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. Wq↓ 6,144 2,048 RMSNorm. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. RMSNorm Wq↑. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. Wq↑ 2,048 256 RoPE 64. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. RoPE 64 Wkv↓. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. Wkv↓ 6,144 512 RMSNorm. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. RMSNorm 512 Wkᴿ. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. Wkᴿ 6,144 64 RoPE 64. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. RoPE 64 cᴷⱽ ⊕ kᴿ. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. cᴷⱽ ⊕ kᴿ Latent cache. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. Earlier columns are cached; outlined columns are newly computed. Cached positions from earlier decoding steps. Current token computation. Latent cache 576 CL Wk↑. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. Wk↑ 512 192 Wv↑. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. Wv↑ 512 256 kᶜ ⊕ kᴿ. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. kᶜ ⊕ kᴿ 256 Q context. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. Earlier context is dimmed; outlined columns are current. Current token computation. Q context 256 CL Top 2048. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. Top 2048 Scaled query–key scores, masking and softmax. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. Sink CL CL ×. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. × Wg. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. Wg 6,144 256 σ. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. σ ×. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. × Joined heads. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. 64 Wo. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. Wo 16,384 6,144 Attention output. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. Earlier context is dimmed; outlined columns are current. Current token computation. Attention output 6,144 CL Inside latent attention · Shared index MoE 64 heads · 512 cached latent values + 64 rotary values. Earlier context dimmed · current token bright · dashed regions contain cached entries.
Hy4: Shared index MoE · latent attention 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. Each backbone layer retains 512 latent and 64 rotary values per token; 21 indexers retain 128 index values per token. 1 shared latent cache; the front face shows one representative. 1 shared latent cache 64 attention heads; the front face shows one representative. 64 attention heads Attention input. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. Earlier context is dimmed; outlined columns are current. Current token computation. Attention input 6,144 CL Wq↓. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. Wq↓ 6,144 2,048 RMSNorm. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. RMSNorm Wq↑. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. Wq↑ 2,048 256 RoPE 64. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. RoPE 64 Wkv↓. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. Wkv↓ 6,144 512 RMSNorm. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. RMSNorm 512 Wkᴿ. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. Wkᴿ 6,144 64 RoPE 64. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. RoPE 64 cᴷⱽ ⊕ kᴿ. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. cᴷⱽ ⊕ kᴿ Latent cache. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. Earlier columns are cached; outlined columns are newly computed. Cached positions from earlier decoding steps. Current token computation. Latent cache 576 CL Wk↑. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. Wk↑ 512 192 Wv↑. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. Wv↑ 512 256 kᶜ ⊕ kᴿ. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. kᶜ ⊕ kᴿ 256 Q context. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. Earlier context is dimmed; outlined columns are current. Current token computation. Q context 256 CL Reuse 2048. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. Reuse 2048 Earlier choice. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. Earlier choice Scaled query–key scores, masking and softmax. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. Sink CL CL ×. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. × Wg. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. Wg 6,144 256 σ. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. σ ×. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. × Joined heads. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. 64 Wo. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. Wo 16,384 6,144 Attention output. 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. Earlier context is dimmed; outlined columns are current. Current token computation. Attention output 6,144 CL Model-specific details Dense opening · 1 repetitions 18432 intermediate width. Full indexer MoE · 20 repetitions Eight of 256 routed experts and one shared; width 2048. Shared index MoE · 57 repetitions Uses earlier indexer's selected positions. Attention and positions 64 expanded Q/K/V heads; query latent 2048, one KV latent of 512, 192 content plus 64 rotary key values and 256 value width. Interleaved multimodal rotary applies to the 64-dimensional rotary part. IndexCache reuses top-2048 selections from the most recent full indexer. A static learnable sink and coordinate sigmoid gate act on every head. Memory Each backbone layer retains 512 latent and 64 rotary values per token; 21 indexers retain 128 index values per token. What changes from Preview
The final release retains 78 sparse MLA layers and four iHC streams. The native multimodal implementation caches one latent and one rotary key per token and expands to 64 heads when required.
The 40-layer vision encoder turns patches into visual tokens; interleaved multimodal rotary positions affect only the rotary component of attention.
The separate five-layer DFly2 drafter reuses the target model’s KV and top-2048 positions. It is not a native next-token-prediction layer in the 78-layer backbone.
Explore the components Sources for this map