LLM inference serving with batching

DesignHard45 minOpenAI and Anthropic style

Your task

Design an LLM-inference-serving system for a 70B-parameter model behind a public API with continuous (in-flight) batching. Requests are streaming chat completions with highly variable input and output lengths (some 50 tokens, some 4,000). You must maximize GPU throughput (tokens/sec/dollar) while honoring a per-request time-to-first-token SLO of 500ms p95 and a smooth token streaming rate. Traffic is bursty, the model needs multiple GPUs (tensor/pipeline parallel), and you serve a mix of short interactive and long-generation requests on the same fleet.

It covers

  • Llm serving
  • Continuous batching
  • Kv cache