QUESTION 10 OF 10

Why use grouped-query attention during LLM inference?

Reveal the answer and explore the explanation.

10
Hard

Why use grouped-query attention during LLM inference?

Answer
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 ↗

Last 30 min revisionHigh-yield interview Q&As