← Open-Weight LLM Parts Atlas home
DeepSeek-V4.1-Flash
748B / active 8–16B
developers: DeepSeek
published: 2026-09-10
MIT · Commercial use OK ↗
max context: 1M
KV(BF16): 3.5 KiB/tok
multimodal (text backbone shown)
first-half encoder + second-half decoder (CED) + Engram 196B
40 layers are split into a first-half 20 layer “Causal encoder” and the last 20 layer “decoder” — a configuration split this way (Causal Encoder-Decoder). the decoder's long-range KV is projected in one shot from the end of the encoder, so, prompt reading (prefill) uses 8B, generation (decode) uses 16B active scale, running efficiently. Attention uses cross-layer KV · index sharing in CSA2 with, the ever-growing distant KV: FP4 storage at 890 bytes/word, compared with V4-Flash compressed to about 1/4.
Interactive structure diagram · simulator (open) →
| layers | 40 = encoder 20 + decoder 20 |
|---|---|
| d | 5,120 |
| Active size | prompt reading (prefill) phase 8B / generation (decode) phase 16B (rough median 12B) |
| Attention | Q 64 heads / KV 1 heads, head 512. first 2 layers window-only (128) |
| CSA2 | first half compression ratio 2, second half 1. KV cache layers are layers 3, 9, 15, 21 (config notation: 0 -indexed: 2 · 8 · 14 · 20) |
| indexer | Indexer-building layers 8, the decoder uses layer 21 (config 20) candidates |
| cache | distant KV: FP4 with 890 bytes / token |
| memory tables | Engram 196B parameters (layers 2, 15, config 1 · 14, up to 4-gram) |
| Residual | 1 pass mHC, 4 streams |
| FFN | MoE: 384 experts, top 6 + shared 1 |
| context | 1,048,576 |
| Other | DSpark (MTP 3 layers that predict several words ahead: in-house speculative decoding) |
| KV calculation basis | Official FP4 890 B/tok (BF16 equiv. about 3.5 KiB/tok, Between layers KV shared + CED) |
| Supported inference | vLLM / SGLang / Transformers |