Paper

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

  1. 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.
  2. FP8 mixed-precision training Trains all 671B parameters in FP8(E4M3)+BF16, cutting memory and communication by ~40%.
  3. 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 limitationImpact
Open-source LLM performance trails the GPT-4 familyQuality gap in real-world adoption
Dense megamodels are expensive to train400B dense ≈ 6M GPU·h
Existing MoE aux-losses erode performanceLoad-balancing ↔ accuracy trade-off
Long context and inference latencyHigher 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)

StepFormulaValue
① Affinity$s_{i}=σ(u^\top e_i)$[0.60, 0.39, 0.54]
② Add bias$s_i+b_i$ (initially 0)Same
③ Top-K selectionTop2 → 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 measurementload=[500,200,300]
⑧ Bias updateoverloaded 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

BenchmarkDeepSeek-V3GPT-4oClaude-3.5LLaMA-3.1-405B
MMLU (EM)88.588.288.388.6
MMLU-Pro75.972.678.073.3
Codeforces %ile51.623.620.325.3
MATH-500 EM90.274.678.373.8
Training cost (GPU·h)2.788 M6 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.6 M.
  • 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

  1. Ultra-low-precision (FP4/INT4) inference to reach VRAM < 50 GB.
  2. Mobile- and WAN-friendly MoE: ease communication jitter with hierarchical routers and a compressed KV cache.
  3. Stronger safety: Constitutional AI + automated red-team pipeline.
  4. 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)

PLAINTEXT
"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)

  1. 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.
  2. 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.
  3. 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.6 M (−56%).

1. Research gap and open questions

#Gap/questionExisting limitationDeepSeek-V3’s solution
1Open-source ↔ closed-source performance gapLLaMA-3.1 405B, Qwen 2.5-72B, etc. improved, but still trail GPT-4o and Claude-3.5a 671B MoE (37B active) sets a new open-source SOTA, approaching GPT-4o class
2MoE load-balancing–performance trade-offGShard and Switch-Transformer use auxiliary loss → performance drops when over-balancedaux-loss-free bias strategy keeps balance and improves performance
3Ultra-large-scale FP8 training unvalidatedearlier work only reached ≤70B parametersfirst FP8 mixed-precision validation up to 671B over 14.8T tokens
4Long context and low-latency inferencespeed/memory bottlenecks past 32KMLA + 128K YaRN extension, MTP + speculative decoding (TPS ×1.8)
5Affordable training costdense 400B models ≈ 6–8M GPU·h2.788 M H800 GPU·h ($5.6 M) via DualPipe and EP64

2. Decisive limitations of prior work

CategoryRepresentative earlier methodDecisive limitation
Model structureDense LLaMA-3.1, Mistral-Mixtralboth parameters and activations are large → high cost
MoE routingSwitch-Transformer: aux-lossload-balancing ↔ performance dilemma
PrecisionBF16/FP16 trainingmemory and communication limits
Context extensionnaive RoPE rescalinginefficient distributed KV cache at 128K
Inference frameworkmonolithic prefill/decodecommunication 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

ModelArchitectureActive paramsMMLU / MMLU-ProCodeforcesCost (est. GPU·h)
GPT-4o-0513Denseundisclosed88 / 7323%undisclosed
Claude-3.5-SonnetDenseundisclosed88 / 7820%undisclosed
DeepSeek-V3 (this paper)MoE37B88.5 / 75.951.6%2.788 M H800
LLaMA-3.1-405BDense405B88 / 7325%6 M A100*
Qwen 2.5-72BDense72B85 / 7224%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)

PLAINTEXT
"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)

PLAINTEXT
"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)

  1. Aux-loss-free MoE routing achieves load balancing without performance loss, reaching GPT-4o-class quality.
  2. The world’s first FP8 mixed-precision training of a 671B-param model drastically cuts memory and communication (2.664 M H800 GPU·h).
  3. 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

#ContributionTypeNovelty & concrete results
1Aux-loss-free Load-Balancing BiasNew architectural component + training strategyBiases 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.
2FP8 Mixed-Precision Training at 671 B ParametersNew training techniqueThe 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).
3Multi-Token Prediction (MTP) ObjectiveNew training techniquePredicts 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)

