Paper notes

DeepSeek-V3 Technical Report: MoE, MLA, FP8 and Low-Cost Training

DeepSeek-V3 is a 671B-parameter MoE model that activates 37B per token. It adds auxiliary-loss-free balancing and multi-token prediction to MLA and DeepSeekMoE, and trains with FP8 and DualPipe on 2048 H800 GPUs in 2.788M GPU hours. This post covers methods, numbers and limits.

Published Updated 27 min read

On this page
  1. Why This Paper Matters
  2. What the Paper Contributes
  3. DeepSeek-V3 at a Glance
  4. Architecture 1: MLA, Keep Only a Latent Vector in the Cache
  5. Architecture 2: DeepSeekMoE and Auxiliary-Loss-Free Load Balancing
  6. Architecture 3: Multi-Token Prediction
  7. Training System: Hide Communication Inside Computation
  8. FP8 Mixed-Precision Training
  9. Pretraining, Long Context and Cost
  10. Post-Training: SFT, Reinforcement Learning and R1 Distillation
  11. How to Read the Results
  12. Limitations and Problems the Paper Mentions
  13. What to Take Away from This Paper
  14. Further Reading
  15. FAQ

Why This Paper Matters

In December 2024, DeepSeek released DeepSeek-V3 together with its weights and a technical report. It is a mixture-of-experts (MoE) model with 671B total parameters, of which only 37B are activated per token, pretrained on 14.8T tokens. The paper reports that the whole pipeline took only 2.788M H800 GPU hours, about $5.576 million at $2 per GPU hour, and claims that on knowledge, code and math evaluations it was the strongest open-source model at the time, comparable to GPT-4o and Claude-3.5-Sonnet.

It deserves a close read not only for these numbers but because the report presents “how to train a frontier-scale model cheaply” as one co-designed system of software and hardware: the architecture (MLA, DeepSeekMoE, auxiliary-loss-free balancing, multi-token prediction), the training system (DualPipe, cross-node communication, FP8), data and long context, and post-training (R1 distillation, GRPO). DeepSeek-V3-Base then became the starting point of R1-Zero; see the DeepSeek-R1 explainer.

This post follows the paper’s order and recomputes the key numbers in code. Each mechanism has a more systematic treatment in the wiki, linked in the text; here the interest is in what the paper did, how to read the results and where to apply a discount.

What the Paper Contributes

  1. Architecture. On top of MLA and DeepSeekMoE, already validated in DeepSeek-V2, it adds auxiliary-loss-free load balancing (which the paper calls a first) and a multi-token prediction training objective.
  2. Training system. The paper says it is the first to validate FP8 mixed-precision training on a very large model; DualPipe pipeline parallelism and customized cross-node all-to-all communication hide communication almost entirely behind computation, so tensor parallelism is unnecessary.
  3. Post-training. It distills the long chain-of-thought reasoning of the DeepSeek-R1 series into a standard model while controlling output style and length.
  4. Cost and stability. The whole pipeline takes 2.788M GPU hours; the paper says the entire pretraining had no irrecoverable loss spikes and no rollbacks.

DeepSeek-V3 at a Glance

ItemValueSource
Layers61; the first 3 have dense FFNs and the FFNs of the other 58 are MoESection 4.2
Hidden size7168Section 4.2
AttentionMLA: 128 heads of 128 dimensions each; KV compression dimension 512, query compression dimension 1536, decoupled RoPE dimension 64Section 4.2
MoEPer layer, 1 shared expert plus 256 routed experts with intermediate dimension 2048; each token picks 8 routed experts, sent to at most 4 nodesSection 4.2
Multi-token predictionDepth D = 1, that is, one extra token predictedSection 4.2
Parameters671B total, 37B activated per tokenAbstract
Training data14.8T tokens; byte-level BPE with a vocabulary of about 128KSection 4.1
Context4K sequences in pretraining, then extended in two stages to 32K and 128KSections 4.2 and 4.3
FFN size of dense layers, vocabulary size18432, 129,280The public config.json; not given in the paper’s text

Compared with the previous generation, DeepSeek-V2, the changes concentrate on these parts:

ComponentWhat V3 doesRelative to DeepSeek-V2
AttentionMLAKept
Feed-forward networkDeepSeekMoE, 1 shared expert plus 256 routed experts, 8 chosenSame idea, scaled up (from 236B with 21B active to 671B with 37B active)
Expert affinitysigmoid, normalized after selectionChanged; the paper says slightly different from V2
Load balancingA bias method plus a very small sequence-wise auxiliary lossNew
Training objectiveNext token, plus multi-token predictionNew

