An ML engineer submits a distributed training job that uses data parallelism. The job runs on an Azure Machine Learning compute cluster with 8 nodes, and all 8 nodes are available to the job.
How is the training workload distributed across the nodes?
Why
Data parallelism divides the training data into as many partitions as there are available nodes, so 8 nodes give 8 partitions. The model is copied to each worker node, and each node trains on its own subset of the data. Splitting the model itself across nodes is model parallelism.
- Not correct: Every node receives the full dataset, and each node holds one-eighth of the model and runs it on that data. Splitting the model into parts that run on the same data describes model parallelism, not data parallelism.
- Correct: The data is split into 8 partitions, and each node holds a full copy of the model and trains on one partition. With data parallelism, the number of data partitions equals the number of available nodes, and the model is copied to every node, which works on its own subset of the data.
- Not correct: The data is split into 8 partitions, and each node holds one-eighth of the model and trains on one partition. In data parallelism the entire model must fit on each node because the model is copied to every worker node; it is not split across nodes.
- Not correct: The data is split into 4 partitions, and each partition is processed by a pair of nodes that share one model. In data parallelism the number of partitions equals the number of available nodes, so 8 available nodes means 8 partitions, each node with its own model copy.
Source
- What is distributed training? - Azure Machine LearningMicrosoft Learn