PLAINTEXT
"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 methodsWhy it is superior
1Aux-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 performancezero performance loss + load balance, no token drops
2FP8 Mixed-Precision@671 B
GEMM FLOPS ×2, GPU memory ≈−40%, convergence error <0.25%
validated only up to 70B modelsthe first to secure precision and stability at mega-model scale
3DualPipe + EP64
compute:communication 1:1 → full overlap, all-to-all cost near 0
existing PP/TP pipelines have more bubbles and communication bottleneckskeeps linear scaling, higher hardware efficiency without TP
4Multi-Token Prediction
BBH and MMLU average +2 pt, speculative decoding gives TPS ×1.8
single-token training caps data efficiency and inference speedaccelerates training and inference at once
5Overall cost-efficiency
total training on 14.8T tokens = 2.788 M H800 GPU·h ($5.6 M USD)
dense 405B ≈ 6.3 M GPU·hhalf 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)

PLAINTEXT
"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)

  1. Aux-loss-free Load-Balancing Bias — dynamically adjusts each expert’s bias bᵢ to flatten token routing, removing the load-balancing ↔ performance trade-off.
  2. In a toy example, only 2 of 3 experts are active (Kʀ = 2), and the whole pipeline for a single token is shown numerically.
  3. This strategy trains a 671B-param MoE with 0% token drops and MMLU +0.8 pt, cutting the balance deviation by 38%.

Terminology

Symbol/termMeaning
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
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 bias b=[0,0,0].

StepOperationFormula / valueDescription
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 changethe bias only affects selection
3. Top-K selectionTopK(s+b, Kʀ)E₁, E₃the token is split and sent to two experts
4. Weight normalizationgᵢ,ₜ = sᵢ,ₜ / Σg₁ = 0.529, g₃ = 0.471keeps the soft-mix on the original s
5. Expert computationvᵢ = FFNᵢ(uₜ)(e.g.) v₁=[…], v₃=[…]runs FP8 GEMM
6. Aggregate outputh′ₜ = uₜ + Σ gᵢ,ₜ vᵢcompute h′₁residual + MoE combination (Eq. 12)
7. Collect batch statisticsloadᵢ ← token counte.g. load=[500, 200, 300]expert utilization over one step
8. Update biasbᵢ ← 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?

MetricAux-loss modelThis strategy (DeepSeek-V3)Improvement
Load std. dev.1.00×0.62× (−38%)more balanced
MMLU (base)87.788.5+0.8 pt
Token drop rate0.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’)

PLAINTEXT
"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?

AspectExisting aux-loss approachBias approach (this paper)Effect
Load balancingstrong aux-loss → more balance but lower performance; weak → the oppositebalances directly through the bias $b_i$ → 0% token drops, prevents collapse
Performance16B model: MMLU 68.3 → 67.2 (−1.1 pt)same setting 68.3 → 69.6 (+1.3 pt) (Ablation Table 5)
Scalabilitylimited to 256 experts and EP64 for fear of routing collapsestable training even at 671B and 256 experts (no loss spikes)
Cost/efficiency405B dense ≈ 6.3 M GPU·h2.788 M GPU·h (−56%) with a biased MoE, at equal or better quality

Key arguments

  1. Removes the performance–balance trade-off: improves balance metrics while gaining +0.5 ~ +2 pt across several benchmarks.
  2. Ensures stability at scale: bias updates alone complete the entire 14.8T-token run without expert collapse.
  3. 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)

PLAINTEXT
"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

StepOperationExample valuesDescription
① 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 selectionTopK=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 loadload=[500,200,300]token counts within the step
⑧ Update biasoverloaded 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

ItemExisting: sequence-wise aux-lossProposed: LBB (bias)Benefit
Load controladds per-token auxiliary loss $L_\text{bal}$adjusts the bias $b_i$ in real timeno extra stage
Hyperparametersauxiliary-loss coefficient α — sensitive to the performance/balance trade-offa single update rate γsimpler tuning
Performance impactα ↑ → more balance but lower performance (as reported)validation loss 2.258→2.253 (1B)+ data efficiency
Token dropsdrops needed when imbalanced0% drops (training and inference)more stable
Expert specializationforcing balance per sequence → less specializationclear specialization patterns (Fig. 9)domain division of labor ↑
Compute costneeds backprop through an extra lossnone (routing logic only)↘ GPU FLOPs

3. Experimental evidence (summary)

BenchmarkAux-lossLBBΔ
BBH 3-shot EM37.3 → 39.3+2.0 pt
GSM8K 8-shot EM27.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?

  1. 0% compute and memory overhead — removing the extra loss backprop saves speed and memory.
  2. Minimal hyperparameters — only γ needs tuning, an advantage for large-scale experiments.
  3. Enables expert specialization — since only batch-level balance is required, domain-specific experts form naturally.
  4. Stable training/inference — no token drops or routing collapse; converges normally even with 256 experts and EP64.
  5. 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)

