Training

Pinned sources DeepSeek‑V3 technical report (arXiv 2412.19437v2) · the stages as read and checked for DeepSeek‑V3.2‑Exp’s score · no training code is published

  1. Random initialisation
  2. Pre‑training14.8T4KNTPFIMrate 0.1MTPλ 0.3, then 0.1Balanceα 0.0001What trains: allMTP module
  3. Context 32K≈ 62.9B32KNTPWhat trains: allYaRN, s = 40
  4. Context 128K≈ 62.9B128KNTPWhat trains: all
  5. DeepSeek-V3-Base
  6. SFTnot statednot statedSFTDistillationfrom DeepSeek-R1not statednot stated: tokens, context, what trains
  7. RLnot statednot statedGRPOnot statednot stated: tokens, context, what trains
  8. DeepSeek-V3
  • tokens, log scale
  • derived: computed from stated numbers
  • NTPdashed: concluded, no source names it
  • not stated by the sources
  • the architecture changes
  • checkpoint
  • checkpoint, weights published

SFT

×

Two epochs on 1.5M instruction instances.

Supervised fine-tuning

LSFT=−∑t∈ylog⁡P(yt∣x,y<t)\mathcal L_{\mathrm{SFT}}=-\sum_{t\in y}\log P(y_t\mid x,y_{<t})
In words

The model is trained on examples of the answers wanted, prompts with their responses, by the cross-entropy of next-token prediction on the responses.

xx: the prompt; yy: the response; the prompt’s tokens are left out of the loss.

  • Distillation through data. Other models, teachers or specialists, write responses, and the model is trained on what they write.
Data
1.5M instances
Epochs
2
Learning rate
Cosine, 5×10⁻⁶ → 1×10⁻⁶

Not disclosed Batch · Optimiser

All settings4
Data
1.5M instances across domains. Reasoning data first comes from an internal DeepSeek-R1 model; expert models trained with SFT and RL blend its responses with concise ones, and rejection sampling curates the result. Non-reasoning data comes from DeepSeek-V2.5, checked by annotators
Epochs
2
Learning rate
Cosine, 5×10⁻⁶ → 1×10⁻⁶
Packing
Several samples per sequence, kept apart by sample masking
Sources2