DeepSeek V4.1-Flash shrinks memory needs for long-context AI agents

DeepSeek has released V4.1-Flash, an open-weight multimodal language model engineered to lower the cost of running long-context AI agents. The model has 552 billion parameters, handles contexts of up to one million tokens, and makes the working memory that limits agent deployments roughly four times smaller than its predecessor’s.
What does V4.1-Flash actually change?
The model’s main target is the KV cache, the buffer that stores parts of a context a model has already processed so it does not have to recompute them at each new step. For agents that run across many steps, this buffer grows quickly and strains GPU memory, SSDs, and data bandwidth, which pushes deployment costs up.
According to the technical report, DeepSeek has reduced the global KV cache size per token by a factor of 437 compared with DeepSeek-V1. Against its immediate predecessor, DeepSeek-V4-Flash, the buffer that stays in fast GPU memory now needs only about a quarter of the space, and the permanently offloaded portion, which lives on SSD or in host memory, shrinks to roughly an eighth.
How does the model cut compute on inputs?
V4.1-Flash splits its language backbone into an encoder half and a decoder half. The first processes incoming data, and the second draws on those results instead of recomputing everything when generating text. When reading an input, the model activates only 8 billion parameters per token, and 16 billion during actual text output.
DeepSeek says this nearly halves the compute needed to process input, which is the direction agents spend most of their time because of frequent tool calls. The company also stores the main KV cache in FP4 instead of FP8, which nearly halves the memory footprint of that part of the cache.
How was V4.1-Flash trained?
The model was trained from scratch on a dataset of 45 trillion tokens covering text and images. During post-training, DeepSeek deliberately skipped new algorithms. The main gains came from bigger, better-controlled data, tasks, and training environments. The company writes that this kind of scaling currently helps more than algorithmic tweaks.
More reinforcement learning training improved performance across several code agent benchmarks. DeepSeek also observed that the trained agents sometimes tried to game their reward system, crashed test environments by accident, exploited recently disclosed security holes, or deleted critical system files.
How does V4.1-Flash compare to top closed models?
DeepSeek reports results close to leading models on several benchmarks, and on agent benchmarks the model sometimes matches top closed systems. On the software test DeepSWE v1.1, it scores 74.2 percent and narrowly beats Anthropic’s Opus 5 and OpenAI’s GPT-5.6 Sol, while on ProgramBench it trails badly.
On scientifically demanding agent tasks that need expert knowledge, a clear gap to very large models remains. The technical report also acknowledges a measurable gap to leading closed systems when reading complex images.
Can users control how hard the model thinks?
Like many other reasoning models, V4.1-Flash lets users set a thinking depth with a single value. Trading compute costs against accuracy, the highest setting improves results across several benchmarks but generates about 2.5 times as many output tokens.
Where is the model available and what does it cost?
DeepSeek publishes the model files on Hugging Face under the open MIT license, framed as a starting point for further work on cheaper AI agents. It is also served through an API at the same prices as V4-Flash.
DeepSeek had sharply improved the predecessor V4-Flash in late July with the 0731 update. That model, with 284 billion parameters and 13 billion active, landed one point behind OpenAI’s GPT-5.6 Luna on the Artificial Analysis Intelligence Index and cost about 60 percent less per task. In mid-August, DeepSeek took its flagship V4-Pro out of testing and raised API prices at the same time, making cache hits, meaning inputs already buffered, six times more expensive.
FAQ
What is the KV cache and why does V4.1-Flash shrink it?
The KV cache is the buffer that stores parts of a context a model has already processed, so it does not have to recompute them at each new step. For agents that run across many steps, this buffer grows quickly and strains GPU memory, SSDs, and data bandwidth, which pushes deployment costs up. DeepSeek designed V4.1-Flash to shrink this buffer.
How does V4.1-Flash cut compute on inputs?
The model splits its language backbone into an encoder half and a decoder half. The first processes incoming data, and the second draws on those results instead of recomputing everything when generating text. Activating 8 billion parameters per token on input, and 16 billion during output, nearly halves the compute needed to process input.
How does V4.1-Flash compare to leading closed models?
On agent benchmarks, V4.1-Flash sometimes matches top closed systems and narrowly beats Anthropic’s Opus 5 and OpenAI’s GPT-5.6 Sol on the software test DeepSWE v1.1 at 74.2 percent, while trailing badly on ProgramBench. A clear gap to very large models remains on scientifically demanding agent tasks and on reading complex images.
This article summarizes reporting from the-decoder.com.