|
1 | 1 | ---
|
2 | 2 | title: What is distributed training?
|
3 | 3 | titleSuffix: Azure Machine Learning
|
4 |
| -description: |
| 4 | +description: Distributed training refers to the ability to accelerate model training by sharing and parallelizing data loads and training tasks across multiple GPUs. |
5 | 5 | services: machine-learning
|
6 | 6 | ms.service: machine-learning
|
7 | 7 | author: nibaccam
|
8 | 8 | ms.author: nibaccam
|
9 | 9 | ms.subservice: core
|
10 | 10 | ms.topic: conceptual
|
11 |
| -ms.date: 03/24/2020 |
| 11 | +ms.date: 03/27/2020 |
12 | 12 | ---
|
13 | 13 |
|
14 | 14 | # Distributed training with Azure Machine Learning
|
@@ -36,13 +36,13 @@ There are two main types of distributed training: **data parallelism** and **mod
|
36 | 36 |
|
37 | 37 | ### Data parallelism
|
38 | 38 |
|
39 |
| -In data parallelism, the data is divided into partitions, where the number of partitions is equal to the total number of available nodes, in the compute cluster. The model is copied in each of these worker nodes, and each worker operates on its own subset of the data. Keep in mind that the model has to entirely fit on each node, that is each node has to have the capacity to support the model that's being trained. |
| 39 | +In data parallelism, the data is divided into partitions, where the number of partitions is equal to the total number of available nodes, in the compute cluster. The model is copied in each of these worker nodes, and each worker operates on its own subset of the data. Keep in mind that each node has to have the capacity to support the model that's being trained, that is the model has to entirely fit on each node. |
40 | 40 |
|
41 |
| -Each node independently computes the errors between its predictions for its training samples and the labeled outputs. This means that the worker nodes need to synchronize the model parameters, or gradients, at the end of the batch computation to ensure they are training a consistent model. In turn, each node must communicate all of its changes to the other nodes to update all of the models. |
| 41 | +Each node independently computes the errors between its predictions for its training samples and the labeled outputs. In turn, each node updates its model based on the errors and must communicate all of its changes to the other nodes to update their corresponding models. This means that the worker nodes need to synchronize the model parameters, or gradients, at the end of the batch computation to ensure they are training a consistent model. |
42 | 42 |
|
43 | 43 | ### Model parallelism
|
44 | 44 |
|
45 |
| -In model parallelism, also known as network parallelism, the model is segmented into different parts that can run concurrently, and each one will run on the same data in different nodes. The scalability of this method depends on the degree of task parallelization of the algorithm, and it is more complex to implement than data parallelism. |
| 45 | +In model parallelism, also known as network parallelism, the model is segmented into different parts that can run concurrently in different nodes, and each one will run on the same data. The scalability of this method depends on the degree of task parallelization of the algorithm, and it is more complex to implement than data parallelism. |
46 | 46 |
|
47 | 47 | In model parallelism, worker nodes only need to synchronize the shared parameters, usually once for each forward or backward-propagation step. Also, larger models aren't a concern since each node operates on a subsection of the model on the same training data.
|
48 | 48 |
|
|
0 commit comments