Analysis

'Inside DeepSeek V4.1-Flash: its KV cache, the 1017 update and the Harness stack'

DeepSeek says V4.1-Flash's global KV cache is a quarter of V4-Flash's. How it works, what the 1017 update changed, what it costs, and what is unverified.

By ·

As of November 2, 2026, DeepSeek has shipped V4.1-Flash (September 10), published its technical paper (September 17) and updated the model to V4.1-Flash-1017 (October 17), alongside an open-source agent framework, DeepSeek Harness, and a paid search and fetch API. The technical core, according to DeepSeek, is a global KV cache of 890 bytes per token, about a quarter of V4-Flash's. Every benchmark below is DeepSeek's own; we found no independent test and did not run the model.

The essentials

What did DeepSeek release, and in what order?

The sequence below comes from DeepSeek's API changelog, with the Harness launch date taken from Startup Fortune.

DeepSeek V4 family: seven markers, July to November 2026. From the V4-Flash beta to billing for the search and fetch APIs. Jul. 31: V4-Flash in public beta (deepseek-v4-flash); Aug. 13: V4-Pro generally available; DeepSeek Harness released (MIT); Sept. 10: V4.1-Flash: smallest model of the new family, native vision; V4-Flash retired; Sept. 17: arXiv paper 2609.19969 on KV cache compression; Oct. 17: V4.1-Flash-1017 and the search and fetch APIs; Oct. 31: dsh-superagent, research prototype (unofficial); Nov. 1: Search and fetch billing starts: $0.75 per 1,000 successful requests each. Dates and claims as stated by DeepSeek (self-reported). dsh-superagent is a research prototype, not an official release. Source: DeepSeek changelog, Startup Fortune, GitHub.

Source: DeepSeek API changelog, Startup Fortune, GitHub.

On September 10, DeepSeek called V4.1-Flash the smallest model of its new architecture family, with native image understanding. V4-Flash and V4-Flash-Vision-Exp were retired and their names redirect to it. SiliconANGLE reported an API outage of almost five hours on October 15. A research prototype, dsh-superagent, appeared on October 31; it is unofficial and covered in another article.

How does the architecture shrink the KV cache?

During generation, a transformer stores keys and values (the KV cache) for every earlier token, so long contexts and agent loops that re-read large inputs are limited by cache memory. DeepSeek attacks it in three places.

V4.1-Flash architecture: causal encoder, decoder, shared KV. Layer layout as described by DeepSeek (Hugging Face model card and arXiv paper). Causal encoder: 20 layers: 2 SWA layers, then 18 CSA2 layers (m=2) in 3 groups of 1 Full + 5 Reuse; Global KV projected from the output of encoder layer 20; Decoder: 20 layers (CSA2, m=1): 1 Full + 3 Reuse, then 4 groups of 1 Reindex + 3 Reuse; SWA: sliding window of 128 tokens; Full: own KV, indexer and fresh top-k; Reindex: reuses KV, recomputes top-k; Reuse: reuses KV and top-k; 8B active parameters at prefill, 16B at decode; MoE: 384 routed experts plus 1 shared, 6 routed experts active per token; Context of 1M tokens; 40 layers in all. Layout and figures as described by DeepSeek (self-reported, not independently verified). m is the compression ratio of the CSA2 layers. Source: Hugging Face model card, arXiv paper 2609.19969 (DeepSeek-AI).

Source: Hugging Face model card, arXiv paper (DeepSeek).

Causal Encoder-Decoder (CED). The 40 layers (hidden size 5120) are split into a 20-layer causal encoder and a 20-layer decoder. The decoder's global KV is projected from the output of encoder layer 20, with separate weights per layer, instead of being computed from decoder states. Most prompt tokens therefore skip the full decoder at prefill; the paper puts the saving at roughly half the prefill compute. That is why 8B parameters are active at prefill and 16B at decode. The decoder's sliding-window KV is still computed per layer.

Compressed Sparse Attention 2 (CSA2). Each layer has one static mode:

In the encoder, layers 1 and 2 are pure sliding-window attention (SWA); 18 CSA2 layers with compression m=2 form three groups of six (1 Full + 5 Reuse). The decoder has 20 CSA2 layers with m=1: one group of 1 Full + 3 Reuse, then four groups of 1 Reindex + 3 Reuse. Top-k is 512 and the sliding window is 128 tokens. A hierarchical indexer lets the first Full layer pick 2,048 blocks of 8 positions (a pool of 16,384 positions), which only the Reindex layers score.

FP4 and SWA Bounded Replay.

