Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu

Manage distributed training for large and deep learning models

A worked example

Single answer

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?

Choose one answer
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.

Practise this topic until it's automatic.

Ten questions a day, every answer explained, and misses that come back until you beat them.

Start free