Grouped-Query Attention: Up to 8x KV Cache Reduction

Grouped-Query Attention (GQA) is a key architectural innovation that significantly shrinks the KV cache by sharing Key/Value heads across groups of query heads. This can reduce KV cache size by a factor equal to the group size (e.g., 8x for Llama-3), enabling longer contexts and larger batch sizes with negligible quality loss compared to Multi-Head Attention.

Sources

Open the full topic