mlprep
Hard35 min·1 round

How would you design an LLM serving system for millions of users?

Written by the mlprep team · Updated

Interviewer Mode
Interviewer

Design an LLM serving system for a product used by millions of users — think ChatGPT or Claude at scale. Walk me through how you'd handle request routing, GPU scheduling, KV cache management, latency SLOs, and cost control. What breaks first as you scale?

Ready to compare your reasoning?

The key takeaway unlocks after you reveal an expert answer.

Follow-up Questions to Test Yourself

Interviewers often pivot here once you cover the core concept.

  • How does speculative decoding interact with continuous batching — do they compose well?
  • What is chunked prefill and why does it improve TPOT for requests that arrive during long prefill operations?
  • How would you design a multi-model serving system that routes between a 7B and 70B model based on query complexity?

How confident do you feel explaining this?

Track your understanding or flag it to revisit before your next loop.

Related Questions