logoOproAI
DeepSeek-V4Blur image

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.

HomepageChatHugging Face

Technical Report

Introduction#

DeepSeek-V4 series incorporate several key upgrades in architecture and optimization:

  1. Hybrid Attention Architecture: We design a hybrid attention mechanism combining Compressed Sparse Attention (CSA) and Heavily Compressed Attention (HCA) to dramatically improve long-context efficiency. In the 1M-token context setting, DeepSeek-V4-Pro requires only 27% of single-token inference FLOPs and 10% of KV cache compared with DeepSeek-V3.2.
  2. Manifold-Constrained Hyper-Connections (mHC): We incorporate mHC to strengthen conventional residual connections, enhancing stability of signal propagation across layers while preserving model expressivity.
  3. Muon Optimizer: We employ 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. The post-training features a two-stage paradigm: independent cultivation of domain-specific experts (through SFT and RL with GRPO), followed by unified model consolidation via on-policy distillation, integrating distinct proficiencies across diverse domains into a single model.

DeepSeek-V4-Pro-Max, the maximum reasoning effort mode of DeepSeek-V4-Pro, significantly advances the knowledge capabilities of open-source models, firmly establishing itself as the best open-source model available today. It achieves top-tier performance in coding benchmarks and significantly bridges the gap with leading closed-source models on reasoning and agentic tasks. Meanwhile, DeepSeek-V4-Flash-Max achieves comparable reasoning performance to the Pro version when given a larger thinking budget, though its smaller parameter scale naturally places it slightly behind on pure knowledge tasks and the most complex agentic workflows.

Benchmark

Model Downloads#

Model#Total Params#Activated ParamsContext LengthPrecisionDownload
DeepSeek-V4-Flash-Base284B13B1MFP8 MixedHuggingFace | ModelScope
DeepSeek-V4-Flash284B13B1MFP4 + FP8 Mixed*HuggingFace | ModelScope
DeepSeek-V4-Pro-Base1.6T49B1MFP8 MixedHuggingFace | ModelScope
DeepSeek-V4-Pro1.6T49B1MFP4 + FP8 Mixed*HuggingFace | ModelScope

*FP4 + FP8 Mixed: MoE expert parameters use FP4 precision; most other parameters use FP8.

Evaluation Results#

Base Model#

Benchmark (Metric)# ShotsDeepSeek-V4-Pro-BaseDeepSeek-V4-Flash-BaseDeepSeek-V3.2-Base
Architecture-MoEMoEMoE
# Activated Params-49B13B37B
# Total Params-1.6T284B671B
World Knowledge
AGIEval (EM)0-shot83.182.680.1
MMLU (EM)5-shot90.188.787.8
MMLU-Redux (EM)5-shot90.889.487.5
MMLU-Pro (EM)5-shot73.568.365.5
MMMLU (EM)5-shot90.388.887.9
C-Eval (EM)5-shot93.192.190.4
CMMLU (EM)5-shot90.890.488.9
MultiLoKo (EM)5-shot51.142.238.7
Simple-QA verified (EM)25-shot55.230.128.3
SuperGPQA (EM)5-shot53.946.545.0
FACTS Parametric (EM)25-shot62.633.927.1
TriviaQA (EM)5-shot85.682.883.3
Language & Reasoning
BBH (EM)3-shot87.586.987.6
DROP (F1)1-shot88.788.688.2
HellaSwag (EM)0-shot88.085.786.4
WinoGrande (EM)0-shot81.579.578.9
CLUEWSC (EM)5-shot85.282.283.5
Code & Math
BigCodeBench (Pass@1)3-shot59.256.863.9
HumanEval (Pass@1)0-shot76.869.562.8
GSM8K (EM)8-shot92.690.891.1
MATH (EM)4-shot64.557.460.5
MGSM (EM)8-shot84.485.781.3
CMath (EM)3-shot90.993.692.6
Long Context
LongBench-V2 (EM)1-shot51.544.740.2

Instruct Model#

DeepSeek-V4-Pro and DeepSeek-V4-Flash both support three reasoning effort modes:

Reasoning ModeCharacteristicsTypical Use CasesResponse Format
Non-thinkFast, intuitive responsesRoutine daily tasks, low-risk decisions</think> summary
Think HighConscious logical analysis, slower but more accurateComplex problem-solving, planning<think> thinking </think> summary
Think MaxPush reasoning to its fullest extentExploring the boundary of model reasoning capabilitySpecial system prompt + <think> thinking </think> summary

DeepSeek-V4-Pro-Max vs Frontier Models#

