MTP module
×learned · not counted here
In pre-training a module of depth 1 predicts one more token at each position: the token after the next.
- in
- [B batch, T positions, 7168 d]
- out
- [B batch, T positions, 129280 vocabulary]
The reference inference code builds no such module, so no code is pinned for it: this layer rests on the report (level: report). The published checkpoint’s tensor index still lists one. Its embedding and its output head are the main model’s; its layer, its projection and its two norms are not counted in the parameters shown here.
Sources
Direct evidence
§2.2 and Figure 3: the k-th MTP module is a shared embedding layer, a shared output head, a Transformer block and a projection matrix M_k ∈ R^{d×2d} (eq. 21 to 23); its loss is a cross-entropy at each depth, averaged and weighted by λ (eq. 24, 25). In inference the modules can be discarded.
DeepSeek-V3-technical-report-2412.19437v2.pdf pp. 10–11 ↗ · arXiv 2412.19437 @ v2
The published checkpoint’s index of tensor names lists a 62nd layer, model.layers.61, with eh_proj, enorm, hnorm, embed_tokens and shared_head tensors beside a layer’s own; the inference configuration has 61 layers. The index gives names only: no shape or value was read.
model.safetensors.index.json ↗ · deepseek-ai/DeepSeek-V3.2-Exp @ 194c67e12b1b