🖥️ AI InfrastructureID:
distributed-parallel4D Parallelism DP/TP/PP/SP
4D 并行 DP/TP/PP/SP
🎯Core Interview Exam Points
Fundamentals · Production Scenarios · Deep DiveCore Def
Explain the core definition, underlying mechanism/math, and key principles of 4D Parallelism DP/TP/PP/SP.
Use Cases
In production engineering, what are the primary use cases for 4D Parallelism DP/TP/PP/SP and what core pain points does it solve?
🔥 High-Frequency Deep-Dive Questions
1
Derive DP's communication: the ring AllReduce per step is ( = per-rank gradient), independent of N; explain why DP is still expensive for large models — S grows linearly with parameters (70B gradients ≈ 140GB).
2
TP communication profile: 2 AllReduces per layer, each ~ and independent of parameter count; argue why TP must stay intra-node (NVLink 900GB/s, low latency) and what happens across nodes.
3
PP communication: why its volume is small (one activation + one gradient per microbatch between adjacent stages, ~) and fits across nodes; what is its cost (bubble , see its card).
4
SP: what is sharded (the sequence dimension), what it fixes (KV/activation memory linear in seq), and the communication cost and fit of Megatron-SP vs Ring-Attention.
5
3D configuration problem: given total GPUs and model size, allocate TP intra-node → PP inter-node → DP outermost; recite GPT-3 175B's 1024 GPUs = DP 64 × TP 8 × PP 2 and justify each dimension.
📖 In-depth Guide:📄 distributed-parallelism →
Updated 2026-08-12🎯
🚀 Start Card Practice ➔Test Your Knowledge: Practice Questions for "4D Parallelism DP/TP/PP/SP"
Single choice pitfall questions with instant feedback and mistake tracking.