Why use grouped-query attention during LLM inference?
Reveal the answer and explore the explanation.
10HardWhy use grouped-query attention during LLM inference?
Answer
Hard
Why use grouped-query attention during LLM inference?
Answer
Several query heads share key and value heads, reducing KV cache memory relative to full multi-head attention.
Practical example
Serve long sequences with a smaller cache footprint.
Reference: Further reading ↗