V4.1-Flash shrinks the KV cache, per DeepSeek. KV cache size, index relative to V4-Flash = 100 (approximate values). Global KV resident in HBM: 890 bytes per token, about 1/4 of V4-Flash. V4-Flash 100, V4.1-Flash ≈ 25; Persistent KV (SSD or host memory): About 1/8 of V4-Flash: SWA Bounded Replay rebuilds the last 128 tokens instead of storing them; global KV kept at least 72 hours. V4-Flash 100, V4.1-Flash ≈ 12.5. Relative values derived from the paper's ratios (about 1/4 and about 1/8); V4-Flash's absolute size is not given here. Self-reported by DeepSeek. Source: arXiv paper 2609.19969 (DeepSeek-AI), Hugging Face model card.

Source: arXiv paper, Hugging Face model card. Values are relative, from the paper's ratios.

The rest of the stack, per DeepSeek:

The paper's only quantitative efficiency claim is that decode FLOPs grow by about a quarter when context goes from 4K to 1M. The parts we read give no breakdown of the 890 bytes, throughput, latency or ablations.

What does DeepSeek measure, and against whom?

Training used 45T tokens (text to multimodal 7:1), with context extended to 1M at 34T tokens. Post-training runs SFT, RL, then on-policy distillation; the model card credits the gains to the data pipeline (synthesized agent tasks and environments), not a new algorithm.

Two agent benchmarks, maximum reasoning effort, score in %. DeepSWE v1.1: DS-V4-Flash 54.4%, DS-V4.1-Flash 74.2%, Opus-5.0 74.0%, GPT-5.6 Sol 73.0%; Terminal-Bench 2.1: DS-V4-Flash 82.7%, DS-V4.1-Flash 90.6%, Opus-5.0 89.1%, GPT-5.6 Sol 88.8%. DeepSeek's own benchmarks (max effort), not independent. Closed models lead on other tests: on HLE, Opus-5.0 scores 56.3 against 36.8 for V4.1-Flash. Source: DeepSeek, Hugging Face model card (DeepSeek-V4.1-Flash).

Source: Hugging Face model card. Benchmarks by DeepSeek, not independent.

DeepSeek's table also compares with Opus-5.0 (Anthropic) and GPT-5.6 Sol; we report the numbers as published. Per DeepSeek, V4.1-Flash scores 90.9 on GPQA Diamond (Opus-5.0 93.4, GPT-5.6 Sol 94.1), 30.0 on Terminal-Bench 3.0 (43.3 and 34.4), and 36.8 on HLE (56.3 and 44.5; text-only subsets are marked separately). It reports 88.1 on CyberGym (GPT-5.6 Sol 84.5) and 54.8 on AutomationBench (50.3 and 45.8). So, according to DeepSeek's own table, the closed models stay ahead on several tests (HLE, Terminal-Bench 3.0, some visual ones such as ZeroBench, 49.0 versus 53.0 for GPT-5.6 Sol). SiliconANGLE counts Opus-5.0 ahead on 7 of the 11 benchmarks published for the update.

Base models, per the model card:

What does DeepSeek measure, and against whom?
BenchmarkV4-Flash-BaseV4-Pro-BaseV4.1-Flash-Base
MMLU-Pro68.373.574.1
HumanEval69.576.879.4
SimpleQA-Verified30.155.242.3
MATH57.464.561.1
LongBench-V244.751.545.2

V4-Pro-Base has 1.6T parameters and stays ahead of V4.1-Flash-Base on SimpleQA-Verified, MATH and LongBench-V2.

What does the 1017 update change?

V4.1-Flash-1017 keeps the id deepseek-flash and the same prices. DeepSeek reports gains from September to 1017: HLE without tools from 36.8 to 42.6 (44.0 on text only), DeepSWE v1.1 from 74.2 to 77.0, and Terminal-Bench 4.0 from 31.2 to 42.3.

Same deepseek-flash id and prices, three self-reported scores in %. DeepSWE v1.1: V4.1-Flash (Sept.) 74.2%, V4.1-Flash-1017 77.0%; HLE (no tools): V4.1-Flash (Sept.) 36.8%, V4.1-Flash-1017 42.6%; Terminal-Bench 4.0: V4.1-Flash (Sept.) 31.2%, V4.1-Flash-1017 42.3%. Self-reported by DeepSeek. Run time and output length are also reduced, but DeepSeek gives no figures. Source: DeepSeek API changelog (Oct. 17, 2026).

Source: DeepSeek API changelog (October 17, 2026). Self-reported.

Run time and output length were also reduced, without numbers. Harness 0.2.1-rc.1 or later is recommended, and SiliconANGLE says the model was tuned for Harness and for Tencent's CodeBuddy and WorkBuddy. DeepSeek calls the release a Pareto improvement in performance and cost; Startup Fortune notes that this is DeepSeek's own judgment and that the timing favors its in-house stack, though the MIT license lets others use the model in competing tools. Neomanex notes that no pinned version is announced: re-run your evaluations, since shorter outputs can break parsers and token budgets.

What does reasoning cost, and how do you tune it?

