All Questions
Llm Inference Serving medium

You must choose between two open-weight models of similar size and quality for a long-context, high-concurrency service. Model X uses multi-head attention with 64 KV heads. Model Y uses grouped-query attention with 8 KV heads. How should the attention design affect your choice?

  1. A It should not matter much, because the KV cache is small next to the weights, which dominate GPU memory.
  2. B Prefer Model X, because more KV heads split more evenly under tensor parallelism and therefore prefill faster.
  3. C Prefer Model Y: its KV per token is about 8x smaller, so more sequences fit and decode reads fewer bytes.
  4. D Prefer Model Y, because grouped-query attention mostly shrinks the weight files so the model fits on fewer GPUs.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions