Pre-training step

MTP module

×

learned · not counted here

One more Transformer layer, of depth 1: it combines each representation with the embedding of the next token and predicts the token after that, through the shared output head.

hi′ 1=M1[RMSNorm⁡(hi); RMSNorm⁡(Emb⁡(ti+1))]Pi+21=OutHead⁡(TRM⁡1(h′ 1)i)\begin{aligned}h'^{\,1}_i&={\htmlClass{vl-stream-context}{M_1}}\big[\operatorname{RMSNorm}({\htmlData{light=hidden model}{h_i}});\ \operatorname{RMSNorm}(\operatorname{Emb}(t_{i+1}))\big]\\P^{1}_{i+2}&=\operatorname{OutHead}\big(\operatorname{TRM}_1(h'^{\,1})_i\big)\end{aligned}
in
hh [B batch, T positions, 7168 d]
out
P1P^1 [B batch, T positions, V]

It also reads the sequence’s tokens, for the embedding of the next one. The plate’s line leaves out the two RMSNorm of eq. 21; “shared head” on it is the main model’s output head, which the module uses. Trained here; inference can discard it, and the pinned inference code builds none, though the published checkpoint’s index lists its tensors. The embedding layer and the output head are the main model’s.

Sources

Direct evidence

§2.2, Multi-Token Prediction: D sequential modules predict D additional tokens. The k-th module has a shared embedding layer, a shared output head, a Transformer block TRM_k and a projection matrix M_k; it combines the previous depth’s representation with the embedding of the (i+k)-th token, h′ = M_k[RMSNorm(h); RMSNorm(Emb(t_{i+k}))] (eq. 21), runs the block (eq. 22) and the shared head (eq. 23). The loss of a depth is a cross-entropy (eq. 24); the overall MTP loss is their average times a weight λ (eq. 25), “an additional training objective”.

DeepSeek-V3-technical-report-2412.19437v2.pdf pp. 10–11 ↗ · arXiv 2412.19437 @ v2

§4.2: the maximum sequence length is 4K; the MTP depth D is 1, “besides the exact next token, each token will predict one additional token”; λ = 0.3 for the first 10T tokens and 0.1 for the remaining 4.8T; α = 0.0001; the bias update speed γ = 0.001 for the first 14.3T tokens and 0 for the remaining 500B.

DeepSeek-V3-technical-report-2412.19437v2.pdf pp. 22–23 ↗ · arXiv 2412.19437 @ v2