Architecture 1: MLA, Keep Only a Latent Vector in the Cache

Multi-head Latent Attention (MLA) compresses K and V jointly into one low-dimensional latent vector; at inference only this latent vector is cached and is projected back up when needed. V3 keeps V2’s settings: a compression dimension dc=512d_c=512, plus dhR=64d_h^R=64 numbers cached for the “decoupled key” that carries RoPE, so 576 numbers per layer per token in all. The query is also low-rank compressed (dimension 1536), but that is to cut activation memory in training and has nothing to do with the inference cache.

With the paper’s hyperparameters you can compute directly how small the cache is (BF16, 2 bytes per number):

  • MLA: 61 layers × 576 numbers × 2 bytes = 70,272 bytes, about 68.6 KiB per token.
  • A hypothetical 128-head MHA: 61 layers × 2 × 128 × 128 numbers, about 3.81 MiB per token, 56.9 times MLA.
  • For one 128K-token sequence, MLA takes about 8.58 GiB and the hypothetical MHA about 488 GiB.

The derivation, the absorption trick and the comparison with GQA and MQA are in Efficient Attention: MQA, GQA and MLA.

Architecture 2: DeepSeekMoE and Auxiliary-Loss-Free Load Balancing

Fine-grained experts plus a shared expert. Each MoE layer has 1 shared expert that every token passes through, plus 256 routed experts. The router gives each expert a sigmoid affinity between 0 and 1, takes the top 8, and normalizes among the selected experts to get the gating weights. Each token is sent to at most 4 nodes (node-limited routing), which bounds cross-node communication. More details on routing, shared experts and capacity factors are in Mixture of Experts.

Why replace the auxiliary loss. MoE needs load balancing, otherwise routing collapses, and under expert parallelism the slowest GPU holds everything back. The usual approach is to add a balancing term to the loss, but the paper cites the finding that too large an auxiliary loss hurts model quality, so balance and quality have to be traded off.

The bias method. V3 gives each routed expert a bias bib_i, used only when selecting the top-KrK_r:

