LLM System Design Interview, issue 14, Nov 11, 2025
The Two Faces of Inference
ML Engineer interview at Google, and the interviewer asks:
βWe need to serve our model for two different use cases: a low-latency chatbot that needs a fast ππ’π¦π-ππ¨-π π’π«π¬π-ππ¨π€ππ§ (πππ π), and a high-throughput batch summarization job. How do these two workloads stress the GPU differently, and what fundamental tradeoff are you managing?β
Donβt say: βFor the chatbot, Iβd use a small batch size (like 1) for low latency. For the batch job, Iβd use a large batch size for high throughput.β
Why your chatbotβs latency and your batch jobβs throughput fight over different GPU limits - and how to balance compute-bound and memory-bound workloads.
The full answer, with the mechanism and the arithmetic, is for paid subscribers on Substack.