MQA/GQA: Architectural Reductions in KV Cache Size

Multi-Query Attention (MQA) and Grouped-Query Attention (GQA) are architectural innovations that significantly reduce KV cache memory by sharing Key and Value projections across attention heads, with MQA potentially cutting cache size by a factor equal to the number of query heads (e.g., 32x for 32 heads).

Sources

Open the full topic