PLAINTEXT
"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

MetricMeaningExample shots
EM (exact match)exact answer-string match rate · knowledge/reasoning (MMLU, BBH)0~5-shot
F1precision–recall harmonic mean accounting for token overlap (DROP, etc.)3-shot
Pass@1single-generation success rate (code, math, GPQA)0-shot
Percentilerank relative to real Codeforces users0-shot
BPBbits 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 / datasetDeepSeek-V3LLaMA-3.1-405B (open-source SOTA)GPT-4o-0513Claude-3.5-1022
Knowledge
MMLU (EM)
88.588.687.288.3
Hard knowledge
MMLU-Pro (EM)
75.973.372.678.0
Long-document understanding
DROP 3-shot F1
91.688.783.788.3
Competitive coding
Codeforces percentile
51.625.323.620.3
Algorithmic code
HumanEval-Mul Pass@1
82.677.280.580.5
Math
MATH-500 EM
90.273.874.678.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

MetricDeepSeek-V3LLaMA-3.1-405B
Total GPU·h2.788 M H800≈ 6.3 M A100*
FP8 usageYes (first at 671B)No
Loss spikes during trainingNoneNot reported

*Estimated for a 405B dense model, converted to the same hardware generation.


5. ‘Evidence of success’ the authors emphasize

  1. 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.
  2. Broad leads in long-document, code, and engineering: wide margins on DROP, LongBench, Codeforces, and SWE-Bench.
  3. Redefining the cost-efficiency curve: 2.8 M GPU·h for the full 14.8T-token run — 56% less than an equivalent dense model.
  4. 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)

PLAINTEXT
"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

MetricMeaningExample shots
EM (exact match)exact answer-string match rate · knowledge/reasoning (MMLU, BBH)0~5-shot
F1precision–recall harmonic mean accounting for token overlap (DROP, etc.)3-shot
Pass@1single-generation success rate (code, math, GPQA)0-shot
Percentilerank relative to real Codeforces users0-shot
BPBbits 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 / datasetDeepSeek-V3LLaMA-3.1-405B (open-source SOTA)GPT-4o-0513Claude-3.5-1022
Knowledge
MMLU (EM)
88.588.687.288.3
Hard knowledge
MMLU-Pro (EM)
75.973.372.678.0
Long-document understanding
DROP 3-shot F1
91.688.783.788.3
Competitive coding
Codeforces percentile
51.625.323.620.3
Algorithmic code
HumanEval-Mul Pass@1
82.677.280.580.5
Math
MATH-500 EM
90.273.874.678.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

MetricDeepSeek-V3LLaMA-3.1-405B
Total GPU·h2.788 M H800≈ 6.3 M A100*
FP8 usageYes (first at 671B)No
Loss spikes during trainingNoneNot reported

*Estimated for a 405B dense model, converted to the same hardware generation.


5. ‘Evidence of success’ the authors emphasize

  1. 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.
  2. Broad leads in long-document, code, and engineering: wide margins on DROP, LongBench, Codeforces, and SWE-Bench.
  3. Redefining the cost-efficiency curve: 2.8 M GPU·h for the full 14.8T-token run — 56% less than an equivalent dense model.
  4. 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)

PLAINTEXT
"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.


CategoryDetailEvidence
Heavy deployment burdenthe recommended deployment unit for efficient inference is fairly large, burdening small teams
Inference speed headroom2× TPS vs. V2, but “further improvements remain possible
Communication costthe EP (all-to-all) implementation uses 20 of 132 SMs for communication → fewer compute SMs, less efficiency
FP8 accumulation accuracyH800 FP8 GEMM is limited to 14-bit accumulation → larger errors at large K dims
(Auxiliary) batch-wise balancing efficiencythe batch-wise scheme hints at “two efficiency challenges” (e.g., load imbalance)
Quantization instabilitywith 128×128 block-wise quantization, the 16B model diverged → fine-grained tiling required

2. Potential and informal limitations (additional analysis)

