← Open-Weight LLM Parts Atlas home

DeepSeek-V4-Flash

284B / active 13B developers: DeepSeek published: 2026-04-22 MIT · Commercial use OK ↗ max context: 1M KV(BF16): 4.4 KiB/tok Text only

CSA / HCA alternating + mHC 4 residual streams + shallow-layer hash MoE

V3 of MLA is dropped, K=V 1 head-only attention, on which it now layers “window 128 + compressed distant chunks” in combination. first 2 layers use only the window, after that 4 tokens compressed into one and selected — CSA and, 128 tokens compressed into one and all viewed — HCA 1 layer each, alternating. Residual: 4 shared mHC, first 3 layer MoE uses the token ID to pick experts.

Interactive structure diagram · simulator (open) →

layers43 = window-only 2 + CSA 21 + HCA 20
d4,096
AttentionQ 64 heads / KV 1 heads (K=V), head 512, Q low-rank 1,024
CSA4 per compressed group, indexer 64 heads, top 512
HCA128 per compressed group
ResidualmHC 4 streams, Sinkhorn iteration 20 times (row sum · column sums set to 1 for stability)
FFNMoE: 256 experts, top 6 + shared 1, sqrt(softplus)
Shallow layersfirst 3 layers use hash routing
context1,048,576
OtherAttention sink, MTP 1 layers (Pro: 1.6T / 49B)
KV calculation basisK=V 1 heads 512d + CSA/HCA compression makes it tiny (est. about 4.4 KiB/tok)
Supported inferencevLLM / SGLang / Transformers

Source:Hugging Face: deepseek-ai/DeepSeek-V4-Flash / Transformers: DeepSeek-V4