Training XGBoost on 1 TB of data does not fit on one GPU. What is the standard multi-GPU approach?
- Exam domain
- Machine Learning15% of the exam
- Difficulty
- Medium
- In this mock
- 7 questions on this domainPractise this domain
Why the exam asks this
Machine Learning (15% of the exam)
Objective in the exam guide: Training machine learning models, comparing single-GPU and multi-GPU scenarios
Single versus multi-GPU training is named.
Why A is the answer
Use XGBoost's Dask integration with Dask-cuDF across GPUs
XGBoost's Dask interface trains one model across many GPUs, with each worker holding a partition of the data.
Remember: XGBoost with Dask trains across GPUs.
How it works
Multi-GPU training with Dask scales models such as XGBoost and cuML estimators.
In detail
- Dask XGBoost for data across GPUs.
- Compare against single-GPU speed.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Use XGBoost's Dask integration with Dask-cuDF across GPUsRight
XGBoost with Dask trains across GPUs.
B. Train on the CPU onlyWrong
CPU training is much slower.
C. Train on a 1% sample on one GPU and report it as the full modelWrong
A sample is not the full model.
D. Train separate models per GPU and average their predictions without coordinationWrongMost tempting
Uncoordinated models are not one trained model.
Why it tempts: Averaging models sounds like ensembling.
Use case
An illustrative scenario, not a real incident.
Illustrative: 8 GPUs train on the full terabyte in 25 minutes.
See it in different ways
sequenceDiagram participant P0 as Client participant P1 as Dask workers participant P2 as XGBoost P0->>P1: Dask-cuDF partitions P1->>P2: train together P2-->>P0: one model
How to read this chart
- 1. Client sends "Dask-cuDF partitions" to Dask workers.
- 2. Dask workers sends "train together" to XGBoost.
- 3. Client gets a reply from XGBoost: "one model".
flowchart TD
Q{"Data fits one GPU?"}
Q -->|"Yes"| A0["Single GPU, less overhead"]
Q -->|"No"| A1["Multi-GPU with Dask"]How to read this chart
- At "Data fits one GPU?": if "Yes", go to "Single GPU, less overhead"; if "No", go to "Multi-GPU with Dask".
Related questions
Learn more
- Our lesson: Machine learning at scale
- Practise Machine Learning questions in the mock exam
- Source: XGBoost GPU support
- Source: Dask-CUDA documentation (RAPIDS)
- XGBoost GPU support
- cuML documentation (RAPIDS)
- Tuning the hyper-parameters of an estimator (scikit-learn)
- Train With Mixed Precision (NVIDIA Docs)