AreaPotential limitationImpact and reasons
Hardware dependencepresupposes H800-class GPUs, FP8 support, and NVLink/IB networks. Performance collapses and memory overflows on ordinary cloud GPUs or the L4 line.
Communication-bandwidth scalingthe 256-expert, EP64 structure risks all-to-all jitter and PFC (deadlock) as nodes grow; DualPipe overlaps it, but WAN deployment is unverified.
Inference cost37B 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 copyright14.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 guardrailsSFT/RL-based alignment is mentioned, but there is no quantitative evaluation of jailbreaks or hallucinations; additional policy is needed for real services.
Limited evaluation scopebenchmark-heavy (MMLU, Codeforces, etc.); misses real-world domains (dialogue persistence, multilingual user experience) and robustness.
Possible MTP (2-token) quality lossa 2-token acceptance rate of 85–90% → 10–15% rollback overhead and possible quality loss, compounding over long generations.
Excessive specializationdeepening expert specialization can under-train experts when rare-domain token distributions are unbalanced (the paper itself hints at this risk).
Social impactstronger 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)

PLAINTEXT
"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)

  1. 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.
  2. This review goes further and proposes six practical follow-ups for low-cost inference, safety, and generality.
  3. 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)

#CategoryConcrete goalExpected effectSource
1Architecture & systemsimprove MLA and DualPipe, support an “infinite context”, break past Transformer limitslower FLOPs/token, greater long-context stability
2Data & signalskeep scaling data size, quality, and diversity; explore extra training signals (e.g., multimodal and behavioral logs)richer knowledge and expressiveness
3Deep reasoninglengthen and deepen reasoning chains; keep researching self-reward and distillationbetter math, coding, and planning
4Evaluation frameworkdevelop multidimensional, real-usage metrics to avoid benchmark overfittingkeeps research direction balanced

2. Additional logical next steps we propose

#Proposed directionLimitation it targetsConcrete ideas
AUltra-low-precision training & inferenceFP8 accumulation error and memory costvalidate FP4/INT4 training, improve QAT and LLD
BDistillation into small/mid modelsheavy deployment burdencross-modal reward distillation, LoRA-MoE compression
CEP communication optimization & WAN MoEEP64 all-to-all jitterhierarchical routers, compressed KV cache + RDMA congestion control
DStronger safety and guardrailsdata, bias, and misuse risksRLHF + Constitutional AI, automated red-teaming
EMultimodal and training-signal integrationsingle-text limitsjoint training on video, code graphs, and execution traces
FOn-device/edge inferenceno mobile or low-power supportexpert 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

PLAINTEXT
"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

ItemDetail
AlgorithmByte-level BPE (Shibata 1999)
Vocabulary size128K 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 reliefrandomly 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

StepPurpose / details
Document packingcut 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 filteringthe “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 normalizationnot stated explicitly, but byte-BPE pipelines typically normalize to NFC and strip control characters to reduce noise
Whitespace regularizationcollapse 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

PLAINTEXT
"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

ComponentValue / approachSource
Number of layers L61 Transformer blocks
Embedding dim d7 168
Number of attention heads nₕ128
Per-head dim dₕ128 (728 GFLOPs/layer)
KV compression dims d𝑐 / d′𝑐512 / 1 536
MoE setup1 shared + 256 routed experts per layer, 8 active, intermediate dim 2 048
Total / active parameters671B / 37B
Max context128K (two-stage extension 32K → 128K)
NormalizationRMSNorm (Pre-LN) + an extra RMSNorm after the latent vectors

2. Multi-head Latent Attention (MLA) — a KV-cache-compressing attention

  1. Down-projection $c_{KV,t}=W^D_{KV} h_t$ (7168 → 512)
  2. 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}$
  3. Apply RoPE $k^R_t = \text{RoPE}(W_{KR} h_t)$ (per-head 64 dim)
  4. 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

TEXT
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

  1. MLA cuts the KV cache ≈62% → memory headroom even at a 128K context.
  2. MoE + FP8 → 37B active parameters per token; training cost −56% vs. a dense 405B at equal performance.
  3. 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

PLAINTEXT
"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)

  1. 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.
  2. 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.
  3. 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

ComponentDetails
Base objectiveCausal language modeling — predict t+1 from the hidden state h_t of token t
Auxiliary objectiveMTP: a depth-D=2 module predicts t+1 and t+2 in sequence → loss L_MTP = λ·(L_1+L_2)/D
λ schedule0–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

ItemValue / methodEvidence
Total tokens14.8T high-quality tokens
Domain mixweb 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
Tokenizer128K Byte-level BPE; composite newline+punctuation tokens, partially split at random to ease boundary bias (no OOV)
Compute2 048 × H800 GPUs, 2.664 M GPU·h (180 K GPU·h per T)

3. Downstream fine-tuning strategy

