We present a preview version of DeepSeek-V4 series, including two strong Mixture-of-Experts (MoE) language models -- DeepSeek-V4-Pro with 1.6T parameters (49B activated) and DeepSeek-V4-Flash with 284B parameters (13B activated) -- both supporting a context length of one million tokens. DeepSeek-V4 series incorporate several key upgrades in architecture and optimization: (1) a hybrid attention architecture that combines Compressed Sparse Attention (CSA) and Heavily Compressed Attention (HCA) to improve long-context efficiency; (2) Manifold-Constrained Hyper-Connections (mHC) that enhance conventional residual connections; (3) and the Muon optimizer for faster convergence and greater training stability. We pre-train both models on more than 32T diverse and high-quality tokens, followed by a comprehensive post-training pipeline that unlocks and further enhances their capabilities. DeepSeek-V4-Pro-Max, the maximum reasoning effort mode of DeepSeek-V4-Pro, redefines the state-of-the-art for open models, outperforming its predecessors in core tasks. Meanwhile, DeepSeek-V4 series are highly efficient in long-context scenarios. In the one-million-token context setting, DeepSeek-V4-Pro requires only 27% of single-token inference FLOPs and 10% of KV cache compared with DeepSeek-V3.2. This enables us to routinely support one-million-token contexts, thereby making long-horizon tasks and further test-time scaling more feasible. The model checkpoints are available at https://huggingface.co/collections/deepseek-ai/deepseek-v4.
核心贡献 · Key contributions
混合注意力(CSA+HCA)大幅降低 KV 缓存和算力;百万 token 上下文仅需 DeepSeek-V3.2 的 27%算力。 Hybrid attention (CSA+HCA) reduces KV cache and FLOPs; 1M-token context requires only 27% FLOPs of DeepSeek-V3.2.
流形约束超连接(mHC)提升训练稳定性与表达能力,超越标准残差连接。 Manifold-Constrained Hyper-Connections (mHC) stabilize training and improve expressivity beyond standard residuals.
Muon 优化器在超大规模 MoE 模型上实现更快收敛与稳定训练。 Muon optimizer enables faster convergence and stable training for MoE models at scale.
后训练管道采用领域专用强化学习与在线策略蒸馏,统一多领域专家模型。 Post-training pipeline uses domain-specific RL and on-policy distillation to unify expert models.
DeepSeek-V4-Pro-Max 在推理、编码、长上下文任务中达到开放模型最先进水平。 DeepSeek-V4-Pro-Max achieves SOTA among open models on reasoning, coding, and long-context tasks.