Two compression regimes
CSA compresses overlapping blocks 4× and sparsely selects them; HCA compresses non-overlapping blocks 128× and attends densely.
Million-token intelligence · visualized
A source-grounded map of the V4 family: hybrid compressed attention, four-stream manifold-constrained residuals, fine-grained DeepSeekMoE, and a shared-head multi-token prediction path.
Pro and Flash share the same architectural ideas but scale different axes. The interactive switch updates every variant-sensitive count and tensor contract.
CSA compresses overlapping blocks 4× and sparsely selects them; HCA compresses non-overlapping blocks 128× and attends densely.
Every CSA and HCA layer supplements compressed history with 128 recent uncompressed KV entries.
Dynamic input, output, and doubly-stochastic residual mappings surround both attention and MoE sublayers.
Six fine-grained routed experts run beside one always-on shared expert in every transformer block.
The first three MoE layers use token-ID hash routing; later layers use learned Sqrt(Softplus) affinity scores.
One shared-head MTP module learns the next future token and can drive speculative decoding.
The report estimates roughly 2% of a BF16 GQA8 cache at one-million-token context.
In instruct checkpoints, MoE expert parameters use FP4 while most remaining parameters use FP8.
Architecture claims are reconciled against DeepSeek’s technical report, released configs, and open reference inference implementation.
Architecture §2, model setups §4.2.1, and cache layout §3.5.
Open report ↗ Pro / Flash configsExact layer schedules, widths, heads, experts, mHC, and compression settings.
Open Pro config ↗ Reference implementationExecutable tensor packing for compressors, indexer, grouped output, mHC, MoE, and MTP.
Open model.py ↗