Benchmark (Metric)DS-V4-Pro MaxOpus-4.6 MaxGPT-5.4 xHighGemini-3.1-Pro HighK2.6 ThinkingGLM-5.1 Thinking
Knowledge & Reasoning
MMLU-Pro (EM)87.589.187.591.087.186.0
SimpleQA-Verified (Pass@1)57.946.245.375.636.938.1
Chinese-SimpleQA (Pass@1)84.476.476.885.975.975.0
GPQA Diamond (Pass@1)90.191.393.094.390.586.2
HLE (Pass@1)37.740.039.844.436.434.7
LiveCodeBench (Pass@1)93.588.8-91.789.6-
Codeforces (Rating)3206-31683052--
HMMT 2026 Feb (Pass@1)95.296.297.794.792.789.4
IMOAnswerBench (Pass@1)89.875.391.481.086.083.8
Apex (Pass@1)38.334.554.160.924.011.5
Apex Shortlist (Pass@1)90.285.978.189.175.572.4
Long Context
MRCR 1M (MMR)83.592.9-76.3--
CorpusQA 1M (ACC)62.071.7-53.8--
Agentic
Terminal Bench 2.0 (Acc)67.965.475.168.566.763.5
SWE Verified (Resolved)80.680.8-80.680.2-
SWE Pro (Resolved)55.457.357.754.258.658.4
SWE Multilingual (Resolved)76.277.5--76.773.3
BrowseComp (Pass@1)83.483.782.785.983.279.3
HLE w/ tools (Pass@1)48.253.152.051.654.050.4
GDPval-AA (Elo)155416191674131414821535
MCPAtlas Public (Pass@1)73.673.867.269.266.671.8
Toolathlon (Pass@1)51.847.254.648.850.040.7

Comparison across Modes#

Benchmark (Metric)V4-Pro MaxV4-Pro HighV4-Pro Non-ThinkV4-Flash MaxV4-Flash HighV4-Flash Non-Think
Knowledge & Reasoning
MMLU-Pro (EM)87.587.182.986.286.483.0
SimpleQA-Verified (Pass@1)57.946.245.034.128.923.1
Chinese-SimpleQA (Pass@1)84.477.775.878.973.271.5
GPQA Diamond (Pass@1)90.189.172.988.187.471.2
HLE (Pass@1)37.734.57.734.829.48.1
LiveCodeBench (Pass@1)93.589.856.891.688.455.2
Codeforces (Rating)32062919-30522816-
HMMT 2026 Feb (Pass@1)95.294.031.794.891.940.8
IMOAnswerBench (Pass@1)89.888.035.388.485.141.9
Apex (Pass@1)38.327.40.433.019.11.0
Apex Shortlist (Pass@1)90.285.59.285.772.19.3
Long Context
MRCR 1M (MMR)83.583.344.778.776.937.5
CorpusQA 1M (ACC)62.056.535.660.559.315.5
Agentic
Terminal Bench 2.0 (Acc)67.963.359.156.956.649.1
SWE Verified (Resolved)80.679.473.679.078.673.7
SWE Pro (Resolved)55.454.452.152.652.349.1
SWE Multilingual (Resolved)76.274.169.873.370.269.7
BrowseComp (Pass@1)83.480.4-73.253.5-
HLE w/ tools (Pass@1)48.244.7-45.140.3-
MCPAtlas (Pass@1)73.674.269.469.067.464.0
GDPval-AA (Elo)1554--1395--
Toolathlon (Pass@1)51.849.046.347.843.540.7

Chat Template#

This release does not include a Jinja-format chat template. Instead, we provide a dedicated encoding folder with Python scripts and test cases demonstrating how to encode messages in OpenAI-compatible format into input strings for the model, and how to parse the model’s text output.

A brief example:

from encoding_dsv4 import encode_messages, parse_message_from_completion_text

messages = [
    {"role": "user", "content": "hello"},
    {"role": "assistant", "content": "Hello! I am DeepSeek.", "reasoning_content": "thinking..."},
    {"role": "user", "content": "1+1=?"}
]

# messages -> string
prompt = encode_messages(messages, thinking_mode="thinking")

# string -> tokens
import transformers
tokenizer = transformers.AutoTokenizer.from_pretrained("deepseek-ai/DeepSeek-V4-Pro")
tokens = tokenizer.encode(prompt)
python

How to Run Locally#

For local deployment, we recommend setting the sampling parameters to temperature = 1.0, top_p = 1.0. For the Think Max reasoning mode, we recommend setting the context window to at least 384K tokens.

License#

This repository and the model weights are licensed under the MIT License.

Citation#

@misc{deepseekai2026deepseekv4,
      title={DeepSeek-V4: Towards Highly Efficient Million-Token Context Intelligence},
      author={DeepSeek-AI},
      year={2026},
}
bibtex

Contact#

If you have any questions, please raise an issue or contact us at service@deepseek.com.

DeepSeek-V4
https://www.oproai.com/blog/deepseek-v4/
AuthorDeepSeek
Published atApril 23, 2026
LicenseMIT