Introducing adaptive model training
Here, we'll discuss elastic model training. In the following sections, we may use adaptive and elastic interchangeably, as they have similar meanings.
Adaptive model training is where we can change the number of GPUs during the training process. To better illustrate what we mean by changing the number of GPUs during the training process, we'll first describe how traditional distributed DNN training works with a fixed number of GPUs.
Traditional data parallel training
In normal distributed data parallel training, we assign our training job to a fixed number of GPUs, as shown in the following figure:
As shown in the preceding figure, one data parallel training paradigm is AllReduce-based. In this setting, we fix the number of workers to four. Therefore, for each training iteration, we do the following:
- Feed four batches...