The Case for Co-Designing Model Architectures with Hardware

Quentin Anthony, Jacob Hatef, Deepak Narayanan, Stella Biderman, Stas Bekman +4 more
1/25/2024
cs.DCcs.AI

No official code found. Best implementation: EleutherAI/gpt-neox (7,470 stars, Apache-2.0, last commit 2026-04-13). 1 more below.

Abstract

While GPUs are responsible for training the vast majority of state-of-the-art deep learning models, the implications of their architecture are often overlooked when designing new deep learning (DL) models. As a consequence, modifying a DL model to be more amenable to the target hardware can significantly improve the runtime performance of DL training and inference. In this paper, we provide a set of guidelines for users to maximize the runtime performance of their transformer models. These guidelines have been created by carefully considering the impact of various model hyperparameters controlling model shape on the efficiency of the underlying computation kernels executed on the GPU. We find the throughput of models with efficient model shapes is up to 39\% higher while preserving accuracy compared to models with a similar number of parameters but with unoptimized shapes.

View on arXivView PDF

Code Implementations(2)

EleutherAI/gpt-neoxCommunity100%
Apache-2.0

An implementation of model parallel autoregressive transformers on GPUs, based on the Megatron and DeepSpeed libraries

7,4701,127C, C++Dec 22, 20206 months agoApache-2.0
deepspeed-librarygpt-3language-modeltransformers
Apache-2.0

Analyzes transformer model architectures for GPU hardware efficiency to identify dimension misalignments that waste GPU resources and provides optimization suggestions that can improve performance. Based on "The Case for Co-Designing Model Architectures with Hardware" (Anthony et al., 2024)

10Mar 2, 20251 years agoApache-2.0

Similar Papers

Cite this paper

@article{anthony2024case,
  title  = {The Case for Co-Designing Model Architectures with Hardware},
  author = {Quentin Anthony and Jacob Hatef and Deepak Narayanan and Stella Biderman and Stas Bekman and Junqi Yin and Aamir Shafi and Hari Subramoni and Dhabaleswar Panda},
  year   = {2024},
  eprint = {2401.14489},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2401.14489v2}
}

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

Discussion