RunInfraby RightNow
  • CatalogNew
  • Pricing
  • Research
  • Contact
DashboardSign inGet started
Home/Glossary/Multi-query attention

Memory

Multi-query attention

What it is

Multi-query attention gives all query heads one shared key head and one shared value head. It is the most aggressive key-value sharing point in this attention family.

Why it moves cost and latency

A single key-value stream minimizes cache size and related memory traffic. The tradeoff is architectural, and model quality depends on how the model was trained or converted.

What it looks like in practice

Serving kernels broadcast the shared keys and values across query heads during attention. A checkpoint must already use compatible projections because this is not a scheduler-only setting.

Related terms

  • KV cache->
  • Grouped-query attention->
  • HBM->

Questions this definition answers

What does Multi-query attention mean in inference serving?

Multi-query attention gives all query heads one shared key head and one shared value head. It is the most aggressive key-value sharing point in this attention family. Serving kernels broadcast the shared keys and values across query heads during attention. A checkpoint must already use compatible projections because this is not a scheduler-only setting.

Why can Multi-query attention move cost or latency?

A single key-value stream minimizes cache size and related memory traffic. The tradeoff is architectural, and model quality depends on how the model was trained or converted.

If you need custom optimization for a specific model, describe what you need

Describe the model and hardware you want optimized...
ModelsAuto engineAuto GPU
End-to-end encryption
Isolated GPU infrastructure
No training on your data
SOC 2 Type II
RunInfraby RightNow

© 2026 RunInfra. All rights reserved.

System status
Pipeline BuilderModelsCost CalculatorPricingStartupsBenchmarksDocsResearchNewsContact
Backed by
YCombinator
AICPA Type II
SOC 2
NVIDIA Inception ProgramNVIDIA Inception Program
Ask AI about RunInfra
Part of RightNow
SecurityDPAAUPCookiesTermsPrivacy