← 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) →

layers40 = encoder 20 + decoder 20
d5,120
Active sizeprompt reading (prefill) phase 8B / generation (decode) phase 16B (rough median 12B)
AttentionQ 64 heads / KV 1 heads, head 512. first 2 layers window-only (128)
CSA2first half compression ratio 2, second half 1. KV cache layers are layers 3, 9, 15, 21 (config notation: 0 -indexed: 2 · 8 · 14 · 20)
indexerIndexer-building layers 8, the decoder uses layer 21 (config 20) candidates
cachedistant KV: FP4 with 890 bytes / token
memory tablesEngram 196B parameters (layers 2, 15, config 1 · 14, up to 4-gram)
Residual1 pass mHC, 4 streams
FFNMoE: 384 experts, top 6 + shared 1
context1,048,576
OtherDSpark (MTP 3 layers that predict several words ahead: in-house speculative decoding)
KV calculation basisOfficial FP4 890 B/tok (BF16 equiv. about 3.5 KiB/tok, Between layers KV shared + CED)
Supported inferencevLLM / SGLang / Transformers

Source:Hugging Face: deepseek-ai/DeepSeek-V4.1-Flash