Specialists: SFT
×For each target domain the base model is fine-tuned on high-quality domain data, the first step of an expert of its own.
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.
Supervised fine-tuning as drawn for Llama 3.1 →That plate also draws Llama 3’s rejection sampling.
- Domains
- mathematics, coding, agents, instruction following
- Number format
- MXFP4 experts and indexer query–key path
Not disclosed Data size · Epochs · Learning rate · Trainable
Why
FP4 for the experts’ weights cuts memory and traffic at deployment; training aware of it lets the model adapt to the precision lost. DeepSeek-V4 report §5.2.1, p. 33
Architecture at this stageThe model as drawn; the MoE experts’ weights and the indexer’s query–key path train aware of MXFP4.
What the terms meanMXFP4, MXFP8 · FP4 KV cache
- MXFP4, MXFP8
- Microscaling number formats: each number takes 4 bits (MXFP4) or 8 bits (MXFP8), and each small block of numbers shares one power-of-two scale.
- FP4 KV cache
- DeepSeek-V4.1-Flash keeps the main attention cache at about 4 bits a number (E2M1, with one scale for every 16 channels), nearly half of FP8; quantization-aware training in post-training prepares the model for it.
All settings4
- Domains
- Mathematics, coding, agents and instruction following, among others; one specialist trained independently for each
- Pipeline
- DeepSeek-V3.2’s, adapted: fine-tuning first, then RL with domain-specific prompts and rewards
- Data
- High-quality, domain-specific data
- Number format
- Quantization-aware training in post-training: the MoE experts’ weights and the indexer’s query–key path in MXFP4, its index scores in BF16; teacher and reference models included
Sources4
- DeepSeek-V4-2606.19348v1.pdf, p. 5Domains, Data
- DeepSeek-V4-2606.19348v1.pdf, p. 28Domains, Pipeline
- DeepSeek-V4-2606.19348v1.pdf, p. 4Number format
- DeepSeek-V4-2606.19348v1.pdf, p. 33Number format