Towards Universal Performance Modeling for Machine Learning Training on Multi-GPU Platforms

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Lin, Zhongyi, Sun, Ning, Bhattacharya, Pallab, Feng, Xizhou, Feng, Louis, Owens, John D.
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866910714958970880
author Lin, Zhongyi
Sun, Ning
Bhattacharya, Pallab
Feng, Xizhou
Feng, Louis
Owens, John D.
author_facet Lin, Zhongyi
Sun, Ning
Bhattacharya, Pallab
Feng, Xizhou
Feng, Louis
Owens, John D.
contents Characterizing and predicting the training performance of modern machine learning (ML) workloads on compute systems with compute and communication spread between CPUs, GPUs, and network devices is not only the key to optimization and planning but also a complex goal to achieve. The primary challenges include the complexity of synchronization and load balancing between CPUs and GPUs, the variance in input data distribution, and the use of different communication devices and topologies (e.g., NVLink, PCIe, network cards) that connect multiple compute devices, coupled with the desire for flexible training configurations. Built on top of our prior work for single-GPU platforms, we address these challenges and enable multi-GPU performance modeling by incorporating (1) data-distribution-aware performance models for embedding table lookup, and (2) data movement prediction of communication collectives, into our upgraded performance modeling pipeline equipped with inter-and intra-rank synchronization for ML workloads trained on multi-GPU platforms. Beyond accurately predicting the per-iteration training time of DLRM models with random configurations with a geomean error of 5.21% on two multi-GPU platforms, our prediction pipeline generalizes well to other types of ML workloads, such as Transformer-based NLP models with a geomean error of 3.00%. Moreover, even without actually running ML workloads like DLRMs on the hardware, it is capable of generating insights such as quickly selecting the fastest embedding table sharding configuration (with a success rate of 85%).
format Preprint
id arxiv_https___arxiv_org_abs_2404_12674
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Towards Universal Performance Modeling for Machine Learning Training on Multi-GPU Platforms
Lin, Zhongyi
Sun, Ning
Bhattacharya, Pallab
Feng, Xizhou
Feng, Louis
Owens, John D.
Distributed, Parallel, and Cluster Computing
Machine Learning
Performance
Characterizing and predicting the training performance of modern machine learning (ML) workloads on compute systems with compute and communication spread between CPUs, GPUs, and network devices is not only the key to optimization and planning but also a complex goal to achieve. The primary challenges include the complexity of synchronization and load balancing between CPUs and GPUs, the variance in input data distribution, and the use of different communication devices and topologies (e.g., NVLink, PCIe, network cards) that connect multiple compute devices, coupled with the desire for flexible training configurations. Built on top of our prior work for single-GPU platforms, we address these challenges and enable multi-GPU performance modeling by incorporating (1) data-distribution-aware performance models for embedding table lookup, and (2) data movement prediction of communication collectives, into our upgraded performance modeling pipeline equipped with inter-and intra-rank synchronization for ML workloads trained on multi-GPU platforms. Beyond accurately predicting the per-iteration training time of DLRM models with random configurations with a geomean error of 5.21% on two multi-GPU platforms, our prediction pipeline generalizes well to other types of ML workloads, such as Transformer-based NLP models with a geomean error of 3.00%. Moreover, even without actually running ML workloads like DLRMs on the hardware, it is capable of generating insights such as quickly selecting the fastest embedding table sharding configuration (with a success rate of 85%).
title Towards Universal Performance Modeling for Machine Learning Training on Multi-GPU Platforms
topic Distributed, Parallel, and Cluster Computing
Machine Learning
Performance
url https://arxiv.org/abs/2404.12674