35Design the Claude chat service▼hardAnthropic1 replies◆ premiumThe reported Anthropic open-ended design, and the round where candidates get tested on GPU memory and KV-cache arithmetic mid-whiteboard. The serving spine, the memory math that explains every product limit, and the safety layer the rubric explicitly wants.Open full answer →
47Design a real-time collaborative coding assistant: stream completions under 200ms for 10k concurrent users▼hardAnthropicOpenAIGitHub2 replies◆ premiumA Copilot/Cursor-style assistant lives or dies on the latency budget. The strong answer spends every millisecond of a 200ms end-to-end budget on purpose, separates the inline-ghost-text path from the chat path, and shows why prefix caching and speculative decoding are the only ways to hit it at 10k concurrent users.Open full answer →
56Design inference batching for a single GPU serving up to 100 inputs per batch while users wait synchronously. Maximize utilization.▼hardAnthropicOpenAIGoogle2 replies◆ premiumOne GPU, callers blocking on the response, and a hardware unit that is only efficient when fed wide batches. The whole job is trading a few milliseconds of queue wait for a large jump in throughput without ever stalling a request.Open full answer →
32Design a multi-model serving platform for LLMs with autoscaling and cold-start handling under a cost ceiling.▼hardNVIDIAGoogleAnthropic1 replies◆ premiumThe GPU-platform capstone: dozens of models, spiky traffic, a fixed monthly GPU budget, and a p99 SLO that scale-to-zero would wreck. Token-based autoscaling, the three layers of LLM cold start, and the residency tiering that makes the budget math work.Open full answer →
19What is the KV cache, why does it dominate serving memory, and how do you size it? Do the math for a 70B model.▼medium★ EssentialOpenAIAnthropicNVIDIA1 replies○ sign inOne formula, 2 × layers × KV heads × head_dim × bytes, unlocks every LLM serving capacity question. Worked through for Llama-70B, plus the mitigation stack from GQA to paging.Open full answer →
21Explain continuous batching vs static batching for LLM serving.▼easy★ EssentialTogether AIOpenAICoreWeave1 replies◆ premiumWhy the batch is a pool of decode slots, not a bus that waits until it's full. The mental-model shift behind every modern serving stack, and the scheduling tradeoffs interviewers push on next.Open full answer →
22Prefill vs decode, why are the two phases bottlenecked differently, and why disaggregate them?▼mediumNVIDIAOpenAITogether AI1 replies◆ premiumOne forward pass, two opposite performance regimes. The arithmetic-intensity argument that explains TTFT vs TPOT, GPU pool design, and why the big serving stacks split the phases onto different hardware.Open full answer →
23What is speculative decoding, and when does it actually help?▼mediumOpenAITogether AIApple1 replies◆ premiumFree tokens from idle FLOPs, losslessly, which surprises most candidates. The mechanism, the acceptance-rate math, and the high-batch regime where speculation quietly stops paying.Open full answer →
25How do you choose the tensor-parallel degree when serving a 70B model?▼hard★ EssentialTogether AICoreWeaveNVIDIA1 replies◆ premiumTP=2, 4, or 8, the answer is a memory budget, a latency target, and one rule: smallest TP that fits, scale with replicas. The worked arithmetic that turns this from vibes into a defensible call.Open full answer →
28How many GPUs do you need to serve 1,000 requests/sec, walk me through the capacity math.▼hard★ EssentialOpenAICoreWeaveTogether AI1 replies◆ premiumThe back-of-envelope chain every inference-platform round expects: traffic → tokens/sec → per-GPU throughput from bandwidth math → fleet size → dollars. With the headroom factors candidates forget.Open full answer →
30Design the infrastructure to serve a ChatGPT-scale assistant to hundreds of millions of weekly users.▼hardOpenAIAnthropicGoogle1 replies◆ premiumThe OpenAI capstone design. What separates passing answers: token-based capacity math, KV/prefix-aware routing instead of round-robin, and a degradation ladder for the day demand doubles overnight.Open full answer →
32Serve a 400B-class MoE under a 200ms p99 inter-token SLA. How do you lay it out?▼hardOpenAIDeepSeekTogether AI2 replies◆ premiumA sparse model with few active params per token, a brutal latency target, and an all-to-all on the critical path. The parallelism layout that hits the SLA, why expert parallelism not tensor parallelism is the lever, and the tail the all-to-all hides.Open full answer →
37vLLM vs TensorRT-LLM vs TGI: how do they differ and when do you pick each?▼medium★ EssentialNVIDIAHugging FaceTogether AI1 replies◆ premiumThree serving runtimes that look interchangeable on a benchmark slide and aren't. The axes that actually separate them (scheduler, kernels, operability) and the one-line rule for which to reach for.Open full answer →
38A 70B model won't fit on one 80GB GPU. Give three ways to serve it and the trade-offs.▼medium★ EssentialNVIDIATogether AIHugging Face1 replies◆ premiumDo the weight math first, then choose your poison: shrink the weights, split them across GPUs, or spill to host memory. Each buys you the fit at a different cost, and one of them is almost always wrong for production.Open full answer →
39Design GPT-scale MoE inference as a global service across regions. How do you lay it out?▼hardOpenAIGoogleDeepSeek1 replies◆ premiumA very large sparse model, hundreds of experts, and users on every continent. The layout that keeps experts close to compute, routes around regional skew, and decides what 'global KV cache' can and cannot mean.Open full answer →
41Design KV-cache reuse for hours-long 32K chat sessions, including edits, hot weight swaps, and eviction.▼expertOpenAIAnthropicFireworks2 replies◆ premiumReprefilling the whole history every turn makes a long chat O(n^2). The real design is a radix tree of KV blocks with copy-on-write branching, a weight-epoch tag, and an eviction policy that protects live turns.Open full answer →
42Serve thousands of per-customer LoRA adapters on one base 8B, sharing KV cache where you can.▼expertFireworksTogetherDatabricks1 replies◆ premiumEach customer has their own LoRA on a shared 8B. The S-LoRA-style answer keeps one base in memory, pages adapters in and out, and tags every KV block with an adapter ID so reuse never crosses tenants.Open full answer →