Production model
DeepSeek V2
Architecture
| Positional encoding | RoPE (decoupled head for MLA) |
|---|---|
| Norm placement | Pre-Norm |
| Norm type | RMSNorm |
| QK-Norm | no |
| Activation | SwiGLU |
| Attention | MLA |
| MoE | DeepSeekMoE with standard auxiliary balance loss |
| Other | 60 layers, Context extended from 4K base to 128K via YaRN, First model to ship MLA architecture |
Techniques used
- Multi-Head Latent Attention — Original MLA introduction. 60 layers; d_c = 512, d_R = 64.
- DeepSeekMoE — 162 routed + 2 shared experts; top-6 routing; standard aux balance loss.
- Decoupled RoPE — Introduced alongside MLA. d_R = 64 per layer.
- YaRN — Yet Another RoPE eXtensioN — YaRN used for 4K → 128K context extension.
DeepSeek V2 (May 2024) is the model that introduced MLA and established the DeepSeek architectural lineage. The four defining choices:
- MLA attention: latent-space K, V compression to a per-token bottleneck (), with a decoupled RoPE head (). 5–7× smaller KV cache than MHA on this scale.
- DeepSeekMoE: 160 routed experts plus 2 shared experts per MoE layer, top-6 routing. Established the fine-grained-plus-shared design pattern that V3 inherits.
- Standard auxiliary balance loss: V2 still uses Switch-style aux loss for MoE load balancing. V3 later replaced this with the aux-loss-free scheme.
- YaRN context extension: trained at 4K base, extended to 128K via YaRN post-pretraining.
The 60 layers and Pre-Norm RMSNorm + SwiGLU stack are otherwise canonical. The cumulative effect of MLA + fine-grained MoE was a sparse-activation model with quality comparable to dense 70B models at ~1/3 the inference cost.
V2 is included here as the original MLA + DeepSeekMoE adopter; for the latest in the lineage, see DeepSeek V3.
Sources
- https://arxiv.org/abs/2405.04434
- https://huggingface.co/deepseek-ai/DeepSeek-V2
- https://github.com/deepseek-ai/DeepSeek-V2
Export
BibTeX
@article{arxiv_2405_04434,
title = {DeepSeek V2},
author = {DeepSeek-AI},
year = {2024},
eprint = {2405.04434},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2405.04434}
} CSL JSON
{
"id": "arxiv_2405_04434",
"type": "article-journal",
"title": "DeepSeek V2",
"author": [
{
"literal": "DeepSeek-AI"
}
],
"issued": {
"date-parts": [
[
2024
]
]
},
"URL": "https://arxiv.org/abs/2405.04434",
"number": "2405.04434",
"source": "arXiv"
} RIS
TY - JOUR
TI - DeepSeek V2
AU - DeepSeek-AI
PY - 2024
JO - arXiv
AN - arXiv:2405.04434
UR - https://arxiv.org/abs/2405.04434
ER - Models like this
- DeepSeek V3DeepSeek-AI40% overlap
- Kimi Linear 48B-A3BMoonshot AI33% overlap
- Qwen3-Next 80B-A3BAlibaba (Qwen Team)22% overlap