Compresses keys and values into one small latent vector per token. The cache stores the latent, not full K/V.
Introduced inMay 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Model
Introduced by DeepSeek, MLA projects each token’s keys and values down into a compact latent vector and reconstructs per-head K/V from it on the fly. Only the small latent is kept in the KV cache, cutting cache memory by an order of magnitude versus storing full keys and values, which is what makes very long contexts affordable. A small decoupled RoPE branch keeps position information that the compression would otherwise destroy.
Share of new models that have included MLA over time.
Open any of these on hfviewer to find this block in the interactive architecture graph.
Browse all 92 models with this in the catalog →
hfviewer renders the full architecture of 2,300+ Hugging Face models as interactive graphs. Hover any block to see what it does, with this model’s real numbers.
Browse all model graphs →