Compare multi-head, multi-query, grouped-query and sliding window attention

MediumConcept20 minRERSMLEPro outline

The question

Compare standard multi-head attention, multi-query attention, grouped-query attention and sliding window attention.

For each, what changes, what it saves at inference time, and what it might cost in quality?

What the interviewer is looking for

  • Correct description of how keys and values are shared in MQA and GQA
  • Quantifies KV cache savings as a ratio of heads
  • Explains sliding window attention and how information still travels beyond the window across layers
  • Discusses quality trade-offs and how models are converted or trained with these
  • Links each choice to serving cost and context length

Your answer

Saved in this browser only. Nobody else sees it.

Why this question

Written by BlogLLM in the style of a publicly reported Mistral AI question type: KV cache, attention variants and why they matter for inference.

Reported in: supacv.com

Practice question written by BlogLLM based on publicly reported interview formats. Not an official Mistral AI question.