Causal Encoder–Decoder
Prompt tokens pass through the encoder before the decoder. That lets most input avoid the decoder’s full compute path while preserving an autoregressive output stage.
Paper and technical report · updated for V4.1-Flash-1017
The paper is mainly about making million-token inference practical: process prompts through a cheaper encoder path, reuse compressed global context across layers, and reconstruct short-lived attention state instead of storing all of it.
01 / Summary
A 20-layer causal encoder reads the prompt; a 20-layer decoder generates the answer.
The paper reports 8B backbone parameters active per prompt token during prefill and 16B during decode.
Training uses native multimodal data, with text and images sharing the model from pre-training.
DeepSeek reports one-quarter the runtime KV-cache storage and one-eighth the persistent storage of V4 Flash.
02 / Architecture
Prompt tokens pass through the encoder before the decoder. That lets most input avoid the decoder’s full compute path while preserving an autoregressive output stage.
Layers can compute, re-index or reuse shared global KV and token indices. Cross-layer reuse avoids storing duplicate global context for every layer.
The global KV cache is trained in FP4. The report says this combines with CSA2 to cut global cache storage to about one-quarter of V4 Flash.
Instead of persisting every sliding-window state to SSD, the server replays a bounded recent window when it must reconstruct that state.
03 / KV cache
The paper’s central claim is not that the model weights are tiny. It is that the memory attached to every live token becomes much smaller.
Long-running agents repeatedly carry tool results, files and conversation history. At high concurrency, storing a KV cache for every active session can be as limiting as model-weight memory. DeepSeek separates long-lived compressed global state from short-lived sliding-window state and rebuilds part of the latter when needed.
The report says runtime KV-cache storage is about one-quarter of V4 Flash and persistent host-memory or SSD storage about one-eighth. Those are comparisons with DeepSeek’s previous V4 Flash design under its deployment setup—not a promise that every inference stack uses exactly 75% or 87.5% less total memory.
04 / Benchmarks
DeepSeek model-card results; higher is better
The October 17 model card calls 1017 a minor update, but reports gains across coding, agent and visual tasks together with shorter outputs. These five rows compare the original checkpoint with 1017 in DeepSeek’s own table.
Terminal-Bench 4.0 uses Claude Code; DeepSWE v1.1 uses Mini-SWE-V2. Harness, tool access, effort and sampling affect results, so treat these as release evidence rather than a guaranteed workload win rate.
05 / Weights
The current official repository is deepseek-ai/DeepSeek-V4.1-Flash-1017. It is MIT-licensed and includes model weights, a reference prompt encoder and local-inference instructions.
pip install vllm
vllm serve "deepseek-ai/DeepSeek-V4.1-Flash-1017"Mixture-of-experts activation determines how much compute a token uses, not how much of the checkpoint must be stored. The official repository reports a 763B-parameter model with mixed tensor types. A workable deployment may spread weights across several GPUs, quantize them, and offload some storage to host memory or SSD.
That is why there is no honest universal VRAM number. A requirement without the exact quantization, context length, concurrency, inference engine and offload plan is incomplete.
deepseek-flash. Self-host only when control, data locality or sustained utilization justifies the infrastructure.06 / Limits
The official technical report is available on arXiv as “DeepSeek-V4.1-Flash: Pushing the Limits of KV Cache Compression.” DeepSeek also links the report from the official model repositories on Hugging Face.
The architecture report describes the original September V4.1 Flash release. The October 17 checkpoint is a minor model update built on that architecture. Its Hugging Face model card publishes a separate updated benchmark table.
The report reduces long-context inference cost through a 20-layer causal encoder followed by a 20-layer decoder, cross-layer reuse in Compressed Sparse Attention 2, low-precision global KV cache and bounded replay for sliding-window attention state.
There is no single official minimum VRAM number. The official checkpoint is a very large mixture-of-experts model, and practical memory depends on weight format, quantization, tensor parallelism, CPU or SSD offload, context length and concurrency. The 8B and 16B active-parameter figures do not mean only that many parameters need storage.
DeepSeek publishes the model weights and repository under the MIT license. “Open weights” is the precise description; the released artifacts do not expose the full training dataset and pipeline needed to reproduce training from scratch.
07 / Sources
Checked 2026-10-18. The page separates the September architecture report from the October 1017 checkpoint update.