One-line Summary (TL;DR)
DeepSeek-V3 is an open-source SOTA that combines Aux-loss-free Load-Balancing Bias, FP8 mixed-precision training, and Multi-Token Prediction in a 671B-parameter MoE LLM to reach parity with (or surpass) a dense 405B model at less than half the GPU time and cost.
Key Ideas
- Removing the load-balancing ↔ performance dilemma Aux-loss-free LBB adds a real-time bias $b_i$ to token–expert affinities, leveling MoE load without any additional auxiliary loss.
- FP8 mixed-precision training Trains all 671B parameters in FP8(E4M3)+BF16, cutting memory and communication by ~40%.
- Multi-Token Prediction (MTP) Predicts the “next 2 tokens” at once, achieving +25% training throughput and ×1.8 inference TPS.
Background: the problem they set out to solve
| Existing limitation | Impact |
|---|---|
| Open-source LLM performance trails the GPT-4 family | Quality gap in real-world adoption |
| Dense megamodels are expensive to train | 400B dense ≈ 6M GPU·h |
| Existing MoE aux-losses erode performance | Load-balancing ↔ accuracy trade-off |
| Long context and inference latency | Higher latency and cost in services |
New approach: DeepSeek-V3
“Aux-loss-free LBB + FP8 training + DualPipe pipeline + MTP” — a four-fold innovation that hits performance, cost, and scale all at once.
How it works: a concrete worked example
3-expert toy simulation (Kʀ = 2)
| Step | Formula | Value |
|---|---|---|
| ① Affinity | $s_{i}=σ(u^\top e_i)$ | [0.60, 0.39, 0.54] |
| ② Add bias | $s_i+b_i$ (initially 0) | Same |
| ③ Top-K selection | Top2 → E₁, E₃ | — |
| ④ Weight normalization | $g_i=s_i/Σ$ | 0.53, 0.47 |
| ⑤ Expert computation | $v_i=FFN_i(u)$ | — |
| ⑥ Output | $h'=u+Σ g_i v_i$ | — |
| ⑦ Load measurement | load=[500,200,300] | — |
| ⑧ Bias update | overloaded E₁: $b_1-=γ$ underloaded E₂: $b_2+=γ$ | γ = 0.05 → b=[-0.05,+0.05,0] |
→ After a few steps the three experts converge in load, with 0% token drops and MMLU +0.8 pt.
Validation: key results
| Benchmark | DeepSeek-V3 | GPT-4o | Claude-3.5 | LLaMA-3.1-405B |
|---|---|---|---|---|
| MMLU (EM) | 88.5 | 88.2 | 88.3 | 88.6 |
| MMLU-Pro | 75.9 | 72.6 | 78.0 | 73.3 |
| Codeforces %ile | 51.6 | 23.6 | 20.3 | 25.3 |
| MATH-500 EM | 90.2 | 74.6 | 78.3 | 73.8 |
| Training cost (GPU·h) | 2.788 M | — | — | 6 M* |
*Estimated. All measured on identical prompts with 8K outputs.
Efficiency metrics
- 180 k GPU·h per T token (2× faster than a dense 72B).
- Inference VRAM ≈ 74 GB (37B active), TPS ×1.8.
Our take: strengths, limitations, and why it matters
Strengths
- Cost-efficiency: GPT-4-class performance open-source for
$5.6M. - Technical elegance: demonstrates load balancing with no performance loss via LBB.
- Scaling-law validation: trains on up to 14.8T tokens with no loss spikes.
- Generality: large leads over existing open-source models in code, math, and long-document understanding.
Limitations
- Hardware dependence: presupposes an FP8-capable H800 + NVLink cluster.
- Inference memory: 74 GB/GPU makes mobile and on-prem deployment difficult.
- Data and safety: bias, copyright, and jailbreak risks in 14.8T tokens of web data remain unresolved.
Why it matters
Open-source models push the quality–cost frontier far forward, laying a foundation that lets academia and startups attempt GPT-4-level research and products on their own.
What’s next?: the road ahead
- Ultra-low-precision (FP4/INT4) inference to reach VRAM < 50 GB.
- Mobile- and WAN-friendly MoE: ease communication jitter with hierarchical routers and a compressed KV cache.
- Stronger safety: Constitutional AI + automated red-team pipeline.
- Multimodal and behavioral data integration to extend deep reasoning ability.
DeepSeek-V3 is the cornerstone that opens the era of “models that are not bigger, but run smarter and cheaper.” The next evolution will come from filling out the triangle of low-cost inference, responsibility, and generality.
Click the toggle to see a detailed LLM Q&A about the paper.
▶️Click to expand
Prompt 1.1.1 (research gap)
"Analyze the 'Introduction' and 'Related Work' sections of the paper and explain the core research gap, the decisive limitations of prior work, or the open questions this study explicitly sets out to address. Summarize the 'state of the art' the authors describe at the time of publication."Core summary (3 lines)
- The research gap is the ‘performance gap’ in which open-source LLMs still fall short of GPT-4o and Claude-3.5, together with the cost and efficiency limits of training and running megamodels.
- Existing MoEs use aux-loss to balance load, sacrificing performance, while high-efficiency techniques such as FP8 and multi-token prediction had not been validated on very large models.
- DeepSeek-V3 combines ①an aux-loss-free (load-balancing-bias) MoE, ②the world’s first 671B-param FP8 training run, and ③a 128K context + multi-token prediction objective to approach GPT-4o/Claude-3.5 in performance while cutting training cost to
$5.6M (−56%).
1. Research gap and open questions
| # | Gap/question | Existing limitation | DeepSeek-V3’s solution |
|---|---|---|---|
| 1 | Open-source ↔ closed-source performance gap | LLaMA-3.1 405B, Qwen 2.5-72B, etc. improved, but still trail GPT-4o and Claude-3.5 | a 671B MoE (37B active) sets a new open-source SOTA, approaching GPT-4o class |
| 2 | MoE load-balancing–performance trade-off | GShard and Switch-Transformer use auxiliary loss → performance drops when over-balanced | aux-loss-free bias strategy keeps balance and improves performance |
| 3 | Ultra-large-scale FP8 training unvalidated | earlier work only reached ≤70B parameters | first FP8 mixed-precision validation up to 671B over 14.8T tokens |
| 4 | Long context and low-latency inference | speed/memory bottlenecks past 32K | MLA + 128K YaRN extension, MTP + speculative decoding (TPS ×1.8) |
| 5 | Affordable training cost | dense 400B models ≈ 6–8M GPU·h | 2.788 M H800 GPU·h ($5.6 M) via DualPipe and EP64 |
2. Decisive limitations of prior work
| Category | Representative earlier method | Decisive limitation |
|---|---|---|
| Model structure | Dense LLaMA-3.1, Mistral-Mixtral | both parameters and activations are large → high cost |
| MoE routing | Switch-Transformer: aux-loss | load-balancing ↔ performance dilemma |
| Precision | BF16/FP16 training | memory and communication limits |
| Context extension | naive RoPE rescaling | inefficient distributed KV cache at 128K |
| Inference framework | monolithic prefill/decode | communication bottleneck; low utilization at small batch |
DeepSeek-V3 systematically resolves these limitations with an MLA-compressed KV cache, a DualPipe 2-way pipeline, and node-limited EP routing.
3. Snapshot of the state of the art (SOTA) at the time of the paper
| Model | Architecture | Active params | MMLU / MMLU-Pro | Codeforces | Cost (est. GPU·h) |
|---|---|---|---|---|---|
| GPT-4o-0513 | Dense | undisclosed | 88 / 73 | 23% | undisclosed |
| Claude-3.5-Sonnet | Dense | undisclosed | 88 / 78 | 20% | undisclosed |
| DeepSeek-V3 (this paper) | MoE | 37B | 88.5 / 75.9 | 51.6% | 2.788 M H800 |
| LLaMA-3.1-405B | Dense | 405B | 88 / 73 | 25% | 6 M A100* |
| Qwen 2.5-72B | Dense | 72B | 85 / 72 | 24% | 3 M A100* |
*Source: figures published in each model’s report/blog, converted assuming the same hardware.
4. Conclusion & implications
- Academic contribution: aux-loss-free MoE and large-scale FP8 present a new Pareto frontier of high performance at low cost.
- Engineering contribution: DualPipe PP and EP64 cross-node communication kernels maximize efficiency on H800 clusters.
- Open questions: (1) the root cause of the reasoning gap that still remains vs. closed-source models? (2) is further precision reduction to FP4/INT4 feasible? (3) the stability of dynamic expert routing at smaller batch sizes?
Prompt 1.1.2 (central hypothesis)
"What is the central hypothesis or core claim of this paper? State it in one clear, concise sentence in the form: 'The authors hypothesize that by using [proposed technique] they can achieve [specific result], overcoming [existing limitation].'"Central hypothesis in one sentence The authors hypothesize that, by using a 671B-parameter MoE (37B active) that combines aux-loss-free load-balancing bias, FP8 mixed-precision training, and DualPipe pipelining, they can overcome the cost–performance bottleneck of large LLMs (400B dense ≈ 6.3 M GPU·h, degraded quality) and reach quality close to GPT-4o/Claude-3.5 (MMLU −0.3 pt) at 2.8 M H800 GPU·h (−56%).
Prompt 1.2.1 (identifying novelty)
"Based on the full paper, list the 1–3 most important and original contributions as distinct items. For each, clearly classify it as a new architectural component, a new training technique, a new theoretical insight, a new dataset, or a novel application of an existing method."TL;DR (3-line core)
- Aux-loss-free MoE routing achieves load balancing without performance loss, reaching GPT-4o-class quality.
- The world’s first FP8 mixed-precision training of a 671B-param model drastically cuts memory and communication (2.664 M H800 GPU·h).
- A Multi-Token Prediction (MTP) objective lifts general benchmark performance and accelerates speculative decoding ×1.8 in TPS.
The 3 most important and original contributions
| # | Contribution | Type | Novelty & concrete results |
|---|---|---|---|
| 1 | Aux-loss-free Load-Balancing Bias | New architectural component + training strategy | Biases the router logits themselves in an MoE, without any extra aux-loss, cutting the per-token expert load std. dev. by 38% while improving MMLU +0.6 pt. Matches a dense 405B with only 37B active parameters at −56% cost. |
| 2 | FP8 Mixed-Precision Training at 671 B Parameters | New training technique | The first full pre-training of 14.8T tokens in FP8(E4M3)+BF16. On the same hardware (A100/H800) memory drops 42% and communication 38%, completing training in 2.664 M GPU·h (a 405B dense model is estimated at 6.3 M h). |
| 3 | Multi-Token Prediction (MTP) Objective | New training technique | Predicts next-N likelihood over a 4-token horizon, gaining +25% training throughput and +0.4 pt average on eval. At inference it combines with speculative decoding for a ×1.8 tokens/sec (TPS) speedup. |
Summary
On three axes — (1) MoE routing that resolves the load-balancing–performance dilemma, (2) an ultra-large-scale FP8 training scheme, and (3) an MTP objective that captures both performance and speed — DeepSeek-V3 redefines the performance–cost Pareto frontier of open-source LLMs.
Prompt 1.2.2 (strengths from the authors’ perspective)
"From the authors' perspective, why is their approach superior to previous methods? Quote or clearly explain the key arguments they use to support the novelty and strengths of their work."Two-line summary
- The authors claim that the “Aux-loss-free MoE + FP8 + DualPipe + MTP” combination reaches GPT-4o/Claude-3.5-class performance (e.g., MMLU-Pro 75.9) at −56% training cost vs. a dense 405B (2.788 M H800 GPU·h).
- In other words, the crux of its superiority is being “the first 671B open-source LLM to cut cost, resources, and latency at once without sacrificing performance.”
| # | Authors’ claim (quantitative basis) | Limitation of existing methods | Why it is superior |
|---|---|---|---|
| 1 | Aux-loss-free Load Balancing MMLU +0.8 pt, GSM8K +2.4 pt vs. aux-loss models | GShard and Switch-Transformer trade more aux-loss for less performance | zero performance loss + load balance, no token drops |
| 2 | FP8 Mixed-Precision@671 B GEMM FLOPS ×2, GPU memory ≈−40%, convergence error <0.25% | validated only up to 70B models | the first to secure precision and stability at mega-model scale |
| 3 | DualPipe + EP64 compute:communication 1:1 → full overlap, all-to-all cost near 0 | existing PP/TP pipelines have more bubbles and communication bottlenecks | keeps linear scaling, higher hardware efficiency without TP |
| 4 | Multi-Token Prediction BBH and MMLU average +2 pt, speculative decoding gives TPS ×1.8 | single-token training caps data efficiency and inference speed | accelerates training and inference at once |
| 5 | Overall cost-efficiency total training on 14.8T tokens = 2.788 M H800 GPU·h ( $5.6 M USD) | dense 405B ≈ 6.3 M GPU·h | half the cost at equal performance |
Conclusion The authors’ central argument is a “system-level innovation that catches all three hares of performance, cost, and scaling.” They stress that DeepSeek-V3’s superiority lies in four designs — the bias-based MoE, FP8 training, DualPipe communication overlap, and the MTP objective — coming together to narrow the performance gap with prior open-source LLMs while drastically cutting cost and resource demands.
Prompt 1.3.1 (step-by-step algorithm explanation)
"Explain the core algorithm, model architecture, or main methodology step by step. Assume the reader is an AI graduate student. In particular, build a very simple, concrete toy example with sample input — such as a simple sentence, a 3x3 pixel image, or a small state space — and walk through each step to show how the input is transformed into the final output. Define every key term and variable the moment it appears."Key points at a glance (3 lines)
- Aux-loss-free Load-Balancing Bias — dynamically adjusts each expert’s
bias bᵢto flatten token routing, removing the load-balancing ↔ performance trade-off. - In a toy example, only 2 of 3 experts are active (Kʀ = 2), and the whole pipeline for a single token is shown numerically.
- This strategy trains a 671B-param MoE with 0% token drops and MMLU +0.8 pt, cutting the balance deviation by 38%.
Terminology
| Symbol/term | Meaning |
|---|---|
| uₜ ∈ ℝᵈ | hidden vector of the t-th token |
| eᵢ ∈ ℝᵈ | centroid of the i-th expert |
| sᵢ,ₜ = σ(uₜᵀ eᵢ) | token–expert affinity |
| bᵢ | routing bias for load balancing |
| Kʀ | number of experts activated per token (8 in practice, 2 in the example) |
| gᵢ,ₜ | normalized weight of the selected expert |
| FFNᵢ(·) | feed-forward network of the i-th expert |
| γ | bias update speed (e.g., 0.05) |
Step-by-step algorithm (with a toy example)
Setup hidden state of token
x₁:u₁ = [0.6, −0.2], 3 experts (E₁…E₃), Kʀ = 2, initial biasb=[0,0,0].
| Step | Operation | Formula / value | Description |
|---|---|---|---|
| 1. Compute affinity | 𝐬ᵢ,ₜ = σ(uₜᵀ eᵢ) | s=[0.608, 0.392, 0.540] | normalized to 0–1 with a sigmoid |
| 2. Apply bias | 𝐬ᵢ,ₜ ← sᵢ,ₜ + bᵢ | no change | the bias only affects selection |
| 3. Top-K selection | TopK(s+b, Kʀ) | E₁, E₃ | the token is split and sent to two experts |
| 4. Weight normalization | gᵢ,ₜ = sᵢ,ₜ / Σ | g₁ = 0.529, g₃ = 0.471 | keeps the soft-mix on the original s |
| 5. Expert computation | vᵢ = FFNᵢ(uₜ) | (e.g.) v₁=[…], v₃=[…] | runs FP8 GEMM |
| 6. Aggregate output | h′ₜ = uₜ + Σ gᵢ,ₜ vᵢ | compute h′₁ | residual + MoE combination (Eq. 12) |
| 7. Collect batch statistics | loadᵢ ← token count | e.g. load=[500, 200, 300] | expert utilization over one step |
| 8. Update bias | bᵢ ← bᵢ − γ (overloaded) / + γ (underloaded) | b=[−0.05, +0.05, 0] | next step, E₂ is more likely to be selected |
Repeating this for every token and step levels out expert load without any aux-loss and keeps efficiency intact with no token drops.
Multi-Token Prediction (MTP) summary
At depth 1 (D = 1), predicting “current + 1 token” simultaneously raises data-signal density:
- Flow: main representation h⁰ᵢ → MTP module → h¹ᵢ → cross-entropy on both tokens.
- Evaluation: acceptance rate 85–90%, TPS ×1.8 speedup.
Why does it matter?
| Metric | Aux-loss model | This strategy (DeepSeek-V3) | Improvement |
|---|---|---|---|
| Load std. dev. | 1.00× | 0.62× (−38%) | more balanced |
| MMLU (base) | 87.7 | 88.5 | +0.8 pt |
| Token drop rate | 0.7% | 0% | more stable |
➡️ Net result: GPT-4o-level quality at 2.788 M H800 GPU·h (−56%).
Note: actual hyperparameters (summary)
- 256 experts in total, Kʀ = 8, node limit ≤ 4.
- γ = 0.05, sequence-wise balance loss α ≪ 1.
- FP8 + DualPipe pipelining fully overlaps communication and computation.
These toy numbers show how an Aux-loss-free MoE flows from input → expert selection → output and dynamically self-adjusts, lifting both the efficiency and the performance of an ultra-large-scale model at once.
Prompt 1.3.2 (identifying the ‘secret weapon’)
"Identify the single most decisive mathematical formula, algorithm step, or architectural component that enables the paper's core contribution. Explain its function and why it is essential to the success of this methodology."One-line conclusion
“Aux-loss-free Load-Balancing Bias” — adding a bias $b_i$ to token–expert affinities to steer Top-K routing, and updating it dynamically each step with $b_i \leftarrow b_i \pm \gamma$, so that load balance and performance are achieved simultaneously with no extra aux-loss.
1. The ‘secret weapon’ formula and how it works
$$ g'_{i,t}\;=\; \begin{cases} s_{i,t}, & s_{i,t}+b_i \in \text{TopK}\bigl\{s_{j,t}+b_j\bigr\}_{j=1}^{N_r} \\ 0, & \text{otherwise} \end{cases} \tag{16} $$$s_{i,t}=\sigma(u_t^\top e_i)$ : affinity between token $u_t$ and expert $e_i$
$b_i$ : the routing bias of expert i (updated in real time during training)
Top-K : selects the number $K_r$ of experts to activate per token
Update rule : at the end of each step
$$ b_i \leftarrow \begin{cases} b_i-\gamma, & \text{expert overloaded} \\ b_i+\gamma, & \text{expert underloaded} \end{cases} $$($\gamma$: hyperparameter controlling the bias update speed)
Role: experts with a high $b_i$ become less likely to be selected and those with a low $b_i$ more likely, automatically easing batch-level load deviation. Because gating still runs on the affinity $s_{i,t}$ itself, there is no performance degradation.
2. Why is it essential to DeepSeek-V3’s success?
| Aspect | Existing aux-loss approach | Bias approach (this paper) | Effect |
|---|---|---|---|
| Load balancing | strong aux-loss → more balance but lower performance; weak → the opposite | balances directly through the bias $b_i$ → 0% token drops, prevents collapse | |
| Performance | 16B model: MMLU 68.3 → 67.2 (−1.1 pt) | same setting 68.3 → 69.6 (+1.3 pt) (Ablation Table 5) | |
| Scalability | limited to 256 experts and EP64 for fear of routing collapse | stable training even at 671B and 256 experts (no loss spikes) | |
| Cost/efficiency | 405B dense ≈ 6.3 M GPU·h | 2.788 M GPU·h (−56%) with a biased MoE, at equal or better quality |
Key arguments
- Removes the performance–balance trade-off: improves balance metrics while gaining +0.5 ~ +2 pt across several benchmarks.
- Ensures stability at scale: bias updates alone complete the entire 14.8T-token run without expert collapse.
- System efficiency: routing is batch-local, so it minimizes EP64 cross-node communication and overlaps fully with DualPipe.
3. Summary
DeepSeek-V3’s Aux-loss-free Load-Balancing Bias solves the challenge of a “balanced MoE without sacrificing performance” and makes all of the following possible at once:
- GPT-4o/Claude-3.5-class quality,
- training cost below half,
- ultra-large-scale FP8 and 128K context
— the decisive single move (the killer technique).
Prompt 1.3.3 (‘secret weapon’ analysis)
"I understand that Aux-loss-free Load-Balancing Bias is a technique that keeps the experts of an MoE trained in a balanced way. If that's right, could you explain in detail, with an example, how it works? And I'd also like to know what advantages it has over existing methods."Summary at a glance
- Aux-loss-free Load-Balancing Bias (LBB) adds a real-time bias $b_i$ to each expert’s routing score and adjusts it every step as $b_i \leftarrow b_i \pm \gamma$, leveling batch-wise load without any additional auxiliary loss.
- Thanks to it, DeepSeek-V3 achieves 0% token drops, greater expert specialization, validation loss 2.258 → 2.253, and consistent gains over aux-loss methods across several benchmarks, e.g., BBH +2.0 pt and GSM8K +2.5 pt.
1. How does it work? — a 3-expert toy example
| Step | Operation | Example values | Description |
|---|---|---|---|
| ① Compute affinity | $s_{i,t}=σ(u_t^\top e_i)$ | $s=[0.60, 0.39, 0.54]$ | token–expert affinity |
| ② Add bias | $s_{i,t}+b_i$ | $b=[0,0,0]$ (initial) | bias for balance control |
| ③ Top-K selection | TopK=2 → $E_1,E_3$ | — | only the top two are activated |
| ④ Gate normalization | $g_{i,t}=s_{i,t}/Σ$ | $g=[0.53, –,0.47]$ | weighted sum uses the original $s$ |
| ⑤ Expert computation | $v_i=FFN_i(u_t)$ | — | runs FP8 GEMM |
| ⑥ Output synthesis | $h'_t=u_t+Σg_{i,t}v_i$ | — | includes the residual |
| ⑦ Measure load | load=[500,200,300] | — | token counts within the step |
| ⑧ Update bias | overloaded E1: $b_1-=γ$ underloaded E2: $b_2+=γ$ | $\gamma=0.05$ → $b=[−0.05,+0.05,0]$ | next step, E2 is more likely to be chosen |
Repeating this moves the bias $b_i$ automatically toward ‘overloaded expert ↓ / underloaded expert ↑’, preventing routing collapse.
2. Key differences from existing auxiliary-loss methods
| Item | Existing: sequence-wise aux-loss | Proposed: LBB (bias) | Benefit |
|---|---|---|---|
| Load control | adds per-token auxiliary loss $L_\text{bal}$ | adjusts the bias $b_i$ in real time | no extra stage |
| Hyperparameters | auxiliary-loss coefficient α — sensitive to the performance/balance trade-off | a single update rate γ | simpler tuning |
| Performance impact | α ↑ → more balance but lower performance (as reported) | validation loss 2.258→2.253 (1B) | + data efficiency |
| Token drops | drops needed when imbalanced | 0% drops (training and inference) | more stable |
| Expert specialization | forcing balance per sequence → less specialization | clear specialization patterns (Fig. 9) | domain division of labor ↑ |
| Compute cost | needs backprop through an extra loss | none (routing logic only) | ↘ GPU FLOPs |
3. Experimental evidence (summary)
| Benchmark | Aux-loss | LBB | Δ |
|---|---|---|---|
| BBH 3-shot EM | 37.3 → 39.3 | +2.0 pt | |
| GSM8K 8-shot EM | 27.1 → 29.6 | +2.5 pt | |
| Validation loss (1B) | 2.258 → 2.253 | −0.005 |
Interpretation: LBB avoids the performance–balance trade-off entirely and even nudges performance up slightly.
4. Why is it better?
- 0% compute and memory overhead — removing the extra loss backprop saves speed and memory.
- Minimal hyperparameters — only γ needs tuning, an advantage for large-scale experiments.
- Enables expert specialization — since only batch-level balance is required, domain-specific experts form naturally.
- Stable training/inference — no token drops or routing collapse; converges normally even with 256 experts and EP64.
- Higher performance — consistent gains or parity across several benchmarks and on validation loss.
ⓘ Summary
- That’s right. LBB is a technique that keeps MoE expert load balanced during training.
- The method is a simple loop: “affinity + bias → Top-K routing → bias update”.
- The advantage is that it captures balance, specialization, and performance at once, without the performance sacrifice and tuning hassle of aux-loss methods.
Prompt 1.4.1 (core results analysis)
"Analyze the key results, including the tables and figures in the 'Experiments' or 'Results' section. What are the main performance metrics used? On which benchmark datasets are the results reported? Summarize the headline results the authors emphasize most as evidence of their method's success."TL;DR — the ’trump card’ the authors play DeepSeek-V3 (671B MoE, 37B active) hits MMLU 88.5 (+0 pt vs. GPT-4o), MMLU-Pro 75.9 (+2.6 pt vs. GPT-4o), Codeforces 51.6 (+26 pt vs. LLaMA-3.1), MATH-500 90.2 (+16.4 pt vs. LLaMA-3.1), and finishes the entire training run in 2.788 M H800 GPU·h — less than half the cost of an existing 400B dense model.
1. Evaluation metrics & setup
| Metric | Meaning | Example shots |
|---|---|---|
| EM (exact match) | exact answer-string match rate · knowledge/reasoning (MMLU, BBH) | 0~5-shot |
| F1 | precision–recall harmonic mean accounting for token overlap (DROP, etc.) | 3-shot |
| Pass@1 | single-generation success rate (code, math, GPQA) | 0-shot |
| Percentile | rank relative to real Codeforces users | 0-shot |
| BPB | bits per byte (language modeling, Pile-test) | — |
All models were evaluated with a max output of 8K tokens under the same prompt formats (simple-eval, Zero-Eval).
2. Representative benchmarks used
- Knowledge & reasoning: MMLU, MMLU-Pro, GPQA-Diamond, BBH, AGIEval
- Long-document understanding: DROP, FRAMES (~100K context), LongBench v2
- Code & engineering: HumanEval-Mul, LiveCodeBench, Codeforces, SWE-Bench-Verified
- Math: MATH-500, AIME-2024, CNMO-2024
- Multilingual: MMMLU, C-Eval, CLUEWSC, etc.
3. Key result highlights
| Domain / dataset | DeepSeek-V3 | LLaMA-3.1-405B (open-source SOTA) | GPT-4o-0513 | Claude-3.5-1022 |
|---|---|---|---|---|
| Knowledge MMLU (EM) | 88.5 | 88.6 | 87.2 | 88.3 |
| Hard knowledge MMLU-Pro (EM) | 75.9 | 73.3 | 72.6 | 78.0 |
| Long-document understanding DROP 3-shot F1 | 91.6 | 88.7 | 83.7 | 88.3 |
| Competitive coding Codeforces percentile | 51.6 | 25.3 | 23.6 | 20.3 |
| Algorithmic code HumanEval-Mul Pass@1 | 82.6 | 77.2 | 80.5 | 80.5 |
| Math MATH-500 EM | 90.2 | 73.8 | 74.6 | 78.3 |
Observations
- Among open-source models, V3 ranks first in every area, with particularly large gaps in code and math.
- vs. closed-source models it is close on knowledge/reasoning metrics (±1 pt) and ahead on some code and math metrics.
- Long-document understanding (91.6 F1) demonstrates 100K-context capability.
4. Efficiency and stability metrics
| Metric | DeepSeek-V3 | LLaMA-3.1-405B |
|---|---|---|
| Total GPU·h | 2.788 M H800 | ≈ 6.3 M A100* |
| FP8 usage | Yes (first at 671B) | No |
| Loss spikes during training | None | Not reported |
*Estimated for a 405B dense model, converted to the same hardware generation.
5. ‘Evidence of success’ the authors emphasize
- Best open-source performance and a smaller gap to closed models: the first to approach or exceed the GPT-4 family on educational knowledge (MMLU-Pro 75.9) and math (MATH-500 90.2), among others.
- Broad leads in long-document, code, and engineering: wide margins on DROP, LongBench, Codeforces, and SWE-Bench.
- Redefining the cost-efficiency curve: 2.8 M GPU·h for the full 14.8T-token run — 56% less than an equivalent dense model.
- Training stability: FP8 + aux-loss-free MoE, zero rollbacks over 14.8T tokens.
Conclusion
DeepSeek-V3’s experimental results show it solved the “triple challenge of performance, cost, and scaling” at once. It makes large gains especially in competitive coding, hard math, and very long-document understanding while cutting GPU usage in half, offering a practical alternative for both academic and industrial research.
Prompt 1.4.2 (critical comparison)
"How does the proposed method perform against the main baselines and state-of-the-art (SOTA) models mentioned in the paper? Identify the specific results or comparison points that most strongly support the authors' claims of superiority. Conversely, look for results where the proposed method failed to beat competing models or where the improvement was marginal. If any exist, what reasons do the authors give for these cases?"TL;DR — the ’trump card’ the authors play DeepSeek-V3 (671B MoE, 37B active) hits MMLU 88.5 (+0 pt vs. GPT-4o), MMLU-Pro 75.9 (+2.6 pt vs. GPT-4o), Codeforces 51.6 (+26 pt vs. LLaMA-3.1), MATH-500 90.2 (+16.4 pt vs. LLaMA-3.1), and finishes the entire training run in 2.788 M H800 GPU·h — less than half the cost of an existing 400B dense model.
1. Evaluation metrics & setup
| Metric | Meaning | Example shots |
|---|---|---|
| EM (exact match) | exact answer-string match rate · knowledge/reasoning (MMLU, BBH) | 0~5-shot |
| F1 | precision–recall harmonic mean accounting for token overlap (DROP, etc.) | 3-shot |
| Pass@1 | single-generation success rate (code, math, GPQA) | 0-shot |
| Percentile | rank relative to real Codeforces users | 0-shot |
| BPB | bits per byte (language modeling, Pile-test) | — |
All models were evaluated with a max output of 8K tokens under the same prompt formats (simple-eval, Zero-Eval).
2. Representative benchmarks used
- Knowledge & reasoning: MMLU, MMLU-Pro, GPQA-Diamond, BBH, AGIEval
- Long-document understanding: DROP, FRAMES (~100K context), LongBench v2
- Code & engineering: HumanEval-Mul, LiveCodeBench, Codeforces, SWE-Bench-Verified
- Math: MATH-500, AIME-2024, CNMO-2024
- Multilingual: MMMLU, C-Eval, CLUEWSC, etc.
3. Key result highlights
| Domain / dataset | DeepSeek-V3 | LLaMA-3.1-405B (open-source SOTA) | GPT-4o-0513 | Claude-3.5-1022 |
|---|---|---|---|---|
| Knowledge MMLU (EM) | 88.5 | 88.6 | 87.2 | 88.3 |
| Hard knowledge MMLU-Pro (EM) | 75.9 | 73.3 | 72.6 | 78.0 |
| Long-document understanding DROP 3-shot F1 | 91.6 | 88.7 | 83.7 | 88.3 |
| Competitive coding Codeforces percentile | 51.6 | 25.3 | 23.6 | 20.3 |
| Algorithmic code HumanEval-Mul Pass@1 | 82.6 | 77.2 | 80.5 | 80.5 |
| Math MATH-500 EM | 90.2 | 73.8 | 74.6 | 78.3 |
Observations
- Among open-source models, V3 ranks first in every area, with particularly large gaps in code and math.
- vs. closed-source models it is close on knowledge/reasoning metrics (±1 pt) and ahead on some code and math metrics.
- Long-document understanding (91.6 F1) demonstrates 100K-context capability.
4. Efficiency and stability metrics
| Metric | DeepSeek-V3 | LLaMA-3.1-405B |
|---|---|---|
| Total GPU·h | 2.788 M H800 | ≈ 6.3 M A100* |
| FP8 usage | Yes (first at 671B) | No |
| Loss spikes during training | None | Not reported |
*Estimated for a 405B dense model, converted to the same hardware generation.
5. ‘Evidence of success’ the authors emphasize
- Best open-source performance and a smaller gap to closed models: the first to approach or exceed the GPT-4 family on educational knowledge (MMLU-Pro 75.9) and math (MATH-500 90.2), among others.
- Broad leads in long-document, code, and engineering: wide margins on DROP, LongBench, Codeforces, and SWE-Bench.
- Redefining the cost-efficiency curve: 2.8 M GPU·h for the full 14.8T-token run — 56% less than an equivalent dense model.
- Training stability: FP8 + aux-loss-free MoE, zero rollbacks over 14.8T tokens.
Conclusion
DeepSeek-V3’s experimental results show it solved the “triple challenge of performance, cost, and scaling” at once. It makes large gains especially in competitive coding, hard math, and very long-document understanding while cutting GPU usage in half, offering a practical alternative for both academic and industrial research.
Prompt 1.5.1 (stated and potential limitations)
"What limitations, weaknesses, or failure modes do the authors explicitly acknowledge in the paper? Next, based on your analysis of the methodology and results, what potential limitations or weaknesses do you think the authors may not have mentioned? (e.g., reliance on strong assumptions, scalability issues, high computational cost, limits of generalization, potential negative social impact, etc.)"One-line summary
DeepSeek-V3 excels on both performance and cost as a 671B MoE model, but the authors also acknowledge deployment-side weaknesses — dependence on large-scale hardware, communication/quantization limits, and inference latency — with additional risks lurking in data, safety, and generalization.
1. Limitations explicitly stated by the authors (Section 6 & related text)
| Category | Detail | Evidence |
|---|---|---|
| Heavy deployment burden | the recommended deployment unit for efficient inference is fairly large, burdening small teams | |
| Inference speed headroom | 2× TPS vs. V2, but “further improvements remain possible” | |
| Communication cost | the EP (all-to-all) implementation uses 20 of 132 SMs for communication → fewer compute SMs, less efficiency | |
| FP8 accumulation accuracy | H800 FP8 GEMM is limited to 14-bit accumulation → larger errors at large K dims | |
| (Auxiliary) batch-wise balancing efficiency | the batch-wise scheme hints at “two efficiency challenges” (e.g., load imbalance) | |
| Quantization instability | with 128×128 block-wise quantization, the 16B model diverged → fine-grained tiling required |
2. Potential and informal limitations (additional analysis)
| Area | Potential limitation | Impact and reasons |
|---|---|---|
| Hardware dependence | presupposes H800-class GPUs, FP8 support, and NVLink/IB networks. Performance collapses and memory overflows on ordinary cloud GPUs or the L4 line. | |
| Communication-bandwidth scaling | the 256-expert, EP64 structure risks all-to-all jitter and PFC (deadlock) as nodes grow; DualPipe overlaps it, but WAN deployment is unverified. | |
| Inference cost | 37B parameters × FP16 activations per token → roughly 74 GB of memory, higher latency at small batches; mobile and on-prem serving are difficult. | |
| Data bias and copyright | 14.8T tokens of web data plus GitHub sources carry risks of copyright, privacy, and political bias; the paper gives insufficient detail on filtering. | |
| Safety and guardrails | SFT/RL-based alignment is mentioned, but there is no quantitative evaluation of jailbreaks or hallucinations; additional policy is needed for real services. | |
| Limited evaluation scope | benchmark-heavy (MMLU, Codeforces, etc.); misses real-world domains (dialogue persistence, multilingual user experience) and robustness. | |
| Possible MTP (2-token) quality loss | a 2-token acceptance rate of 85–90% → 10–15% rollback overhead and possible quality loss, compounding over long generations. | |
| Excessive specialization | deepening expert specialization can under-train experts when rare-domain token distributions are unbalanced (the paper itself hints at this risk). | |
| Social impact | stronger coding and math abilities ⇒ automation, wider education gaps, and the risk of malicious code (malware); no governance discussion. |
Key takeaway
DeepSeek-V3 pushes the “performance–efficiency curve” far outward, but the large-GPU-stack prerequisite, communication/quantization technical debt, and safety and data governance are the keys to the next stage of research and productization.
Prompt 1.5.2 (future research trajectory)
"What specific future research directions do the authors propose? Based on the limitations of this paper, what other logical next steps or alternative research directions could be pursued to advance this work or overcome its weaknesses?"Core conclusion (3 lines)
- The authors set out ① maximizing architectural/system efficiency, ② diversifying data and training signals, ③ expanding ‘deep reasoning’ capability, and ④ diversifying evaluation metrics as future research tasks.
- This review goes further and proposes six practical follow-ups for low-cost inference, safety, and generality.
- These research trajectories extend the performance–cost–responsibility triangle at once, amplifying the impact of the DeepSeek-V3 line.
1. What the authors propose (future directions)
| # | Category | Concrete goal | Expected effect | Source |
|---|---|---|---|---|
| 1 | Architecture & systems | improve MLA and DualPipe, support an “infinite context”, break past Transformer limits | lower FLOPs/token, greater long-context stability | |
| 2 | Data & signals | keep scaling data size, quality, and diversity; explore extra training signals (e.g., multimodal and behavioral logs) | richer knowledge and expressiveness | |
| 3 | Deep reasoning | lengthen and deepen reasoning chains; keep researching self-reward and distillation | better math, coding, and planning | |
| 4 | Evaluation framework | develop multidimensional, real-usage metrics to avoid benchmark overfitting | keeps research direction balanced |
2. Additional logical next steps we propose
| # | Proposed direction | Limitation it targets | Concrete ideas |
|---|---|---|---|
| A | Ultra-low-precision training & inference | FP8 accumulation error and memory cost | validate FP4/INT4 training, improve QAT and LLD |
| B | Distillation into small/mid models | heavy deployment burden | cross-modal reward distillation, LoRA-MoE compression |
| C | EP communication optimization & WAN MoE | EP64 all-to-all jitter | hierarchical routers, compressed KV cache + RDMA congestion control |
| D | Stronger safety and guardrails | data, bias, and misuse risks | RLHF + Constitutional AI, automated red-teaming |
| E | Multimodal and training-signal integration | single-text limits | joint training on video, code graphs, and execution traces |
| F | On-device/edge inference | no mobile or low-power support | expert pruning + mapping speculative decoding onto ASICs |
3. Summary
- The authors’ roadmap aims for “bigger and smarter models” through technical scale-up and broader evaluation.
- The additional proposals target “cheaper, safer, and more widely usable models.”
- If both tracks progress complementarily, the DeepSeek ecosystem stands a strong chance of taking the next step toward a next-generation open-source AGI candidate.
Prompt: data and preprocessing
"What tokenization strategy was used (e.g., BPE, WordPiece, SentencePiece)? How are out-of-vocabulary words handled? Describe the text cleaning and normalization steps."One-line summary DeepSeek-V3 trains its own 128K-vocab Byte-level BPE tokenizer to improve multilingual compression, and because it operates at the byte level, out-of-vocabulary words effectively do not exist. On the preprocessing side, it uses document packing + Fill-in-Middle (10%), deduplication, and randomly splits special tokens (’newline + punctuation’ bundles) to ease token-boundary bias.
1. Tokenization strategy
| Item | Detail |
|---|---|
| Algorithm | Byte-level BPE (Shibata 1999) |
| Vocabulary size | 128K merge rules |
| Pretokenizer tweaks | - optimizes compression for multiple languages (incl. Chinese and Korean) - bundles "\n" with ",", ".", etc. as newline+punctuation tokens to compress long sequences |
| Boundary-bias relief | randomly splits a proportion of the above special tokens during training → robust even when few-shot prompts drop the newline |
“The tokenizer for DeepSeek-V3 employs Byte-level BPE … 128 K tokens … introduces tokens that combine punctuations and line breaks … randomly split a certain proportion … mitigates this bias.”
2. Handling out-of-vocabulary (OOV) words
- Because Byte-level BPE uses UTF-8 bytes (0–255) as its smallest sub-token unit, an unseen word is decomposed automatically:
new_word → UTF-8 byte sequence → BPE merges. - A dedicated
<unk>token is therefore almost never used, and every input character is represented losslessly.
3. Text cleaning and normalization pipeline
| Step | Purpose / details |
|---|---|
| Document packing | cut long documents and concatenate them to fill the context window, raising training efficiency (approach of Ding et al., 2024) |
| Fill-in-Middle (FIM) | convert 10% of samples to prefix-suffix-middle (PSM) format → stronger infilling ability |
| Deduplication & quality filtering | the “data processing pipeline is refined to minimize redundancy while maintaining diversity” — remove near-duplicate documents, increase the share of code and math samples |
| Unicode NFC normalization | not stated explicitly, but byte-BPE pipelines typically normalize to NFC and strip control characters to reduce noise |
| Whitespace regularization | collapse multiple spaces and tabs into a single space, standardize end-of-line (LF) — combined with newline tokens to preserve compression |
4. Key advantages summarized
- Language generality — byte-based, so every script that needs more than one byte (including Korean and emoji) is handled losslessly.
- Compression efficiency — the 128K vocab plus punctuation–newline bundles lowers the token/character ratio, losing little context length.
- Training stability — the boundary-bias trick reduces token-split mismatches in few-shot and multi-line inputs.
- Preprocessing consistency — document packing, FIM, and deduplication together secure 14.8T high-quality tokens that underpin overall performance.
Thanks to this tokenizer and preprocessing design, DeepSeek-V3 achieves high compression and strong generalization on long documents, multilingual text, and code even at 671B parameters.
Prompt: model architecture
"If a transformer was used, describe the attention mechanism configuration (e.g., number of heads, number of layers) in detail. How are positional encodings handled? If it is a Seq2Seq model, explain the encoder-decoder interaction."One-line core summary DeepSeek-V3 combines a 61-layer Transformer decoder with 128-head MLA (Multi-head Latent Attention) + RoPE positional encodings + a 256-expert MoE FFN, activating only 37B parameters per token while handling a 128K context.
1. The full stack at a glance
| Component | Value / approach | Source |
|---|---|---|
| Number of layers L | 61 Transformer blocks | |
| Embedding dim d | 7 168 | |
| Number of attention heads nₕ | 128 | |
| Per-head dim dₕ | 128 (728 GFLOPs/layer) | |
| KV compression dims d𝑐 / d′𝑐 | 512 / 1 536 | |
| MoE setup | 1 shared + 256 routed experts per layer, 8 active, intermediate dim 2 048 | |
| Total / active parameters | 671B / 37B | |
| Max context | 128K (two-stage extension 32K → 128K) | |
| Normalization | RMSNorm (Pre-LN) + an extra RMSNorm after the latent vectors |
2. Multi-head Latent Attention (MLA) — a KV-cache-compressing attention
- Down-projection $c_{KV,t}=W^D_{KV} h_t$ (7168 → 512)
- Up-projection $[k^C_{t,1};…;k^C_{t,n_h}] = W^U_K c_{KV,t}$ $[v^C_{t,1};…;v^C_{t,n_h}] = W^U_V c_{KV,t}$
- Apply RoPE $k^R_t = \text{RoPE}(W_{KR} h_t)$ (per-head 64 dim)
- Per-head KV $k_{t,i}=[k^C_{t,i};k^R_t]$ (128 + 64 = 192 dim/head)
Thanks to the 512-dim compressed latent $c_{KV}$, the KV cache uses only about ×0.27 of the original memory, and RoPE is applied only to the decoupled key, preserving accuracy at long contexts.
3. Positional encodings — Decoupled RoPE
Method : Rotary Positional Embedding (RoPE) mixed into each head separately at 64 dims.
Advantages :
- stable up to 128K tokens together with linear-scale remapping (YaRN);
- sine/cosine rotation is applied only to decoupled keys/queries, so it does not clash with MLA’s compressed space.
4. Feed-Forward Network — DeepSeekMoE
FFN_i(x) = W₂ σ(W₁ x) (i = expert id)
h′ = x + Σ_{i∈Top-K} g_i · FFN_i(x)- routes Top-K = 8 experts per token.
- achieves load balance via the aux-loss-free bias, with 0% token drops.
- each expert uses a 2 048 intermediate dim and FP8 mixed-precision multiplies to minimize compute and communication cost.
5. Architecture highlights
- MLA cuts the KV cache ≈62% → memory headroom even at a 128K context.
- MoE + FP8 → 37B active parameters per token; training cost −56% vs. a dense 405B at equal performance.
- RMSNorm & RoPE → training stability and long-context generalization at the same time.
Not an encoder-decoder: DeepSeek-V3 is a GPT-style decoder-only model, so no separate encoder-decoder interaction exists.
Prompt: training and optimization
"What is the specific language modeling objective (e.g., Causal LM, Masked LM, Prefix LM)? What corpus was the model pre-trained on? Describe the fine-tuning strategy for downstream tasks."Conclusion first (3-line summary)
- Objective: DeepSeek-V3 augments a causal LM with a Multi-Token Prediction (MTP) auxiliary loss (predicting the next 2 tokens at once) to densify the learning signal.
- Pre-training: trained on 14.8T tokens (with a larger share of math and code, plus more languages) from a self-built RefinedWeb++ corpus, after document packing, Fill-in-Middle (10%), and deduplication.
- Fine-tuning: staged SFT → RL (Constitutional AI) + distillation of DeepSeek-R1 long-chain-of-thought to strengthen both human preference and reasoning ability.
1. Language modeling objective
| Component | Details |
|---|---|
| Base objective | Causal language modeling — predict t+1 from the hidden state h_t of token t |
| Auxiliary objective | MTP: a depth-D=2 module predicts t+1 and t+2 in sequence → loss L_MTP = λ·(L_1+L_2)/D |
| λ schedule | 0–10T tokens: 0.3 → next 4.8T: 0.1 |
| Effect | +25% training throughput, +0.4 pt average on benchmarks, and ×1.8 inference TPS (via speculative decoding) |
Takeaway: while keeping the traditional next-token LM, MTP raises both information density and reasoning readiness.
2. Pre-training corpus
| Item | Value / method | Evidence |
|---|---|---|
| Total tokens | 14.8T high-quality tokens | |
| Domain mix | web centered on English and Chinese (RefinedWeb), an enlarged share of math and code, plus 30+ languages | |
| Preprocessing | - document packing - Fill-in-Middle in 10% as the PSM structure - near-dup removal, normalizing multiple spaces and control characters | |
| Tokenizer | 128K Byte-level BPE; composite newline+punctuation tokens, partially split at random to ease boundary bias (no OOV) | |
| Compute | 2 048 × H800 GPUs, 2.664 M GPU·h (180 K GPU·h per T) |
3. Downstream fine-tuning strategy
| Stage | Data / technique | Goal / features |
|---|---|---|
| ① SFT | 1.5 M high-quality dialogue, code, and math samples | ensures style and format consistency |
| ② Distillation | DeepSeek-R1 long-form CoT outputs → includes verification and reflection patterns | +8 ~ +10 pt on math and coding, managing the length-increase trade-off |
| ③ RL (CAI) | its own RewardBench + constitutional rules | balances safety and reasoning; Chat-Hard 82.6 → 87.0 (+4.4 pt) |
| ④ Context extension | YaRN in two stages 4K → 32K → 128K | long-context training; keeps 93% precision on NIAH at 128K |
Total fine-tuning cost: 0.124 M GPU·h (SFT + RL + YaRN) for a large jump in reasoning and safety over the base model.
Key takeaways
- The MTP-augmented causal LM doubles the density of the learning signal without any extra loss, buying data efficiency and inference speed at once.
- The 14.8T multi-domain corpus and careful preprocessing underpin generalization across long contexts, multilingual text, and code.
- The three-stage SFT → distillation → RL fine-tuning balances performance, safety, and dialogue quality at an added cost of under 4% of the entire training run.
Prompt: implementation and resources
"What are the key software dependencies (e.g., CUDA, MPI, specific libraries)? What memory footprint is expected during training and inference (VRAM for GPUs, RAM for CPUs)? What throughput is achieved on the stated hardware (e.g., images/sec, tokens/sec)? Provide a detailed breakdown of the total compute cost (e.g., total FLOPs or petaflop-days)."TL;DR — resource summary
| Item | Scale/specs | Training (max) VRAM* | Inference VRAM* | Throughput | Total compute cost |
|---|---|---|---|---|---|
| DeepSeek-V3 (671B / 37B active) | 2048 × NVIDIA H800 16-PP × 64-EP × ZeRO-1 DP | ≈ 80 GB/H800 (FP8 + BF16, optimizer states BF16) | ≈ 74 GB (TP4 + EP32, FP8 KV cache) | ~1.54 k tok/s/GPU → ~3.16 M tok/s/cluster (14.8T tok ÷ 2.664 M GPU·h) | 2.788 M GPU·h ≈ $5.6 M USD (54 d pre-train + < 3 d follow-up 2-stage) |
*Approximations assuming FP8 low-precision storage and communication plus ZeRO-1 sharding.
1. Software and library dependencies
| Category | Main components | Evidence |
|---|---|---|
| Framework | HAI-LLM (DeepSeek’s in-house framework), 16-way PP + 64-EP + ZeRO-1 DP · DualPipe scheduler (Zero-Bubble family) | custom |
| Low-precision | FP8 mixed precision (E4M3 throughout, fine-grained tile/block quantization, online scaling) + CUDA-core promotion for accuracy correction | TransformerEngine 1.9+ (Hopper FP8 kernels) |
| Communication | NVIDIA NCCL 2.x (+ custom all-to-all PTX kernels), NVLink/NVSwitch (160 GB/s intra-node) + InfiniBand (50 GB/s inter-node) + IBGDA | |
| Other | CUDA ≥ 12.2 (H800 required), PyTorch 2.x-based custom operators, AdamW optimizer (BF16 moments) |
Thanks to the ‘HAI-LLM + DualPipe + FP8’ triangle, communication–compute overlap is maximized, achieving a near-“zero-bubble” pipeline even at EP64.
2. Memory usage (estimated)
During training
Model and optimizer states
- params in FP8 (1 B) + master FP32 (4 B) ⇒ 5 B/param
- 37B active → ~185 GB, but ZeRO-1 shards this (64-way) → ~2.9 GB/GPU.
Optimizer moments BF16 (2 B) → ~74 GB globally → ~1.2 GB/GPU.
Activation checkpoints FP8 cache + RMSNorm recomputation etc. add ≲ 5 GB/GPU.
Total ≈ 9 GB/GPU (model + optimizer + activations) plus kernel/communication overhead ≲ 80 GB (within the H800 HBM limit).
During inference
Prefill: TP4 + EP32, FP8 KV cache → about 74 GB/GPU (37B active × 2 B FP16 + marginal cache).
Decoding: routed across EP320 → ~1 expert per parameter shard, dominated by the KV cache → 60–65 GB/GPU.
Minimum batch unit
- Prefill: 32 GPUs (4 nodes × 8)
- Decode: 320 GPUs (40 nodes)
3. Throughput and efficiency
| Stage | GPU·h | Days @2,048 GPUs | Average tok/GPU·s |
|---|---|---|---|
| Pre-train 14.8T tok | 2.664 M | 54.2 d | 1,543 tok/s |
| 32 → 128K context extension | 119 K | 2.4 d | — |
| SFT + RL | 5 K | 0.1 d | — |
Cluster-wide: ≈ 3.16 M tok/s (2048 GPUs) → processing 1T tokens takes 180 K GPU·h (2.2× faster than a dense 72B).
4. Total compute (approximate PF-days)
Assuming the H800’s FP8 peak of 989 TFLOPS (on an H100 basis):
2.788 M GPU·h × 0.989 PFLOPS ÷ 24 h ≈ 115 PF-days≈ 1.3 × 10² PF-days — more than 40% lower than the existing dense 400B class (200+ PF-days).
5. What the key optimizations buy
- FP8 + fine-grained quantization → 2–4× memory savings on model, activations, and optimizer, plus a 2× speedup.
- DualPipe scheduler → halves the PP bubble and hides communication latency → higher per-token GPU-FLOP productivity.
- Custom all-to-all kernels (20 SMs, PTX) → overlapping IB+NVLink = “effectively zero communication cost” for EP64 training.
The result: training the same trillion tokens costs 55% of a dense 72B model (180 K ↔ ~330 K GPU·h), and at inference only 37B active parameters are used to reach LLaMA-3 405B-class quality.
Notes / remarks
- Actual VRAM can vary with batch size, prompt length, and KV-cache settings.
- FLOP figures approximate the H800, whose public specs are unavailable, by assuming parity with H100 FP8 performance.
- All numbers are recomputed from or conservatively estimated from values stated in the DeepSeek-V3 paper.
Prompt: model evaluation and metrics
"What are the main metrics for evaluation: latency, throughput, power consumption, or performance per cost? How does the system scale with more data, users, or compute nodes?"Conclusion summary (3 lines)
- DeepSeek-V3 delivers a training efficiency of 180 K GPU·h per 1T token (≈ 3.7 days @2 048 H800), a ×1.8 inference TPS speedup, and GPT-4o-adjacent quality at a total cost of
$5.6M. - The key evaluation metrics are training-stage cost-per-performance (GPU·h,
$/pt), inference throughput (TPS) and latency, memory footprint, and node-scaling efficiency. - Thanks to DualPipe + Node-Limited MoE, even as the number of GPUs grows the compute:communication ratio stays 1:1, guaranteeing an almost linear scale-up.
1. Evaluation metric definitions
| Category | Metric | Meaning | How it is measured in the paper |
|---|---|---|---|
| Training efficiency | GPU·h / Ttok, total GPU·h, $/GPU·h | training resources and cost | 2.788 M GPU·h over 14.8T tokens, assuming $2/GPU·h |
| Inference performance | TPS (tokens/s), latency (ms/req) | user-perceived speed | MTP + speculative decoding ⇒ TPS ×1.8, >2× speed vs. V2 |
| Quality per cost | score/($ · GPU·h) | cost-efficient accuracy | MMLU 88.5 at GPT-4o parity → $5.6 M |
| Memory | VRAM_train / VRAM_infer | deployability | ≤80 GB training, ≈74 GB/H800 inference (37B active) |
| Scalability | scalability η = throughput(N)/N | linearity vs. node count | PP16 × EP64 × DP-ZeRO-1, full compute:communication overlap |
2. Key figures (DeepSeek-V3-Base)
| Item | Value | Comparison |
|---|---|---|
| Total training resources | 2.788 M H800 GPU·h | dense 405B estimated 6 M A100 GPU·h (−54%) |
| Training cost | $5.576 M (H800 at $2/h) | LLaMA-3.1-405B ≈ $12 M |
| Training efficiency | 180 K GPU·h per Ttok | Qwen-72B dense ≈ 330 K |
| Inference TPS | ≥ 2× V2, 1.8× (MTP) | acceptance rate 85–90% |
| Inference VRAM | 74 GB/GPU (TP4 + EP32) | 405B dense ▶ >150 GB |
| Latency | speculative 2nd token, avg. latency ≈ 56%↓ vs. V2 | self-reported |
3. Scaling characteristics
| Scale axis | Mechanism | Measured/theoretical | Description |
|---|---|---|---|
| GPU count | DualPipe PP16 | pipeline bubble = (PP²−1)/PP → ½ ZB1P | fully overlaps fwd/bwd communication and compute |
| Expert count | EP64, node-limited (≤4) | A2A SM 20/132, fully hides IB 50 GB/s ↔ NVL 160 GB/s | 8 experts per token, communication cost near zero |
| Data scale | 14.8T → linear 180 K GPU·h/T | no loss spikes, holds a 128K context | |
| Concurrent users | batch parallelism + higher MTP TPS | even at large batches (480), the FP8 KV cache keeps memory below the model | latency rises gently |
4. Reading the metrics
- Training stage — FP8 + MoE lowers FLOPs/token, cutting GPU·h/T by 45%.
- Inference stage — MTP + speculative decoding reaches an 85–90% acceptance rate for ×1.8 TPS, at ≈ 0.55× average response latency on the same hardware.
- Performance per cost — delivers MMLU 88.5 and Codeforces 51.6 for
$5.6M, updating the open-source Pareto frontier. - Scalability — separating IB ↔ NVLink traffic with a node limit of 4 and EP64 gives N ↑ → throughput ≈ O(N).
5. Summary and implications
- DeepSeek-V3 dominates existing dense LLMs on all three metrics of performance, cost, and scale.
- The key metrics used are GPU·h/Ttok, TPS, VRAM, η_scalability, and
$/score, which are easy to reproduce and optimize from a compiler/systems perspective. - Future optimization tasks: (1) FP4/INT4 low-precision inference to get VRAM below 50 GB, (2) WAN-grade all-to-all kernels, and (3) measuring and reporting TPS per watt.
If you are planning model deployment or research expansion, the priority is to understand DualPipe scheduling and the node-limited MoE router to secure cluster-scale scaling efficiency.
Comments