A Runtime-Based Computational Performance Predictor for Deep Neural Network Training

Geoffrey X. Yu, Yubo Gao, Pavel Golikov, Gennady Pekhimenko
1/31/2021
cs.LGcs.PF

Official code: geoffxy/habitat (64 stars, Python, Apache-2.0, last commit 2022-11-26).

Abstract

Deep learning researchers and practitioners usually leverage GPUs to help train their deep neural networks (DNNs) faster. However, choosing which GPU to use is challenging both because (i) there are many options, and (ii) users grapple with competing concerns: maximizing compute performance while minimizing costs.

Show full abstract

In this work, we present a new practical technique to help users make informed and cost-efficient GPU selections: make performance predictions with the help of a GPU that the user already has. Our technique exploits the observation that, because DNN training consists of repetitive compute steps, predicting the execution time of a single iteration is usually enough to characterize the performance of an entire training process. We make predictions by scaling the execution time of each operation in a training iteration from one GPU to another using either (i) wave scaling, a technique based on a GPU's execution model, or (ii) pre-trained multilayer perceptrons. We implement our technique into a Python library called Habitat and find that it makes accurate iteration execution time predictions (with an average error of 11.8%) on ResNet-50, Inception v3, the Transformer, GNMT, and DCGAN across six different GPU architectures. Habitat supports PyTorch, is easy to use, and is open source.

View on arXivView PDF

Code Implementations(1)

geoffxy/habitatOfficial100%
Apache-2.0

🔮 Execution time predictions for deep neural network training iterations across different GPUs.

6414Python, C++May 30, 20214 years agoApache-2.0
deep-learningdeep-neural-networksgpuneural-networksperformance+1 more

Similar Papers

Cite this paper

@article{yu2021runtimebased,
  title  = {A Runtime-Based Computational Performance Predictor for Deep Neural Network Training},
  author = {Geoffrey X. Yu and Yubo Gao and Pavel Golikov and Gennady Pekhimenko},
  year   = {2021},
  eprint = {2102.00527},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2102.00527}
}

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/2102.00527.svg)](https://codeofpaper.com/paper/2102.00527)

Discussion