← Open-Weight LLM Parts Atlas home

Tencent Hy4 flash

220B / active 12B developers: Tencent published: 2026-11-18 Tencent Hy 1.0 · Commercial use with conditions · MaaS etc. separate agreement ↗ max context: 1M KV(BF16): 13.5 KiB/tok multimodal (text backbone shown)

3 sliding-window (512) layers : 1 sparse layer (MLA everywhere) + LatentMoE 512→16 + Engram

A cheaper, faster version of Hy4. It keeps MLA in every layer but inserts one indexed sparse-attention layer (IndexPool) after every 3 sliding-window (512) layers, cutting the KV cache to 1/6 of Hy4. Experts run in a latent space (LatentMoE: 16 of 512 + 1 shared), and Engram, which looks up 2- and 3-token sequences by hash, is injected into 4 layers. Engram accounts for 63.5B of the 220B total.

Interactive structure diagram · simulator (open) →

Scale220B total (including Engram 63.5B, vision 0.43B and the 0.85B draft model) / about 12B active
layers42 = 12 sparse + 30 sliding-window (sparse in the first 2 layers, then every 4th layer)
d3,072
AttentionMLA: KV latent 512, Q latent 1,024. Sparse layers 32 heads · Window layers 64 heads, gated, QK-Norm, Attention sink
SparseIndex selects up to 2,048 tokens (group-level selection)
window512 token
FFNfirst 1 layers are dense, remaining 41 layers are LatentMoE: 512 experts, top 16 + shared 1
Engram2-gram / 3-gram hash tables injected at layers 2, 12, 22 and 32 (README 0-based indices 1, 11, 21, 31; config engram_layer_ids is 2, 12, 22, 32)
ResidualiHC (4 residual streams) + pre/post normalization
context1,048,576
OtherSpeculative decoding with DFly2, a 5-layer draft model
License conditionsannual revenue over 50M USD, or MAU over 100M users MaaS (API service) providers need a separate agreement (view original ↗)
KV calculation basissparse attention 12 layers×(latent 512+Position 64)×2B = 13.5 KiB (window 30 layers keep only the latest 512 tokens (capped))
Supported inferencevLLM / SGLang / Transformers

Source:Hugging Face: tencent/Hy4-flash