🖥️ AI InfrastructureID:
training-frameworksTraining Frameworks & Profiling
训练框架与 Profiling
🎯Core Interview Exam Points
Fundamentals · Production Scenarios · Deep DiveCore Def
Explain the core definition, underlying mechanism/math, and key principles of Training Frameworks & Profiling.
Use Cases
In production engineering, what are the primary use cases for Training Frameworks & Profiling and what core pain points does it solve?
🔥 High-Frequency Deep-Dive Questions
1
Compare the memory budgets: DDP holds per rank (full replica, ZeRO-0), FSDP/ZeRO-3 hold , DeepSpeed adds CPU/NVMe offload; state which solves compute scaling and which solves memory scaling.
2
Explain FSDP sharding: weight tensors sharded by rank → All-Gather the layer's params before forward → discard after use → Reduce-Scatter gradient shards in backward; why communication is ~1.5× DDP (3Φ vs 2Φ) and why scaling stays near-linear.
3
Selection: FSDP for single-node multi-GPU with minimal code; DeepSpeed for cross-node, offload, very large scale, or its ecosystem; what differs between FSDP's FULL_SHARD and SHARD_GRAD_OP.
4
Use torch.profiler to find bottlenecks: split a step into compute/comm/IO/idle; how to fix un-overlapped communication (bucket size, async gradients) and IO stalls (worker count, prefetch_factor, data format); give a debug order.
5
Worked scenario: why DDP cannot fit 70B on 8×80 GB ( GB > 640 GB); FSDP/ZeRO-3 gives GB per rank — still over 80 GB, so 16 ranks or offload ( GB on GPU) is required; give the full two-level accounting.
📖 In-depth Guide:📄 mlops-and-testing →
Updated 2026-08-12🎯
🚀 Start Card Practice ➔Test Your Knowledge: Practice Questions for "Training Frameworks & Profiling"
Single choice pitfall questions with instant feedback and mistake tracking.