A model is too large to fit in one GPU's memory. Which parallelization strategy addresses that?
- Exam domain
- Model Development44% of the exam
- Difficulty
- Hard
- In this mock
- 22 questions on this domainPractise this domain
Why the exam asks this
Model Development (44% of the exam)
Objective in the exam guide: Evaluate and select appropriate parallelization (model parallelism, data parallelism) strategies for large-scale ML training.
Choosing model or data parallelism is named.
Why B is the answer
Model parallelism, splitting the model's layers or tensors across devices
Model parallelism splits the model across devices when it cannot fit on one. Data parallelism copies the model to each device and splits the data.
Remember: Model parallelism when the model will not fit.
How it works
Model size versus device memory decides the strategy.
In detail
- Too big for one device: model parallel.
- Fits, but data is large: data parallel.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Hyperparameter parallelismWrong
Tuning parallelism runs separate trials.
B. Model parallelism, splitting the model's layers or tensors across devicesRight
Model parallelism when the model will not fit.
C. Grid searchWrong
Grid search is a tuning method.
D. Data parallelism, because copying the full model onto every GPU frees memory on each oneWrongMost tempting
Data parallelism needs the whole model on each device.
Why it tempts: Data parallelism is the common default.
Use case
An illustrative scenario, not a real incident.
Illustrative: a 30-billion-parameter model is sharded across eight GPUs.
See it in different ways
flowchart TD
Q{"Does the model fit on one device?"}
Q -->|"No"| A0["Model parallelism"]
Q -->|"Yes, data is large"| A1["Data parallelism"]How to read this chart
- At "Does the model fit on one device?": if "No", go to "Model parallelism"; if "Yes, data is large", go to "Data parallelism".
mindmap
root(("Parallel training"))
n1["Data parallel"]
n2["Model copies"]
n3["Data shards"]
n4["Model parallel"]
n5["Model shards"]
n6["Huge models"]How to read this chart
- The centre is "Parallel training".
- "Data parallel" covers "Model copies", "Data shards".
- "Model parallel" covers "Model shards", "Huge models".