Skip to Content
Distributed Machine Learning with Python
book

Distributed Machine Learning with Python

by Guanhua Wang
April 2022
Intermediate to advanced content levelIntermediate to advanced
284 pages
5h 53m
English
Packt Publishing
Content preview from Distributed Machine Learning with Python

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Interpretable Machine Learning with Python

Interpretable Machine Learning with Python

Serg Masís
Distributed Computing with Python

Distributed Computing with Python

Francesco Pierfederici

Publisher Resources

ISBN: 9781801815697Supplemental Content