← ReflectionAI Interview Insights
This is the kind of question that sounds easy until you start talking and realize you've been thinking about parallelism mostly in the training context.
Start by clarifying that with a single request and no batching, latency is the primary constraint, so you should favor strategies that minimize communication overhead and maximize per-GPU utilization. Then compare data, tensor, and pipeline parallelism on latency, memory, and underutilization, ultimately recommending tensor parallelism for intra-layer scaling or data parallelism if the model fits on one GPU.
Pro tip: Emphasize that pipeline parallelism introduces bubbles and sequential dependencies that are disastrous for single-request latency, while tensor parallelism adds all-reduce overhead per layer—so the best choice depends on whether the model fits in a single GPU's memory.
Restate that there is a single decoding request, no batching, and the goal is to minimize latency while respecting memory limits. Identify whether the model fits on one GPU, as this determines the viable options.
Explain that data parallelism replicates the model across GPUs and splits the batch, but with a single request there is no batch to split, so it offers no benefit and wastes memory. It is only useful if you need to serve multiple concurrent requests.
Describe how tensor parallelism splits individual layers across GPUs, reducing per-GPU memory and enabling larger models. However, it introduces communication overhead (e.g., all-reduce) per layer, which can increase latency, especially with slow interconnects.
Explain that pipeline parallelism splits the model into stages across GPUs, but for a single request it creates pipeline bubbles and sequential dependencies, leading to high latency and GPU underutilization. It is better suited for throughput with many micro-batches.
Conclude that for a single request, if the model fits on one GPU, use no parallelism (or data parallelism with a single replica). If it doesn't fit, tensor parallelism is preferred over pipeline parallelism because it avoids bubbles and can be optimized with high-bandwidth interconnects.
AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.