Skip to main content

1. Model Introduction

DeepSeek-Math-V2 is DeepSeek’s advanced mathematical reasoning model with strong theorem-proving capabilities. The model demonstrates exceptional performance on mathematical competitions, achieving gold-level scores on IMO 2025 and CMO 2024, and a near-perfect 118/120 on Putnam 2024 with scaled test-time compute. Key Features:
  • Strong Theorem-Proving: Gold-level performance on IMO 2025 and CMO 2024
  • Self-Verifiable Reasoning: Implements self-verifiable mathematical reasoning for improved accuracy
  • Competition-Level Math: Near-perfect score (118/120) on Putnam 2024
  • Large MoE Model: ~671B total parameters, requires high-memory GPUs (B200 183GB or B300 275GB)
Available Models: License: To use DeepSeek-Math-V2, you must agree to DeepSeek’s Community License. See LICENSE for details.

2. SGLang Installation

Please refer to the official SGLang installation guide for installation instructions.

3. Model Deployment

This section provides deployment configurations optimized for different hardware platforms and use cases.

3.1 Basic Configuration

Interactive Command Generator: Use the configuration selector below to automatically generate the appropriate deployment command for your hardware platform, quantization method, and deployment strategy.
DeepSeek-Math-V2 is built on DeepSeek-V3.2 and uses DSA sparse attention. All recipes here run the DSA indexer top-k on the default --dsa-topk-backend sgl-kernel. Other top-k backend choices have not been fully validated on this model.

3.2 Configuration Tips

Hardware Requirements:
  • B200 (183GB): BF16 tp=8
  • B300 (275GB): BF16 tp=8
DP Attention:
  • Enable DP attention for high-throughput scenarios
  • The --dp value commonly matches the --tp value
  • Trade-off: Higher throughput at the cost of slightly increased latency

4. Model Invocation

4.1 Deployment Command

Deploy the model using the command generated above. Example for B200:
Command

4.2 Mathematical Reasoning

DeepSeek-Math-V2 excels at mathematical problem-solving with step-by-step reasoning. Streaming with Thinking Process:
Example
Output Example:
Output

4.3 Competition-Level Problems

Example: IMO-style Problem:
Example
Output Example:
Output

5. Benchmark

5.1 Accuracy Benchmark

5.1.1 GSM8K Benchmark

Benchmark Command:
Command
Test Results:
Output

5.2 Speed Benchmark

Test Environment:
  • Hardware: NVIDIA B200 GPU (8x, 183GB each)
  • Model: DeepSeek-Math-V2
  • Tensor Parallelism: 8
  • SGLang Version: 0.5.8

5.2.1 Latency Benchmark

Benchmark Command:
Command
Test Results:
Output

5.2.2 Throughput Benchmark

Benchmark Command:
Command
Test Results:
Output