All Questions
Llm Inference Serving easy

Many users of your chat app click 'stop' or close the tab mid-response, but the server keeps generating until it reaches max_tokens. What is the impact of propagating these cancellations to the inference engine?

  1. A It frees decode slots and KV memory sooner, raising effective capacity at the cost of extra plumbing.
  2. B It has little impact, because a batch is fixed once formed and cannot drop requests mid-generation.
  3. C It mostly saves network bandwidth, since KV cache is released only once the whole batch finishes.
  4. D It only lowers TTFT for the cancelled user, since cancelling never affects others in the same batch.

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

Get the app

Related questions