flâneur

Efficient Training on Multiple GPUs

huggingface.co · 1,096 words · saved by 1 readers

We’re on a journey to advance and democratize artificial intelligence through open source and open science.

Multi-GPU setups are effective for accelerating training and fitting large models in memory that otherwise wouldn’t fit on a single GPU. It relies on parallelizing the workload across GPUs. There are several types of parallelism such as data parallelism, tensor parallelism, pipeline parallelism, and model parallelism. Each type of parallelism splits the workload differently, whether it’s the data or the model. This guide will discuss the various parallelism methods, combining them, and choosing an appropriate strategy for your setup. For more details about distributed training, refer to the…

related reading