Integrated Hardware Architecture and Device Placement Search

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Wang, Irene, Tarnawski, Jakub, Phanishayee, Amar, Mahajan, Divya
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917726550753280
author Wang, Irene
Tarnawski, Jakub
Phanishayee, Amar
Mahajan, Divya
author_facet Wang, Irene
Tarnawski, Jakub
Phanishayee, Amar
Mahajan, Divya
contents Distributed execution of deep learning training involves a dynamic interplay between hardware accelerator architecture and device placement strategy. This is the first work to explore the co-optimization of determining the optimal architecture and device placement strategy through novel algorithms, improving the balance of computational resources, memory usage, and data distribution. Our architecture search leverages tensor and vector units, determining their quantity and dimensionality, and on-chip and off-chip memory configurations. It also determines the microbatch size and decides whether to recompute or stash activations, balancing the memory footprint of training and storage size. For each explored architecture configuration, we use an Integer Linear Program (ILP) to find the optimal schedule for executing operators on the accelerator. The ILP results then integrate with a dynamic programming solution to identify the most effective device placement strategy, combining data, pipeline, and tensor model parallelism across multiple accelerators. Our approach achieves higher throughput on large language models compared to the state-of-the-art TPUv4 and the Spotlight accelerator search framework. The entire source code of PHAZE is available at https://github.com/msr-fiddle/phaze.
format Preprint
id arxiv_https___arxiv_org_abs_2407_13143
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Integrated Hardware Architecture and Device Placement Search
Wang, Irene
Tarnawski, Jakub
Phanishayee, Amar
Mahajan, Divya
Machine Learning
Hardware Architecture
Distributed, Parallel, and Cluster Computing
Distributed execution of deep learning training involves a dynamic interplay between hardware accelerator architecture and device placement strategy. This is the first work to explore the co-optimization of determining the optimal architecture and device placement strategy through novel algorithms, improving the balance of computational resources, memory usage, and data distribution. Our architecture search leverages tensor and vector units, determining their quantity and dimensionality, and on-chip and off-chip memory configurations. It also determines the microbatch size and decides whether to recompute or stash activations, balancing the memory footprint of training and storage size. For each explored architecture configuration, we use an Integer Linear Program (ILP) to find the optimal schedule for executing operators on the accelerator. The ILP results then integrate with a dynamic programming solution to identify the most effective device placement strategy, combining data, pipeline, and tensor model parallelism across multiple accelerators. Our approach achieves higher throughput on large language models compared to the state-of-the-art TPUv4 and the Spotlight accelerator search framework. The entire source code of PHAZE is available at https://github.com/msr-fiddle/phaze.
title Integrated Hardware Architecture and Device Placement Search
topic Machine Learning
Hardware Architecture
Distributed, Parallel, and Cluster Computing
url https://arxiv.org/abs/2407.13143