Inference System Design
16 questionsDONEUNLOCKEDLOCKED
LLM Serving System Design Interview Questions
Design an LLM API on a fixed GPU pool: prefix and KV-aware routing, autoscaling on the right signal, multi-LoRA and multi-model serving, tenant isolation, cold starts and weight distribution, and cost per million tokens under an SLO.
Worked answers on inference mechanisms, with calculations, implementation details, and follow-up questions.
You have 5 free answers unlocked here.Sign in free for 5 more · 6 are premium.
01–07Foundationsthe physics and terms an interviewer will not stop to define0/7 done
08–13Core loopsthe standard questions of this round, worked end to end0/6 done
14–16Field scenariosproduction incidents and capacity problems with the inputs left incomplete0/3 done
The concepts behind Inference System Design
The ideas these answers lean on. Foundation concepts are free to read; the advanced ones are Premium.
Foundational
Capacity Planning in Tokens per SecondHow to size an LLM serving fleet: convert requests into prompt and output tokens per second, price prefill by FLOPs and decode by bytes, cap utilization for tail latency, check KV residency and TPOT, then turn replicas into a cost per million tokens.Advanced
Prefix-Aware and KV-Aware RoutingWhy a prefix cache is only as good as the router in front of it: round-robin spreads each shared prefix across every replica and shrinks the hit rate, prefix-affinity hashing concentrates it, and KV-aware routing scores replicas on cached blocks against load so one hot tenant cannot melt a node.🔒 Premium
Advanced
Autoscaling LLM Fleets on the Right SignalWhy GPU utilization and requests per second are the wrong autoscaling signals for LLM serving, which engine metrics lead and which lag, how to turn token rates into a replica target, and why a five-minute cold start sets the headroom you must carry.🔒 Premium
Unlock all 16 answers · ₹2,000 / $25
Every worked answer and derivation in all 12 topics, every concept page, and the full practice-test bank.
6 months · One payment · No auto-renewal