Integrated Hardware Architecture and Device Placement Search

Irene Wang, Jakub Tarnawski, Amar Phanishayee, Divya Mahajan
7/1/2024

No official code found. Best implementation: msr-fiddle/phaze (7 stars, MIT, last commit 2024-06-12).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

msr-fiddle/phazeCommunity100%
MIT
70C, C++May 31, 20242 years agoMIT

Cite this paper

@article{wang2024integrated,
  title  = {Integrated Hardware Architecture and Device Placement Search},
  author = {Irene Wang and Jakub Tarnawski and Amar Phanishayee and Divya Mahajan},
  year   = {2024},
  eprint = {2407.13143},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2407.13143},
  journal = {ICML 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.13143.svg)](https://codeofpaper.com/paper/2407.13143)

Discussion