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: contrastive

×

Stage · DeepSeek-ViT

The vision encoder, trained from scratch, first learns from image–text pairs with a contrastive loss at low resolution.

Contrastive pre-training

An image encoder learns from image–text pairs: an image and its own caption are scored as a match, an image and the batch’s other captions as no match.

The report names SigLIP’s sigmoid contrastive loss and does not write it; the SigLIP paper is not pinned.

Data
about 47B image–text pairs
Resolution
at most 224 × 224

Not disclosed Tokens · Steps · Batch · Learning rate · Optimizer

Why

Higher resolution in this phase costs much more and adds little to the final model, since the next stage handles high resolution. DeepSeek-V4.1 report §4.2.2, p. 23

All settings4
Objective
The sigmoid contrastive loss of SigLIP
Data
About 47B image–text pairs from alt-text data
Resolution
At most 224 × 224, larger images downscaled with their aspect ratio kept
Trainable
The vision encoder, trained from scratch, is “first optimized with a contrastive objective”; the text side of the pairs, which also takes gradients, is not described
Sources3