StageData / techniqueGoal / features
① SFT1.5 M high-quality dialogue, code, and math samplesensures style and format consistency
② DistillationDeepSeek-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 rulesbalances safety and reasoning; Chat-Hard 82.6 → 87.0 (+4.4 pt)
④ Context extensionYaRN in two stages 4K → 32K → 128Klong-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

PLAINTEXT
"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

ItemScale/specsTraining (max) VRAM*Inference VRAM*ThroughputTotal 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

CategoryMain componentsEvidence
FrameworkHAI-LLM (DeepSeek’s in-house framework), 16-way PP + 64-EP + ZeRO-1 DP · DualPipe scheduler (Zero-Bubble family)custom
Low-precisionFP8 mixed precision (E4M3 throughout, fine-grained tile/block quantization, online scaling) + CUDA-core promotion for accuracy correctionTransformerEngine 1.9+ (Hopper FP8 kernels)
CommunicationNVIDIA NCCL 2.x (+ custom all-to-all PTX kernels), NVLink/NVSwitch (160 GB/s intra-node) + InfiniBand (50 GB/s inter-node) + IBGDA
OtherCUDA ≥ 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

StageGPU·hDays @2,048 GPUsAverage tok/GPU·s
Pre-train 14.8T tok2.664 M54.2 d1,543 tok/s
32 → 128K context extension119 K2.4 d
SFT + RL5 K0.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):

PLAINTEXT
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

  1. FP8 + fine-grained quantization → 2–4× memory savings on model, activations, and optimizer, plus a 2× speedup.
  2. DualPipe scheduler → halves the PP bubble and hides communication latency → higher per-token GPU-FLOP productivity.
  3. 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

PLAINTEXT
"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)

  1. 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.6 M.
  2. The key evaluation metrics are training-stage cost-per-performance (GPU·h, $/pt), inference throughput (TPS) and latency, memory footprint, and node-scaling efficiency.
  3. 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

CategoryMetricMeaningHow it is measured in the paper
Training efficiencyGPU·h / Ttok, total GPU·h, $/GPU·htraining resources and cost2.788 M GPU·h over 14.8T tokens, assuming $2/GPU·h
Inference performanceTPS (tokens/s), latency (ms/req)user-perceived speedMTP + speculative decoding ⇒ TPS ×1.8, >2× speed vs. V2
Quality per costscore/($ · GPU·h)cost-efficient accuracyMMLU 88.5 at GPT-4o parity → $5.6 M
MemoryVRAM_train / VRAM_inferdeployability≤80 GB training, ≈74 GB/H800 inference (37B active)
Scalabilityscalability η = throughput(N)/Nlinearity vs. node countPP16 × EP64 × DP-ZeRO-1, full compute:communication overlap

2. Key figures (DeepSeek-V3-Base)

ItemValueComparison
Total training resources2.788 M H800 GPU·hdense 405B estimated 6 M A100 GPU·h (−54%)
Training cost$5.576 M (H800 at $2/h)LLaMA-3.1-405B ≈ $12 M
Training efficiency180 K GPU·h per TtokQwen-72B dense ≈ 330 K
Inference TPS≥ 2× V2, 1.8× (MTP)acceptance rate 85–90%
Inference VRAM74 GB/GPU (TP4 + EP32)405B dense ▶ >150 GB
Latencyspeculative 2nd token, avg. latency ≈ 56%↓ vs. V2self-reported

3. Scaling characteristics

Scale axisMechanismMeasured/theoreticalDescription
GPU countDualPipe PP16pipeline bubble = (PP²−1)/PP → ½ ZB1Pfully overlaps fwd/bwd communication and compute
Expert countEP64, node-limited (≤4)A2A SM 20/132, fully hides IB 50 GB/s ↔ NVL 160 GB/s8 experts per token, communication cost near zero
Data scale14.8T → linear 180 K GPU·h/Tno loss spikes, holds a 128K context
Concurrent usersbatch parallelism + higher MTP TPSeven at large batches (480), the FP8 KV cache keeps memory below the modellatency rises gently

4. Reading the metrics

  1. Training stage — FP8 + MoE lowers FLOPs/token, cutting GPU·h/T by 45%.
  2. 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.
  3. Performance per cost — delivers MMLU 88.5 and Codeforces 51.6 for $5.6 M, updating the open-source Pareto frontier.
  4. 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.

License

Author: Jaehun Ryu

Link: https://jaehun.me/en/posts/deepseek-v3-technical-report/

License: CC BY 4.0

This work is licensed under the Creative Commons Attribution 4.0 International License. You are free to use it for any purpose, including commercial use, as long as you provide proper attribution.

Comments