DeepSeek-V4: a million-token context that agents can actually use

AI-generated summary of reporting by Huggingface Blog. Read the original for the full story.

Why it matters

DeepSeek-V4's 1M-token context costs 2% of the KV cache memory of standard attention designs, making long-horizon agent workloads with open weights cheap to self-host for the first time.

Read this as

Chinese AI lab DeepSeek has released its newest model, V4, which comes in two sizes and can read up to a million tokens at once, roughly a thousand pages of text. What is different is cost: the clever design means the computer memory needed to handle very long documents is about 2% of what a standard design would use. The models are free to download, and they are built for 'agents', software that uses AI to run long tasks with many steps and tools.

DeepSeek's V4 launch targets agentic coding and tool-use workloads where frontier closed models currently dominate. V4-Pro-Max matches or beats Gemini-3.1-Pro and Opus-4.6 on agent benchmarks (SWE Verified 80.6, MCPAtlas 73.6) while running far cheaper on hardware: 27% of V3.2's per-token FLOPs and roughly 2% of the KV cache of standard attention. Weights are on Hugging Face now; the open question is whether existing tool harnesses support the new |DSML| tool-call format.

V4 alternates Compressed Sparse Attention (4x KV compression with FP4 top-k block selection via a 'lightning indexer') and Heavily Compressed Attention (128x, dense) across layers, with FP8 KV storage, yielding 27% of V3.2's single-token FLOPs and 10% of its KV cache at 1M tokens; Flash is 10% and 7%. Reasoning traces persist across user turns when tool calls are present, and an XML-based |DSML| tool-call format replaces JSON-in-string. Agent scores: Terminal Bench 2.0 = 67.9, SWE Verified = 80.6, Toolathlon = 51.8; MRCR 8-needle drops to 0.59 at 1M tokens.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

DeepSeek DeepSeek-V4-Pro DeepSeek-V4-Flash Hugging Face DSec Firecracker SWE Verified

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading

Edge AI in wonderland

Edge AI lets devices stay intelligent offline, enabling real-time translation and voice synthesis on phones and embedded boards without cloud dependence.