Training

Pinned sources DeepSeek‑V4.1 technical report @ 2cba9e4 · no training code is published

  1. Start of training
  2. Start of the encoder’s training
  3. Vision encoder: contrastiveDeepSeek-ViT≈ 47B pairsnot statedContrastiveSigLIPWhat trains: ViTnot stated: context
  4. Vision encoder: autoregressiveDeepSeek-ViT236Bnot statedNTPWhat trains: ViTnot stated: context
  5. DeepSeek-ViT
  6. Pre‑training 0–28T28T64KNTPBalanceweight 0.0001What trains: not ViTsparse from scratch
  7. Pre‑training 28–34TLR decay begins6T64KNTPBalanceweight 0.0001What trains: all
  8. Pre‑training 34–45T11T1MNTPBalanceweight 0.0001What trains: all
  9. DeepSeek-V4.1-Flash-Base
  10. DSpark stagenot statednot statednot statedWhat trains: DSparkDSpark addednot stated: tokens, context, objective
  11. SFTnot statednot statedSFTnot statedpost-training changesnot stated: tokens, context, what trains
  12. RLnot statednot statedGRPOnot statednot stated: tokens, context, what trains
  13. On‑policy distillationnot statednot statedOPDover 40 teachersnot statednot stated: tokens, context, what trains
  14. DeepSeek-V4.1-Flash
  • tokens, log scale
  • derived: computed from stated numbers
  • not stated by the sources
  • the architecture changes
  • checkpoint
  • checkpoint, weights published

Vision encoder: autoregressive

×

Stage · DeepSeek-ViT

The encoder is fine-tuned by next-token prediction through a 4B MoE language model, at high resolution; the language model is then discarded.

Next-token prediction

L=−1T∑i=2T+1log⁡Pi[ti]\mathcal L=-\frac1T\sum_{i=2}^{T+1}\log P_i[t_i]
In words

At every position the model gives each token of the vocabulary a probability of coming next; the loss is the negative logarithm of the probability it gave the token that does come next, averaged over the sequence.

tit_i: the token at position ii; Pi[ti]P_i[t_i]: the probability the model, reading the tokens before it, gave that token; TT: the sequence length.

Tokens
236B
Resolution
544 × 544 to 1344 × 1344

Not disclosed Whether the 4B LLM trains · Steps · Batch · Learning rate · Optimizer

Why

This stage is there to sharpen the encoder’s fine-grained visual features, at the resolutions pre-training will use. DeepSeek-V4.1 report §4.2.2, p. 23

All settings4
Objective
Next-token prediction, with the encoder connected to a 4B MoE LLM
Tokens
236B, over datasets including image captions, alt text, charts and OCR
Resolution
Between 544 × 544 and 1344 × 1344, out-of-bound images scaled proportionally
Trainable
The vision encoder is fine-tuned; the LLM is discarded after the stage, and whether it trains is not stated
Sources1