Distributed & Disaggregated Inference
15 questionsDONEUNLOCKEDLOCKED
Distributed & Disaggregated Inference Interview Questions
Tensor, pipeline, expert and data-parallel attention, the all-reduce bytes per layer, MoE dispatch and combine all-to-all, prefill and decode disaggregation, KV transfer over NVLink and RDMA, and rack-scale NVLink domains.
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 · 5 are premium.
01–06Foundationsthe physics and terms an interviewer will not stop to define0/6 done
07–12Core loopsthe standard questions of this round, worked end to end0/6 done
13–15Field scenariosproduction incidents and capacity problems with the inputs left incomplete0/3 done
The concepts behind Distributed & Disaggregated Inference
The ideas these answers lean on. Foundation concepts are free to read; the advanced ones are Premium.
Foundational
Tensor Parallelism for ServingTensor parallelism splits every weight matrix across GPUs so each reads a fraction of the model per decode step, at the price of two all-reduces per layer. This page derives where those all-reduces sit, why their cost is latency-bound in decode and bandwidth-bound in prefill, and how KV heads cap the useful TP degree.Advanced
Expert Parallelism and the MoE All-to-AllExpert parallelism places different experts on different GPUs and moves tokens to them with two all-to-alls per MoE layer. This page counts those bytes for DeepSeek-V3, shows why EP exists (it gathers enough tokens per expert to leave the bandwidth-bound regime), and simulates the load imbalance that makes the slowest GPU set the step time.🔒 Premium
Advanced
Prefill and Decode DisaggregationDisaggregated serving runs prefill and decode on separate GPU pools and ships each request's KV cache between them. This page prices the interference it removes, the transfer it adds (2.5 GiB for an 8K-token Llama 3.3 70B prompt), how to size the prefill-to-decode ratio, and when the extra hop is not worth it.🔒 Premium
Unlock all 15 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