All Questions
Llm Inference Serving hard

Your p99 inter-token latency SLO is 50 ms. Load tests on one replica show batch 64 gives 35 ms ITL at 2,000 tokens/s, and batch 128 gives 60 ms ITL at 3,200 tokens/s. Finance wants batch 128 everywhere to cut the GPU count by about 40%. What should you do?

  1. A Cap the running batch near the largest size that meets the 50 ms SLO, add replicas for the extra load, and keep batch 128 for offline jobs.
  2. B Run batch 128, because higher throughput drains the queue faster, which lowers end-to-end latency enough to offset the slower per-token step.
  3. C Run batch 128 with speculative decoding to win back the extra 10 ms, since spare compute at large batch sizes makes speculation nearly free.
  4. D Run batch 128 on half the replicas and batch 64 on the rest with random routing, so the fleet-wide p99 averages out below the 50 ms target.

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

Get the app

Related questions