DeepSeek has unveiled DeepSeek-V4, a large language model architecture that supports a 1 million token context window, specifically optimized for agent AI applications. The model employs a Mixture of Experts (MoE) design and introduces a hybrid attention mechanism combining Cross-Scale Attention (CSA) and Hierarchical Context Attention (HCA) to reduce KV cache memory and inference costs.
DeepSeek-V4 comes in two variants: DeepSeek-V4-Pro and DeepSeek-V4-Flash, each balancing performance and efficiency. The MoE architecture activates only a subset of parameters per token, enabling the model to handle long sequences without proportional compute increases. This makes it particularly suited for tasks like long-term tool usage, coding agents, and browsing agents that require processing extensive context.
The model's 1M token context allows it to maintain coherence and recall over very long documents or conversations, a critical capability for autonomous agents. Early benchmarks suggest that DeepSeek-V4 approaches frontier-level agent performance, narrowing the gap between open models and proprietary systems.
By reducing the memory footprint of KV cache through hybrid attention, DeepSeek-V4 makes long-context inference more practical for deployment. The architecture is available on Hugging Face, inviting the research community to experiment and build upon it.