All Questions
Llm Inference Serving medium

Your 64K-context document Q&A service runs a model whose 8-bit weights take 20 GB per GPU, which leaves 55 GB for an fp16 KV cache. KV memory caps concurrency at a few sequences per GPU. Which change most increases concurrent sequences per GPU?

  1. A Quantize weights further to 4-bit, since weights are the largest fixed memory cost and freeing them makes room for KV.
  2. B Quantize the KV cache to 8-bit, roughly doubling the tokens that fit, after evaluating quality on long-context tasks.
  3. C Shrink the maximum batch size so each running sequence gets a larger share of the GPU's KV memory pool.
  4. D Add a second replica on another GPU, which doubles the KV memory available to each long-context sequence.

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

Get the app

Related questions