Guide-linked quiz · Hard Level
Model and Pipeline Parallelism Quiz
Explains tensor and pipeline partitioning, activation transfers, microbatch schedules, pipeline bubbles, and communication tradeoffs.
Question 1 of 8
What fundamental problem do model and pipeline parallelism solve?
Preview every question8 questions
Answers and explanations appear as you take the quiz.
- What fundamental problem do model and pipeline parallelism solve?
- A model being too large to fit in a single GPU's memory
- Slow data loading from disk
- Gradients exploding during training
- Too few training examples available
- How does tensor (intra-layer) parallelism split work?
- It assigns whole layers to different GPUs
- It splits the math inside a layer, like a matrix multiply, across GPUs
- It duplicates each layer on every GPU
- It runs each layer twice for redundancy
- What is the 'bubble' in naive pipeline parallelism?
- A memory leak that grows over time
- A duplicate copy of the optimizer state
- Idle time when downstream GPUs wait for upstream stages to produce activations
- A spike in gradient values
- How does pipeline parallelism reduce the bubble?
- By using a smaller learning rate
- By removing some layers from the model
- By storing activations on the CPU
- By splitting each batch into micro-batches that flow through stages in a staggered way
- Why is tensor parallelism typically kept within a single node?
- Because its frequent all-reduce of partial results benefits from fast intra-node links like NVLink
- Because it does not require any communication
- Because nodes cannot share data at all
- Because it only supports one GPU
- Which framework is best known for tensor parallelism in transformer training?
- scikit-learn
- NVIDIA Megatron-LM
- OpenCV
- Pandas
- What data must move between stages in pipeline parallelism during a forward pass?
- The entire training dataset after each layer
- Only the optimizer’s learning rate
- Activation tensors produced by one stage and consumed by the next
- No data, because stages are independent models
- Why does tensor parallelism often require fast communication within its group?
- It assigns each GPU a separate dataset and never synchronizes
- It communicates only once when the model is loaded
- It uses no cross-device operations
- Devices exchange partial results or activations within layers during computation
Keep testing yourself
More quizzes picked for your level.