DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Model
DeepSeek-AIAixin Liu…Ruyi Chen
DeepSeek-V2 is a Mixture-of-Experts (MoE) language model with 236B total parameters, activating 21B per token, supporting a 128K-token context. Its central contribution is the combination of Multi-head Latent Attention (MLA) and DeepSeekMoE: MLA compresses the Key-Value (KV) cache into a latent vector for efficient inference, reducing KV cache by 93.3% and boosting throughput 5.76 times; DeepSeekMoE enables economical training via sparse computation, saving 42.5% of training costs. Pre-trained on 8.1T tokens with SFT and RL, DeepSeek-V2 achieves top-tier open-source performance despite only 21B activated parameters.

arXiv ·
· May 7, 2024