All Questions
Llm Inference Serving hard

Your server reserves a contiguous KV region sized for max_tokens = 8,192 for every request at admission, but the average sequence ends near 600 tokens. The node reports out-of-KV-memory at about 20 concurrent requests while GPU compute sits at 30%. Which change best raises concurrency without restricting legitimate long outputs?

  1. A Lower max_tokens to 1,024 so each reservation is 8x smaller, and require clients that need longer outputs to send follow-up continuation requests.
  2. B Allocate KV in small fixed-size blocks on demand through a block table, so memory tracks actual length instead of the reserved maximum.
  3. C Quantize model weights to 4-bit, which frees enough HBM that the contiguous 8K reservations fit roughly twice as many concurrent requests.
  4. D Add tensor parallelism across more GPUs so each 8K reservation is sharded, multiplying the concurrent request count by the parallelism degree.

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

Get the app

Related questions