gi,t′={si,t,si,t+bi∈Topk({sj,t+bj}, Kr)0,otherwiseg'_{i,t}= \begin{cases} s_{i,t}, & s_{i,t}+b_i\in \mathrm{Topk}\left(\{s_{j,t}+b_j\},\,K_r\right)\\ 0, & \text{otherwise} \end{cases}

The gating value multiplied onto the expert output still comes from the original affinity si,ts_{i,t}. At the end of each training step, the expert loads over the whole batch are counted: the bib_i of an overloaded expert is decreased by γ\gamma and that of an idle expert is increased by γ\gamma. V3 uses γ=0.001\gamma=0.001 for the first 14.3T tokens and 0 for the last 500B tokens. In addition, a sequence-wise balancing loss with a tiny weight (α=0.0001\alpha=0.0001) is kept, only to prevent extreme imbalance inside a single sequence. The result is that no token is dropped in training or inference.

The paper runs an ablation with baselines at two scales (MoE models of 15.7B and 228.7B, an auxiliary-loss baseline against auxiliary-loss-free). The 228.7B results are excerpted below (Table 5):

BenchmarkAuxiliary-loss baselineAuxiliary-loss-free
Pile-test (BPB, lower is better)0.6560.652
MMLU (EM)68.367.2
HumanEval (Pass@1)40.246.3
GSM8K (EM)70.774.5
MATH (EM)37.239.6

Most benchmarks improve, but MMLU regresses by 1.1. This is DeepSeek’s own experiment, with no variance from repeated runs. The paper also does a comparison worth remembering: on 1B and 3B MoE models, the validation losses of the sequence-wise auxiliary loss, auxiliary-loss-free and batch-wise auxiliary loss are 2.258, 2.253 and 2.253 (1B) and 2.085, 2.080 and 2.080 (3B). In other words, the main source of the gain is not the “bias” trick itself, but widening the balancing scope from “each sequence” to “the whole batch”, which lets experts specialize by domain. The price of batch-wise balancing is that a single sequence or a small batch may be imbalanced, and domain drift at inference can also cause imbalance; the paper handles this with the large micro-batches that large-scale parallelism provides and with redundant experts at inference.

Architecture 3: Multi-Token Prediction

Multi-token prediction (MTP) makes each position predict the 2nd, 3rd, … tokens ahead in addition to the next one. V3’s implementation differs from earlier work that predicts several tokens in parallel: it uses DD sequential MTP modules, and the kk-th module contains an embedding layer and output head shared with the main model, one Transformer block and one projection matrix. Its input is the representation from the previous depth plus the embedding of token i+ki+k, so every depth keeps a complete causal chain. The total MTP loss is the average of the cross-entropies of the depths times a weight:

LMTP=λD∑k=1DLMTPk\mathcal{L}_{\text{MTP}}=\frac{\lambda}{D}\sum_{k=1}^{D}\mathcal{L}_{\text{MTP}}^{k}

V3 takes D=1D=1, and the weight λ\lambda is 0.3 for the first 10T tokens and 0.1 for the remaining 4.8T. At inference there are two uses: discard the MTP module and the main model works as usual, so inference cost is exactly that of a model without MTP; or use it as the draft for speculative decoding. The paper reports an acceptance rate of 85% to 90% for the second token across topics, and a decoding speed of about 1.8 times; for the principle of speculative decoding see Speculative Decoding.

The MTP ablation (Table 4) adds a 1-depth MTP module to the baseline at two scales:

Benchmark15.7B baseline15.7B with MTP228.7B baseline228.7B with MTP
MMLU (EM)50.053.367.566.6
DROP (F1)39.241.368.570.6
HumanEval (Pass@1)20.726.844.553.7
GSM8K (EM)25.431.472.374.0
MATH (EM)10.712.638.639.8

Most benchmarks improve, with the largest gains on code and math; MMLU of the 228.7B model actually drops by 0.9. The paper’s conclusion is “a consistent improvement on most benchmarks”, not on every one.

Training System: Hide Communication Inside Computation

Cluster and parallelism. Training uses 2048 NVIDIA H800 GPUs: 8 GPUs per node, connected inside a node by NVLink and NVSwitch and between nodes by InfiniBand (IB). The parallel scheme is 16-way pipeline parallelism, 64-way expert parallelism across 8 nodes, and ZeRO-1 data parallelism, with no tensor parallelism.

DualPipe. Cross-node expert parallelism makes the ratio of communication to computation about 1:1, and left alone, the GPUs would wait for communication half of the time. DualPipe splits each forward or backward chunk into four parts, attention, all-to-all dispatch, MLP and all-to-all combine; the attention and MLP of a backward chunk are further split into “backward for input” and “backward for weights”, and these are rearranged so that the computation and communication of a pair of forward and backward chunks overlap. Overall it is a bidirectional pipeline schedule that feeds micro-batches from both ends of the pipeline. Table 2 of the paper compares bubbles and memory:

MethodPipeline bubbleParameter copiesActivation memory
1F1B(PP−1)(F+B)(PP-1)(F+B)1×PPPP
ZB1P(PP−1)(F+B−2W)(PP-1)(F+B-2W)1×PPPP
DualPipe(PP/2−1)(F&B+B−3W)(PP/2-1)(F\&B+B-3W)2×PP+1PP+1

Here FF, BB and WW are the execution times of a forward chunk, a full backward chunk and a “backward for weights” chunk, and F&BF\&B is the time of mutually overlapped forward and backward chunks. DualPipe keeps two copies of the parameters, but because the expert-parallel degree is large, this extra cost is small. For the basics of pipeline parallelism and bubbles see Distributed Training.

Cross-node communication. The hardware numbers the paper gives are about 160 GB/s for NVLink and about 50 GB/s for IB, the former about 3.2 times the latter. So each token is sent to at most 4 nodes, first over IB to the GPU with the same index on the target node, and then forwarded over NVLink to the GPU that actually hosts the expert; the two legs overlap completely, and the whole communication uses only 20 streaming multiprocessors (SMs).

Saving memory. In the backward pass, all RMSNorm operations and the up-projections of MLA are recomputed instead of storing their outputs; the exponential moving average (EMA) of the model parameters is kept in CPU memory and updated asynchronously; the shallowest layers (with the embedding) and the deepest layers (with the output head) are placed on the same pipeline rank, so the MTP module and the main model physically share the embedding and output head. Together these measures are what makes training without tensor parallelism possible.

FP8 Mixed-Precision Training

What uses FP8 and what does not. The three matrix multiplications of a linear layer (forward Fprop, backward for activations Dgrad, backward for weights Wgrad) are all computed in FP8, in theory twice as fast as BF16, and FP8 Wgrad lets activations be cached in FP8, saving memory. These parts stay in BF16 or FP32: the embedding module, the output head, the MoE gating, normalization operators and attention operators. Master weights and weight gradients are stored in FP32, and AdamW’s first and second moments in BF16.

Three designs that keep it stable.

  1. Fine-grained quantization. When a whole tensor shares one scaling factor, a single outlier squeezes all the other values to tiny numbers. V3 scales activations in 1×1281\times128 tiles (one factor per token per 128 channels) and weights in 128×128128\times128 blocks, and computes the factors online (fresh at each step) rather than estimating them from a history of maxima.
  2. Higher accumulation precision. The paper measures that FP8 matrix multiplication on H800 keeps only about 14 bits of accumulation precision inside the Tensor Cores, with a maximum relative error close to 2% for random matrices with K=4096K=4096. The fix is to promote the partial sums to FP32 registers on the CUDA Cores every NC=128N_C=128 accumulated elements (4 WGMMAs).
  3. E4M3 everywhere. Earlier mixed schemes used E4M3 in the forward pass and E5M2 in the backward pass; V3 uses E4M3 (4 exponent bits, 3 mantissa bits) for all tensors, using fine-grained scaling to compensate for the dynamic range, trading exponent range for mantissa precision.

The paper compares FP8 and BF16 training on two baselines, about 16B (1.33T tokens) and about 230B (about 0.9T tokens), and the relative loss error stays below 0.25%.

Try it yourself: why tile-wise scaling helps. The simulation below uses random data: put one outlier channel in a 512×4096 activation matrix, and compare the quantization error of whole-tensor scaling and 1×1281\times128 tile scaling, counting only the other 31 tiles that contain no outlier channel. This is a toy simulation, not the paper’s experiment, and it does not simulate accumulation precision.

import torch

torch.manual_seed(0)


def fake_quant(x, scale, dtype):
    fmax = torch.finfo(dtype).max
    q = (x / scale).clamp(-fmax, fmax).to(dtype)
    return q.to(torch.float32) * scale


def per_tensor(x, dtype):  # one scale shared by the whole matrix
    return fake_quant(x, x.abs().max() / torch.finfo(dtype).max, dtype)


def per_tile(x, dtype, tile=128):  # one scale per token per 128 channels
    t = x.reshape(x.shape[0], -1, tile)
    scale = t.abs().amax(dim=-1, keepdim=True) / torch.finfo(dtype).max
    return fake_quant(t, scale, dtype).reshape_as(x)


def rel_err(q, x):
    return ((q - x).norm() / x.norm()).item()


e4, e5 = torch.float8_e4m3fn, torch.float8_e5m2
base = torch.randn(512, 4096)  # 512 tokens, 4096 channels
names = ("outlier", "E4M3 tensor", "E4M3 tile", "E5M2 tensor")
print(*[f"{n:>12}" for n in names])
for mult in [1, 1e3, 1e4, 1e5, 1e6]:
    x = base.clone()
    x[:, 7] *= mult  # channel 7 is the outlier channel
    rest = (slice(None), slice(128, None))  # the other 31 tiles, no outlier
    errs = [rel_err(f(x, d)[rest], x[rest])
            for f, d in [(per_tensor, e4), (per_tile, e4), (per_tensor, e5)]]
    print(f"{mult:>12.0e}", *[f"{e:>12.4f}" for e in errs])

Output (relative error, smaller is better):

     outlier  E4M3 tensor    E4M3 tile  E5M2 tensor
       1e+00       0.0265       0.0257       0.0527
       1e+03       0.0265       0.0257       0.0528
       1e+04       0.0479       0.0257       0.0525
       1e+05       0.4727       0.0257       0.0528
       1e+06       0.9999       0.0257       0.0528

How to read it:

  • E4M3 with whole-tensor scaling: an outlier less than 10310^3 times the ordinary values does no harm; at 10410^4 times it starts to degrade, at 10510^5 the error is already 47%, and at 10610^6 nearly all ordinary values underflow to 0. The reason is that the maximum of E4M3 is 448, so the outlier inflates the scale and the ordinary values are scaled below the smallest normal number 2−62^{-6}.
  • E4M3 with tile-wise scaling: the outlier channel affects only its own tile, and the error of the other tiles stays constant at 2.6%, which is the point of fine-grained quantization.
  • E5M2 with whole-tensor scaling: more exponent bits make it insensitive to outliers, but with only 2 mantissa bits the error is fixed at 5.3%, twice that of E4M3. This is the trade-off of “use fine-grained scaling to get E4M3 throughout”: you want mantissa precision and rely on tiles to hold the dynamic range.

Real training also has Dgrad, gradient outliers and accumulation error: in Appendix B.2 the paper reports that applying 128×128128\times128 block quantization to the activation gradients as well makes a roughly 16B MoE model diverge after about 300B training tokens, so this toy simulation must not be extrapolated directly.

Pretraining, Long Context and Cost

Data. Compared with V2, the share of math and code samples is raised, multilingual coverage goes beyond English and Chinese, the data pipeline reduces redundancy while keeping diversity, documents are packed without cross-sample attention masking, and a Fill-in-Middle (FIM) strategy is used with the prefix-suffix-middle (PSM) structure at a rate of 0.1. The tokenizer is byte-level BPE with the vocabulary expanded to 128K.

Hyperparameters.

ItemValue
OptimizerAdamW, β1=0.9\beta_1=0.9, β2=0.95\beta_2=0.95, weight decay 0.1, gradient clipping 1.0
Sequence length4K in pretraining
Learning rateLinear from 0 to 2.2×10−42.2\times10^{-4} over the first 2K steps; held until 10T tokens; cosine decay to 2.2×10−52.2\times10^{-5} over 4.3T tokens; in the last 500B tokens, 2.2×10−52.2\times10^{-5} for the first 333B and 7.3×10−67.3\times10^{-6} for the remaining 167B
Batch sizeFrom 3072 up to 15360 over the first 469B tokens, then held at 15360
Load balancingγ=0.001\gamma=0.001 (first 14.3T tokens, 0 afterwards), α=0.0001\alpha=0.0001
MTP weightλ=0.3\lambda=0.3 (first 10T tokens), 0.1 afterwards

Long-context extension. After pretraining, YaRN is used for a two-stage extension of 1000 steps each: first from 4K to 32K (batch 1920), then to 128K (batch 480), with a learning rate of 7.3×10−67.3\times10^{-6} in both. The YaRN parameters are s=40s=40, α=1\alpha=1, β=32\beta=32, with attention scaling factor t=0.1ln⁡s+1t=0.1\ln s+1, applied only to the decoupled shared key in MLA. After the extension (for the SFT model), the “needle in a haystack” test is stable all the way to 128K. For the principle of YaRN itself see the YaRN explainer and Long Context.

Cost. Table 1 of the paper splits the whole pipeline into three segments and converts at $2 per GPU hour:

DeepSeek-V3 training pipeline and GPU hours From left to right the five stages are pretraining, extension to 32K, extension to 128K, supervised fine-tuning and reinforcement learning. Pretraining takes 2,664K GPU hours, the two context extensions 119K GPU hours together, and SFT plus RL 5K GPU hours, 2,788K H800 GPU hours in total, about $5.576 million. DeepSeek-V3: five training stages, 2.788M H800 GPU hours in total Pretraining 14.8T tokens 4K sequence length 2048 H800 GPUs FP8 mixed precision No rollbacks Extend to 32K 4K → 32K 1000 steps Batch 1920 YaRN, s = 40 LR 7.3e-6 Extend to 128K 32K → 128K 1000 steps Batch 480 YaRN, s = 40 LR 7.3e-6 SFT About 1.5M samples 2 epochs Reasoning: from R1 Others: from V2.5 RL GRPO, no value model Rule + model rewards Code, math, writing 2,664K GPU hours Pretraining 119K GPU hours Context extension 5K GPU hours Post-training (SFT + RL) Total 2,788K H800 GPU hours, about $5.576M at $2 per GPU hour Excludes prior research and ablation experiments; only the official training runs at a rental price
The DeepSeek-V3 training pipeline with the GPU hours of Table 1 (SFT is supervised fine-tuning, RL is reinforcement learning). Pretraining is 95.6% of the total (2,664K divided by 2,788K); the paper states that prior research and ablation experiments are excluded.

The paper gives one more figure that is handy for comparison: each trillion training tokens takes 180K H800 GPU hours, which is about 3.7 days on a cluster of 2048 GPUs, so pretraining finished in under two months. The code below recomputes these numbers and the KV cache numbers above:

# Cost: numbers from Table 1 and Section 1 of the paper
gpu_hours = {"pretraining": 2664, "context extension": 119,
             "post-training": 5}  # in thousands of GPU hours
total = sum(gpu_hours.values())
print(total, total * 2 / 1000)  # total hours; millions of USD at $2 per hour
print(2664 / 14.8)  # thousand GPU hours per trillion tokens
print(round(180_000 / 2048 / 24, 2))  # days for 1T tokens on 2048 GPUs

# KV cache: MLA stores d_c + d_R numbers per layer per token, 2 bytes each
layers, n_heads, d_head, d_c, d_rope = 61, 128, 128, 512, 64
mla = layers * (d_c + d_rope) * 2
mha = layers * 2 * n_heads * d_head * 2  # a hypothetical 128-head MHA
print(round(mla / 1024, 1), round(mha / 2**20, 2), round(mha / mla, 1))

Output:

2788 5.576
180.0
3.66
68.6 3.81 56.9
How to read $5.576 million

This number has three scopes: it includes only the official training runs, not prior research or ablation experiments; it is converted at a rental price of $2 per GPU hour; and it counts the final training of one model, not the failed attempts. It answers “how many GPU hours does this recipe need on the same hardware”, and it is not “the total investment in making this model”. For how to estimate compute, memory and MFU, see Compute and Memory Estimation.

Post-Training: SFT, Reinforcement Learning and R1 Distillation

Supervised fine-tuning. The SFT data totals 1.5M samples across several domains, each built in a different way:

  • Reasoning data (math, competition code problems, logic puzzles). An expert model is first trained for each domain (SFT plus RL) and then used to generate data. Two kinds of sample are generated for each problem: “problem plus original response”, and “system prompt plus problem plus R1 response”, where the system prompt asks the model to include reflection and verification. The RL stage samples at high temperature so the model learns to fuse the two patterns; after a few hundred steps, rejection sampling filters high-quality samples as the final SFT data. The aim is to combine the accuracy of R1 data with the concision of ordinary data. The paper also admits that R1-generated data suffers from overthinking, poor formatting and excessive length.
  • Non-reasoning data (creative writing, role-play, simple question answering). Generated by DeepSeek-V2.5 and then verified by humans.
  • Settings. Two epochs on DeepSeek-V3-Base, with the learning rate decaying by cosine from 5×10−65\times10^{-6} to 1×10−61\times10^{-6}; sequences are packed from several samples, with a sample mask keeping them invisible to each other.

Reinforcement learning. There are two kinds of reward. Problems that can be checked by rules use a rule-based reward: math problems require the final answer in a specified format so that rules can score it, and LeetCode problems run test cases through a compiler. Questions without a definite answer use a model-based reward: the reward model is trained from V3’s SFT checkpoint, and the preference data contains not only the final reward but also the chain of thought that led to it, to lower the risk of reward hacking. The algorithm is GRPO, which does not use a value model as large as the policy but estimates the baseline from the scores of the same group of samples:

Ai=ri−mean(r1,…,rG)std(r1,…,rG)A_i=\frac{r_i-\mathrm{mean}(r_1,\dots,r_G)}{\mathrm{std}(r_1,\dots,r_G)}

For the principle of GRPO see Reasoning RL and the DeepSeekMath explainer. For scenarios with no ground-truth answer, V3 follows the idea of Constitutional AI and uses the majority-vote judgments of V3 itself as feedback. The average RewardBench scores the paper reports are 87.0 for V3 and 89.6 for majority voting (maj@6), against 88.7 for Claude-3.5-Sonnet-1022 and 86.7 for GPT-4o-0806.

The gain and the price of distillation. The paper runs an ablation on DeepSeek-V2.5 (Table 9, Pass@1 accuracy on both benchmarks, with the average response length):

ModelLiveCodeBench-CoTAvg. lengthMATH-500Avg. length
V2.5 baseline (short-CoT data)31.171874.6769
V2.5 with R1 distillation37.478383.21510

Accuracy improves markedly, but the average response length on MATH-500 doubles. So the final V3 makes a compromise in how distillation is set up, instead of carrying over R1’s length unchanged.

How to Read the Results

The base model (Table 3, the paper’s own evaluation framework, the same settings). An excerpt, comparing DeepSeek-V2-Base, Qwen2.5 72B Base and LLaMA-3.1 405B Base:

BenchmarkDeepSeek-V2Qwen2.5 72BLLaMA-3.1 405BDeepSeek-V3
Active / total parameters21B / 236B72B / 72B405B / 405B37B / 671B
MMLU (5-shot)78.485.084.487.1
MMLU-Pro (5-shot)51.458.352.864.4
BBH (3-shot)78.879.882.987.5
DROP (3-shot F1)80.480.686.089.0
HumanEval (0-shot)43.353.054.965.2
GSM8K (8-shot)81.688.383.589.3
MATH (4-shot)43.454.449.061.6
HellaSwag (10-shot)87.184.889.288.9
CMMLU (5-shot)84.089.573.788.8

V3-Base is best on most benchmarks, especially math and code, but not all: HellaSwag is slightly below LLaMA-3.1 405B and CMMLU slightly below Qwen2.5 72B. The paper stresses that the active parameters are only about 1/11 of LLaMA-3.1 405B’s, and that training takes only 180K GPU hours per trillion tokens, far cheaper than training a dense model of 72B or 405B.

The chat model (Table 6). An excerpt, with the output length of every model capped at 8K, first against open-source models and then against closed-source ones:

BenchmarkQwen2.5 72BLLaMA-3.1 405BDeepSeek-V3
MMLU-Pro (EM)71.673.375.9
GPQA-Diamond (Pass@1)49.051.159.1
SimpleQA (correct)9.117.124.9
LongBench v2 (accuracy)39.436.148.7
LiveCodeBench (Pass@1-CoT)31.128.440.5
Codeforces (percentile)24.825.351.6
SWE-bench Verified (resolved)23.824.542.0
AIME 2024 (Pass@1)23.323.339.2
MATH-500 (EM)80.073.890.2
C-SimpleQA (correct)48.450.464.8
BenchmarkClaude-3.5-Sonnet-1022GPT-4o-0513DeepSeek-V3
MMLU-Pro (EM)78.072.675.9
GPQA-Diamond (Pass@1)65.049.959.1
SimpleQA (correct)28.438.224.9
LongBench v2 (accuracy)41.048.148.7
LiveCodeBench (Pass@1-CoT)36.333.440.5
Codeforces (percentile)20.323.651.6
SWE-bench Verified (resolved)50.838.842.0
AIME 2024 (Pass@1)16.09.339.2
MATH-500 (EM)78.374.690.2
C-SimpleQA (correct)51.359.364.8

On the open-ended evaluations, V3 scores 85.5 on Arena-Hard, against 85.2 for Claude-3.5-Sonnet-1022 and 80.4 for GPT-4o-0513; on AlpacaEval 2.0, V3 scores 70.0, Claude 52.0 and GPT-4o 51.1. Both use an LLM as the judge (GPT-4-Turbo-1106 in the paper), so the scores are affected by the judge and by response style; see LLM-as-a-Judge.

A few things to keep in mind when reading these tables:

  • V3 does not lead everywhere. On SimpleQA (English factual QA) it trails GPT-4o and Claude, and on GPQA-Diamond, MMLU-Pro and SWE-bench Verified it trails Claude-3.5-Sonnet-1022. The paper itself admits the SimpleQA gap and attributes it to more training tokens going to Chinese knowledge.
  • The lead is largest on math and code, which are also the most sensitive to distillation and evaluation settings. The paper credits the math gains to R1 distillation; AIME and CNMO are averaged over 16 runs at temperature 0.7, and MATH-500 uses greedy decoding.
  • All numbers are the authors’ own evaluations. The closed-source models compared are specific snapshots; the paper also notes that, because the evaluation framework changed, the DeepSeek-V2-Base numbers differ slightly from those published earlier. Outside readers cannot check whether the training data contaminated these benchmarks. In its future directions the paper itself admits the need for more comprehensive evaluation methods, to avoid the misleading effect of optimizing only around a fixed set of benchmarks.
  • “The strongest open-source model” is a conclusion at one point in time. It describes the comparable models as of December 2024; do not take it as a current ranking.

Limitations and Problems the Paper Mentions

In the conclusion the paper admits two points, both about deployment:

  • The deployment unit is large. For efficient inference, the minimum deployment unit in the prefill stage is 4 nodes with 32 GPUs (attention with 4-way tensor parallelism plus sequence parallelism and 8-way data parallelism, MoE with 32-way expert parallelism); in the decoding stage it is 40 nodes with 320 GPUs (attention again with 4-way tensor parallelism plus sequence parallelism, 80-way data parallelism, MoE with 320-way expert parallelism). That is a burden for small teams.
  • Speed can still improve. The paper says end-to-end generation speed is already more than twice that of V2, but there is room to improve, and it looks forward to new hardware that resolves these limits.

Three more points the reader must weigh:

  • A narrow cost scope. See the note above: it excludes research and the cost of owning a cluster.
  • The FP8 recipe depends on the hardware. The 14-bit accumulation precision and the promotion to CUDA Cores are observations on H800, and Section 3.5 of the paper gives hardware vendors design suggestions; details may differ on another generation of hardware.
  • Distillation depends on R1. A large part of V3’s reasoning ability comes from R1 distillation, a route that requires having a stronger long-chain-of-thought model first.

What to Take Away from This Paper

  1. Cost is the result of co-design, not of any single trick. MLA lowers the inference cache, MoE lowers the compute per token, DualPipe and the communication kernels hide communication inside computation, and FP8 brings down matrix multiplication and activation memory; remove any link and the numbers cannot be reached.
  2. The difficulty of MoE lies in the system, not in the model structure. Auxiliary-loss-free balancing, node-limited routing and redundant experts all solve “how to keep the slowest GPU from holding everything back once the experts are spread across many GPUs”.
  3. The key to low-precision training is to control the sources of error. Fine-grained scaling handles outliers, FP32 accumulation handles accumulation error, and sensitive operators stay in BF16 or FP32; each measure has a matching source of error and a number.
  4. The post-training recipe is “expert models make data, then distill into a general model”. R1 and expert models generate long chain-of-thought data, and rejection sampling then brings length and style back into a usable range.
  5. Read a scorecard by its scope. The authors’ own evaluation framework, a fixed output length, LLM judges and specific snapshots decide what the numbers can and cannot tell you.

Further Reading

FAQ

Why does DeepSeek-V3 cost only $5.576 million to train, and can that number be compared directly?
The paper converts 2.664M GPU hours of pretraining, 0.119M of context extension and 0.005M of post-training, 2.788M H800 GPU hours in all, at a rental price of $2 per GPU hour. It states that the figure covers only the official training runs, not prior research or ablation experiments on architectures, algorithms and data, and that it is a rental-price conversion that does not reflect the cost of owning a cluster. So it is not suitable for comparing with other labs' total spending; it is better used to compare how many GPU hours it takes to train a model under the same accounting.
How are DeepSeek-V3 and DeepSeek-R1 related?
The R1 series does reinforcement learning on top of DeepSeek-V3-Base, and R1-Zero does no SFT at all. In the other direction, V3's post-training distills long chain-of-thought reasoning from the R1 series. Expert models are first trained for math, code, logic and other domains, then rejection sampling keeps data that retains R1's verification and reflection patterns but is more concise, and that data is used for SFT. V3 itself is not a long-chain-of-thought model, and the paper warns that distillation makes the average response length grow noticeably, so accuracy and length have to be traded off.
How small can MLA make the KV cache?
With DeepSeek-V3's configuration (61 layers, 128 attention heads, 128 dimensions per head, d_c=512, d_R=64) and BF16, MLA caches 61 layers × 576 numbers × 2 bytes = 70,272 bytes per token, about 68.6 KiB. Standard MHA with the same 128 heads takes about 3.81 MiB, 56.9 times as much; GQA with 8 KV heads takes about 244 KiB, 3.6 times as much. One 128K-token sequence needs about 8.58 GiB with MLA. This is the cache size estimated from the paper's hyperparameters, without paging or implementation overhead.
How does auxiliary-loss-free load balancing work?
Each routed expert gets a bias that is used only for selection. The top-8 choice compares affinity plus bias, while the gating weights still use the original affinity. After each training step, the biases are adjusted according to the load of that step's whole batch, so an overloaded expert has γ subtracted and an idle one has γ added, with γ=0.001 in V3. Balancing no longer goes through the loss function, so it does not interfere with the language modeling objective. The paper's ablation shows most benchmarks improving and some regressing (MMLU for the 228.7B model falls from 68.3 to 67.2), and finds that the key is widening the balancing scope from each sequence to the whole batch, so a batch-wise auxiliary loss achieves a similar effect.
What is multi-token prediction used for in training and in inference?
In training, each position predicts D more tokens ahead in addition to the next token (V3 uses D=1), which makes the training signal denser; the losses of the depths are averaged and multiplied by a weight λ, 0.3 for the first 10T tokens and 0.1 afterwards. In inference, the MTP module can simply be discarded and the main model used as usual, or it can serve as the draft for speculative decoding. The paper reports an acceptance rate of 85% to 90% for the second token and a decoding throughput of about 1.8 times.