Training Large Language Models Efficiently with Sparsity and Dataflow

Venkat Srinivasan, Darshan Gandhi, Urmish Thakker, Raghu Prabhakar
4/11/2023
cs.LG

No confident code implementation found for this paper.

Abstract

Large foundation language models have shown their versatility in being able to be adapted to perform a wide variety of downstream tasks, such as text generation, sentiment analysis, semantic search etc. However, training such large foundational models is a non-trivial exercise that requires a significant amount of compute power and expertise from machine learning and systems experts. As models get larger, these demands are only increasing. Sparsity is a promising technique to relieve the compute requirements for training. However, sparsity introduces new challenges in training the sparse model to the same quality as the dense counterparts. Furthermore, sparsity drops the operation intensity and introduces irregular memory access patterns that makes it challenging to efficiently utilize compute resources. This paper demonstrates an end-to-end training flow on a large language model - 13 billion GPT - using sparsity and dataflow. The dataflow execution model and architecture enables efficient on-chip irregular memory accesses as well as native kernel fusion and pipelined parallelism that helps recover device utilization. We show that we can successfully train GPT 13B to the same quality as the dense GPT 13B model, while achieving an end-end speedup of 4.5x over dense A100 baseline.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{srinivasan2023training,
  title  = {Training Large Language Models Efficiently with Sparsity and Dataflow},
  author = {Venkat Srinivasan and Darshan Gandhi and Urmish Thakker and Raghu Prabhakar},
  year   = {2023},
  eprint = {2304.05511},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2304.05511v1}
}

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

Discussion