Mid-training 1M
×The final stage of mid-training extends the context to 1M.
Next-token prediction
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.
: the token at position ; : the probability the model, reading the tokens before it, gave that token; : the sequence length.
Next-token prediction continues; whether the MTP blocks, said to train in pre-training, trains in mid-training too, the report does not say.
Next-token prediction as drawn for DeepSeek‑V3.2‑Exp →That plate also draws multi-token prediction, fill-in-the-middle and DeepSeek-V3’s sequence-wise balance loss.
- Context
- 1M
- Data
- agent trajectories, repository code, all modalities
Not disclosed Tokens · Learning rate · Batch · Steps
Architecture at this stageThe model as drawn, at its context of 1M.
What the terms meanMTP, multi-token prediction · Trajectory
- MTP, multi-token prediction
- Extra modules predict tokens further ahead than the next one, and their cross-entropy, times a weight λ, is added to the loss.
- Trajectory
- The record of a model working through a task: its reasoning, its tool calls and what the tools returned, turn by turn.
All settings5
- Data
- An agent-centric mixture: realistic agent trajectories in coding, general, visual and research tasks, with high-quality text, repository-level code, and image, video and audio data
- Optimizer
- Muown, a Muon variant with row-norm control, for the hidden weight matrices, switched to from AdamW to prepare for large-batch RL; embeddings, the LM head and the MoE router stay on AdamW; no loss spike after the switch
- Number format
- MXFP4 quantization-aware training from mid-training on
- Trainable
- Every parameter
- Context
- 1M, in the final stage
Sources1
- MiMo_V2_6_technical_report.pdf, p. 7Data, Optimizer, Number format, Trainable, Context