Reasoning effort is adjustable from 1 to 100; in the API, max is 100, high is 75 and low is 50, and the instruct results use 100.

V4.1-Flash, three measures, score in %. Reasoning benchmarks, average: Effort 25 67.1%, Effort 100 76.3%; DeepSWE v1.1: Effort 25 66.0%, Effort 100 74.2%; Terminal-Bench 2.1: Effort 25 82.4%, Effort 100 90.6%; About 2.5x more output tokens from effort 25 to 100; Effort 60 to 80 recovers most of the gain for under half the token budget. DeepSeek paper, self-reported; no independent test. Source: DeepSeek, arXiv 2609.19969, section 5.3.3.

Source: arXiv paper, section 5.3.3. Self-reported.

Going from effort 25 to 100 costs about 2.5 times more output tokens; efforts of 60 to 80 capture most of the gain for under half the tokens. The scaffold matters too (DeepSWE v1.1 / Terminal-Bench 2.1, per the model card): mini-SWE 74.2 / 90.3, DSH Minimal 72.6 / 90.6, DSH Standard 70.5 / 85.8; other harnesses (Claude Code, Codex, OpenCode, Pi) score 65.5 to 69.8 on DeepSWE, and Terminal-Bench 2.1 runs from 84.1 (Codex) to 90.6. With several agents, the paper reports ProgramBench Almost@1 of 30.04% at 8 hours against 20.39% for one agent.

What does it cost and how do you use it?

deepseek-flash is V4.1-Flash-1017; deepseek-v4-pro is V4-Pro-0813. Old names redirect to Flash at Flash prices. Both offer 1M context, 384K maximum output, thinking and non-thinking modes, JSON, tool calls, the Responses API and an Anthropic-compatible API; vision is Flash only.

What does it cost and how do you use it?
Price per million tokensFlash off-peakFlash peakPro off-peakPro peak
Input, cache hit$0.003$0.006$0.022$0.044
Input, cache miss$0.15$0.30$0.66$1.32
Output$0.60$1.20$1.98$3.96

Peak hours are 01:00 to 04:00 and 06:00 to 10:00 UTC, Monday to Friday excluding Chinese public holidays; the rest is off-peak.

What is not established?

No independent test exists that we could find, and the comparisons with Opus-5.0 and GPT-5.6 Sol are DeepSeek's. The card and paper say 552B backbone parameters, while the Safetensors metadata shows 763B; perhaps Engram's 196B or the vision encoder, but this is not confirmed. Real throughput, latency and serving cost are unpublished, ablations are not quantified, DSpark's real gain is unknown, and minimum hardware is not stated. We did not measure the 1017 effect on long outputs.

Summary table

Summary table
PointWhat sources say as of Nov 2, 2026Source
ModelMultimodal MoE, MIT, 1M context, 8B active at prefill / 16B at decodeHugging Face, arXiv
Size552B backbone in the text; 763B in metadata, unexplainedHugging Face
Global KV890 bytes per token, about 1/4 of V4-FlasharXiv
Persistent KVAbout 1/8 of V4-Flash, via SWA Bounded ReplayarXiv
BenchmarksDeepSWE 74.2 (77.0 in 1017), Terminal-Bench 2.1 90.6; self-reportedHugging Face, changelog
PriceFlash $0.15 / $0.60 off-peak, $0.30 / $1.20 peak (cache miss / output)DeepSeek pricing
Independent testsNone foundn/a

Frequently asked questions

Is the model really 4x lighter?

No. According to DeepSeek, it is the global KV cache in HBM that is about a quarter of V4-Flash's (890 bytes per token), not the model. The text says 552B parameters and the metadata 763B, unexplained.

Can I run it myself?

The weights are MIT and the card documents vLLM, SGLang and Transformers. It states no minimum hardware, so we cannot say what you need.

Does the 1017 update change the price or the id?

No. The id stays deepseek-flash and prices are identical. No pinned version is announced, so re-run your evaluations.

Does DeepSeek beat the closed models?

According to DeepSeek, it is ahead on some agent tests and behind on others (HLE, Terminal-Bench 3.0, some visual tests). There is no independent test.

Method and limits

We read the Hugging Face model card (through an automatic summary, so figures should be cross-checked), about two thirds of the arXiv paper, DeepSeek's changelog and pricing page, and secondary sources of uneven quality (Neomanex, HelloGitHub). We did not test the model, and found no ablation or throughput measurement in the paper. This is not buying or investment advice.

Sources

Spotted an error in this article? Report it · Our corrections policy

Rekha icon: a house drawn in a single stroke

From the same author Self-promotion

An Eulerian path, drawn with your finger

Rekha, the iPhone game by OrigoTech's author: connect every dot in a single stroke without tracing the same link twice, across 500 drawings that are all solvable.

The OrigoTech newsletter

A sourced weekly digest of AI tool news.

Read next