← 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) →
| layers | 43 = window-only 2 + CSA 21 + HCA 20 |
|---|---|
| d | 4,096 |
| Attention | Q 64 heads / KV 1 heads (K=V), head 512, Q low-rank 1,024 |
| CSA | 4 per compressed group, indexer 64 heads, top 512 |
| HCA | 128 per compressed group |
| Residual | mHC 4 streams, Sinkhorn iteration 20 times (row sum · column sums set to 1 for stability) |
| FFN | MoE: 256 experts, top 6 + shared 1, sqrt(softplus) |
| Shallow layers | first 3 layers use hash routing |
| context | 1,048,576 |
| Other | Attention sink, MTP 1 layers (Pro: 1.6T / 49B) |
| KV calculation basis | K=V 1 heads 512d + CSA/HCA compression makes it tiny (est. about 4.4 KiB/tok) |
| Supported inference | vLLM / SGLang / Transformers |
Source:Hugging Face: deepseek-ai/DeepSeek-V4-Flash / Transformers: DeepSeek-V4