Paper and technical report · updated for V4.1-Flash-1017

DeepSeek V4.1 Flash
paper & technical report

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.

TitleDeepSeek-V4.1-Flash: Pushing the Limits of KV Cache Compression
Architecture reportSeptember 2026
Latest checkpointV4.1-Flash-1017

01 / Summary

What the paper says

40 layers

A 20-layer causal encoder reads the prompt; a 20-layer decoder generates the answer.

8B / 16B active

The paper reports 8B backbone parameters active per prompt token during prefill and 16B during decode.

1M context

Training uses native multimodal data, with text and images sharing the model from pre-training.

Less stored context

DeepSeek reports one-quarter the runtime KV-cache storage and one-eighth the persistent storage of V4 Flash.

02 / Architecture

The four ideas that matter

CED

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.

CSA2

Compressed Sparse Attention 2

Layers can compute, re-index or reuse shared global KV and token indices. Cross-layer reuse avoids storing duplicate global context for every layer.

FP4

Low-precision global cache

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.

Replay

SWA Bounded Replay

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

Why the cache result matters

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.

Runtime cache¼
Persistent cache⅛

04 / Benchmarks

What changed in the 1017 update

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.

BenchmarkOriginal V4.1 FlashV4.1 Flash 1017
Terminal-Bench 4.031.242.3
DeepSWE v1.174.277.0
ProgramBench20.329.1
Automation-Bench v1.0.654.860.5
Agents’ Last Exam31.835.4

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

Hugging Face, local use and VRAM

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"

Do not read “8B active” as “fits in 8B of VRAM”

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.

Fastest way to test: use the hosted API model ID deepseek-flash. Self-host only when control, data locality or sustained utilization justifies the infrastructure.

06 / Limits

What the report does not establish

  • It is first-party evaluation. DeepSeek chose the checkpoints, harnesses, effort and reporting set.
  • The architecture report predates 1017. The October checkpoint adds post-training gains; it does not replace the architecture paper.
  • Cache reduction is not total-server reduction. Model weights, activations, communication, host memory and concurrency still determine hardware cost.
  • Open weights are not full training reproducibility. The released license and weights are permissive, but the complete training data and production system are not published.

Questions

Where can I read the DeepSeek V4.1 Flash paper?

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.

Is the paper about DeepSeek V4.1 Flash 1017?

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.

What is the main idea in the technical report?

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.

How much VRAM does DeepSeek V4.1 Flash need?

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.

Is DeepSeek V4.1 Flash open source?

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

Primary sources

Checked 2026-10-18. The page separates the September architecture report from the October 1017 checkpoint update.