SFT
×Stage · DeepSeek-V3
Two epochs on 1.5M instruction instances.
Supervised fine-tuning
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.
: the prompt; : 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.
Supervised fine-tuning as drawn for Llama 3.1 →That plate also draws Llama 3’s rejection sampling.
- Data
- 1.5M instances
- Epochs
- 2
- Learning rate
- Cosine, 5×10⁻⁶ → 1×10⁻⁶
Not disclosed Batch · Optimiser
Architecture at this stageNo lightning indexer: dense attention.
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
- DeepSeek-V3 report, pp. 28–29Data
- DeepSeek-V3 report, p. 29Epochs, Learning rate, Packing