Chapter 8: Achieving Higher Throughput and Lower Latency
Generally speaking, model parallelism is less efficient than data parallelism. The main reasons are twofold, as outlined here.
First, the sequential dependency among deep neural network (DNN) layers holding onto different graphics processing units (GPUs) limits the performance. One GPU may not start working until its predecessor finishes generating outputs.
Second, the limited GPU memory makes it impossible to train a large input batch in each training iteration. Due to the large size of the model parameters, we can only train small batches of data per training iteration.
Given the preceding two challenges, we try to improve throughput and latency performance by adopting state-of-the-art ...
Get Distributed Machine Learning with Python now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.