Model anatomy
DeepSeek V4 Flash
A 284B / 13B-active MoE model built for million-token context with hybrid CSA/HCA attention, mHC residual streams and one MTP layer.
Token path
From token id to next-token logits
Follow the structural path first, then inspect one decoder block at full resolution.
Embedding matrix size is reported as shape × elements only. This view does not assume whether the output head is tied to the input embedding unless the manifest explicitly records it.
Decoder microscope
Layer 1
Select any layer to see the checkpoint-backed attention, feed-forward and residual anatomy.
- Mechanism
- SWA
Sliding-window attention bounds the visible token neighborhood for this layer.
- Routed experts
- 256
- Active routed
- 6 / token
- Shared experts
- 1
- Expert width
- 2048
- Routing
- hash
sqrt(softplus) scores; expert bias affects learned selection only; first 3 MoE layers select expert IDs by token-ID hash
- Topology
- mHC
- Expansion
- 4 streams
- Sinkhorn iters
- 20
The residual path carries the block output forward; this panel reports only topology represented by the manifest.
Parameter & memory surface
What is stored, and what participates per token?
Source-backed parameter pools and active-path quantities; stored inventory is not assumed to be read in full for every token.
The full checkpoint parameter set exists in storage / device memory planning; this does not imply every stored weight is read for one token.
Parameters reported as active per token by the model manifest.
Sliding-window attention bounds the visible token neighborhood for this layer.
Active routed + shared experts for the selected layer.
Evidence for layer 1
Trace every structural claim back to source
5 sources currently support this layer view.
Official technical report for CSA, HCA, mHC, MoE/MTP inheritance and the Flash model setup.
papermHC: Manifold-Constrained Hyper-ConnectionsDeepSeek's mHC paper: four-stream Hyper-Connections, non-negative pre/post maps and Birkhoff-manifold projection of the residual mixing matrix via Sinkhorn-Knopp.
config · rev fd53f94DeepSeek-V4-Flash config.jsonReleased checkpoint configuration: 43 backbone layers, 256 routed experts, top-6 routing, first 3 hash-routed MoE layers, route scale 1.5, compression schedule and one next-token prediction layer.
implementation · rev 2b2bebcDeepSeek-V4-Flash inference/model.pyOfficial inference implementation used to resolve attention scheduling, MoE score/selection/weight semantics, hash routing and the exact hc_pre/hc_post topology around both attention and FFN sublayers.
implementation · rev 553034dDeepSeek-V4-Flash inference/kernel.pyOfficial TileLang kernel for splitting 24 dynamic routing values into 4 pre weights, 4 post weights and a 4×4 residual matrix projected with 20 Sinkhorn iterations.