Training

Pinned sources DeepSeek‑V4 report (arXiv 2606.19348v1) · model card (deepseek‑ai/DeepSeek‑V4‑Flash @ 60d8d70) · no training code is published

  1. Start of training
  2. Pre‑training 4Kdense attention4KNTPFIMMTPλ 0.3, then 0.1Balanceweight 0.0001What trains: alldense, MTP module
  3. Pre‑training 16Kdense attention16KNTPFIMMTPλ 0.3, then 0.1Balanceweight 0.0001What trains: all
  4. Indexer warm‑upa short stagenot statedKLto main attentionWhat trains: indexerindexernot stated: context
  5. Pre‑training 64Ksparse attention64KNTPFIMMTPλ 0.3, then 0.1Balanceweight 0.0001What trains: allsparse, top 512
  6. Pre‑training 1Msparse attention1MNTPFIMMTPλ 0.3, then 0.1Balanceweight 0.0001What trains: all
  7. DeepSeek-V4-Flash-Base
  8. Specialists: SFTone model per domainnot statedSFTnot statedMXFP4 expertsnot stated: context, what trains
  9. Specialists: RLone model per domainnot statedGRPOnot statednot stated: context, what trains
  10. Domain specialists
  11. Where the student starts: not stated
  12. On‑policy distillationmore than ten teachersnot statedOPDreverse KL, full vocabularynot statednot stated: context, what trains
  13. DeepSeek V4-Flash

Not stated for any stage: tokens.

  • NTPdashed: concluded, no source names it
  • not stated by the sources
  • the architecture changes
  • checkpoint
  • checkpoint, weights published
  • a join the sources leave unexplained

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

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.

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

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