All Questions
Llm Inference Serving medium

Your scheduler admits a request only if KV memory can hold its prompt plus max_tokens, so admitted requests are never preempted. The API's default max_tokens is 8,192, while the median reply is 300 tokens. The scheduler reports memory full, but measured KV usage is under 20%. What is the best fix?

  1. A Add GPUs to the pool, since the scheduler's memory accounting shows the pool is genuinely out of KV capacity.
  2. B Increase the maximum batch size in the scheduler config so it packs more sequences into each forward pass.
  3. C Remove max_tokens entirely and let every request generate until the model emits an end-of-sequence token.
  4. D Lower the default to fit observed lengths, or admit on expected length and accept occasional preemption.

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

Get the app

Related questions