DeepSeek-V4.1-Flash in Full: The 890-Byte KV Cache That Rewrites Agent Infrastructure
DeepSeek-V4.1-Flash: The 890-Byte KV Cache That Rewrites Agent Infrastructure
DeepSeek's V4.1-Flash, announced on September 10, 2026, is the model that achieved the goal of "running 4x the agents on the same GPU."
1. Core Specs at a Glance
| Item | Content |
|---|---|
| Total parameters | 552B (Mixture-of-Experts) |
| Active parameters | Prefill 8B / Decode 16B |
| Architecture | CED (Causal Encoder-Decoder), 20+20 layers |
| MoE structure | 1 shared expert + 384 routed experts (6 activated per token) |
| Context window | 1M tokens (max output 384K) |
| Multimodal | Native image + text |
| License | MIT (open weights) |
| Pre-training data | 45T tokens |
| KV cache size | 890 bytes/token |
2. The CED Architecture: Why 8B+16B
An ordinary Transformer uses the same parameter set for input processing (Prefill) and output generation (Decode). V4.1-Flash separates the two.
[input text] โ Encoder (8B) โ hidden state โ Decoder (16B) โ [output tokens]
Why this design:
- Prefill is a read task โ relatively simple โ 8B is enough
- Decode is a generation task โ needs reasoning โ expand to 16B
- Result: the same 552B model, but the actual computation consumes only a 24B level
This structure is combined with KV cache compression to maximize memory efficiency.
3. The Secret of the 890-Byte KV Cache
The Existing Problem
For an LLM agent to handle several sessions at once, each session's KV cache must sit in GPU memory. For a typical 7B model:
| Context length | KV cache size (FP16) |
|---|---|
| 4K tokens | ~2.15 GB |
| 32K tokens | ~17 GB |
| 128K tokens | ~68 GB |
-> With one GPU (24GB), you cannot run even a single 7B model with a full 128K context.
V4.1-Flash's Solution: Three-Stage Compression
Stage 1: CED (Causal Encoder-Decoder)
- The decoder's KV cache is projected and reconstructed from the encoder's final hidden state
- No need to store each layer separately; one encoder output restores the decoder's entire KV
Stage 2: CSA2 (Compressed Sparse Attention 2)
- A sparse-attention technique that cross-reuses KV representations across layers
- Instead of every layer creating new KV each time, it partially reuses the previous layer's KV
Stage 3: FP4 KV cache quantization
- Compressed to 4 bits (0.5 bytes) from the existing FP16 (2 bytes)
- Uses the E2M1 format โ minimizing precision loss
Final Result
| Model | KV cache per token | Ratio |
|---|---|---|
| DeepSeek V1 (early) | ~389 KB | Baseline |
| DeepSeek V4-Flash | ~3.5 KB | 111x reduction vs V1 |
| V4.1-Flash | 890 Bytes | 437x reduction vs V1 |
-> A single GPU (24GB) can hold about 27 million tokens of context at once, on an FP16 KV-cache basis.
4. The mHC Paper: Why It Matters
The Problem: Instability of Hyper-Connections
In large-scale LLM training, there is a Hyper-Connections (HC) technique that strengthens information flow between layers. But HC had a fatal flaw: it damaged the identity-mapping property, making training unstable.
The Solution: Manifold Constraint
The mHC paper, co-authored by DeepSeek founder Liang Wenfeng:
- Projects HC's residual-connection space onto the Birkhoff polytope (the set of doubly stochastic matrices)
- This projection restores the identity-mapping property, securing training stability
- +2.1% performance gain on the BBH benchmark with a 27B model
- Training overhead: just 6.7%
-> This structure was used as the base layer of the V4 series, allowing large-scale MoE training to be completed stably.
5. Real Benchmarks: Strong on Agents
Per DeepSeek's official announcement (maximum reasoning effort):
| Benchmark | GPT-5.6 Sol | Claude Opus 5.0 | V4.1-Flash |
|---|---|---|---|
| DeepSWE v1.1 (coding) | 73.0 | 74.0 | 74.2 |
| Terminal-Bench 2.1 (terminal) | 88.8 | 89.1 | 90.6 |
| AutomationBench (automation) | 45.8 | 50.3 | 54.8 |
| Agent's Last Exam (agent) | 26.7 | 28.6 | 31.8 |
| CyberGym (security) | 84.5 | โ | 88.1 |
| Humanity's Last Exam | โ | 63.6 | 63.9 |
| Codeforces rating | โ | โ | 3471 |
Reading:
- It beats both GPT-5.6 Sol and Claude Opus 5.0 on the agent/automation benchmarks
- But on Terminal-Bench 4.0 (Claude 51.8 vs V4.1 31.2) and NL2Repo (Claude 75.3 vs V4.1 64.0), Claude is still ahead
- In long-horizon deep reasoning, Claude Opus still holds the edge
6. API Pricing: Disruptive
| Item | Peak | Off-peak |
|---|---|---|
| Input (cache miss) | $0.30/1M | $0.15/1M |
| Input (cache hit) | $0.006/1M | $0.003/1M |
| Output | $1.20/1M | $0.60/1M |
- About 1/4 the level of V4 Pro
- On a cache hit, input cost is 0.6 cents/1M tokens โ effectively free
- Via OpenRouter: $0.10/1M input, $0.50/1M output
7. Community Reaction
Hacker News
- Main thread 1,015 points, 576 comments โ focused discussion on the innovation of the KV cache compression
Reddit r/LocalLLaMA
- The MIT license immediately spawned "abliterated/uncensored" forks
- By September 13, at least two community builds were recording active downloads
Key Assessment
- "The Prefill/Decode split (8B/16B) is impressive" โ evaluated as an architectural innovation
- "If you can run 4x the agent sessions on the same GPU, server costs drop dramatically"
8. Whether It Can Run Locally
| Item | Content |
|---|---|
| Total weight size | ~100GB (FP16), ~55GB (Q4) |
| Minimum VRAM | 80GB+ (Q4 quantization basis) |
| Recommended hardware | H100 80GB, A100 80GB, DGX Spark (128GB) |
| Ollama/llama.cpp support | Not yet supported (as of September 2026) |
| vLLM/SGLang | Officially supported |
-> It cannot run on a local consumer GPU. It is usable only via cloud API or in a server environment.
9. Summary: Who Should Use This Model
| Scenario | Recommended model |
|---|---|
| Running many agents concurrently | V4.1-Flash (890B KV cache) |
| Long-horizon reasoning / deep analysis | Claude Opus 5.0 |
| Fast coding autocomplete | GPT-5.6 Sol |
| Local offline running | Qwen 3.8-4b, Gemma 4 E4B |
| Cost-effective API calls | V4.1-Flash ($0.30/1M) |
AI Knowledge Hub
Comments (1)
To start from the conclusion, this is a deep analysis of a technical leap that combines KV cache compression with a MoE architecture to drive the infrastructure cost of running many agents at once to an extreme low. A cache reduction on the order of 890 bytes is a key element that resolves the GPU VRAM bottleneck and dramatically lowers the serving cost of maintaining long contexts.