One architectural change cuts KV cache 8x: how GQA works, explained with Llama 3 70B

blaizedsouza · x · 2026-09-14

Using Llama 3 70B as an example, the thread explains how Grouped-Query Attention (GQA) slashes KV cache size. Standard MHA stores one KV head per query head, so a 64-query-head model stores 64 KV sets per token per layer. Multi-Query Attention shares a single KV head — smallest cache, but quality suffers. GQA splits the difference: in Llama 3 70B, every 8 query heads share one KV head, storing 8 sets instead of 64 — an 8x smaller cache and 8x less KV data read during decoding, all else equal.

The quoted article, 'KV Cache Engineering for LLM Serving,' covers why the cache grows, 12 ways models and serving engines reduce it, what each technique actually saves, and the trade-offs.

Original post →

More from Infra

Infra channel →