What Language Model to Train if You Have One Million GPU Hours?

Teven Le Scao, Thomas Wang, Daniel Hesslow, Lucile Saulnier, Stas Bekman +14 more
10/27/2022
cs.CLcs.AIcs.LG
transformer-attention

Official code: bigscience-workshop/Megatron-DeepSpeed (1,449 stars, Python, last commit 2024-03-20).

Abstract

The crystallization of modeling methods around the Transformer architecture has been a boon for practitioners. Simple, well-motivated architectural variations can transfer across tasks and scale, increasing the impact of modeling research.

Show full abstract

However, with the emergence of state-of-the-art 100B+ parameters models, large language models are increasingly expensive to accurately design and train. Notably, it can be difficult to evaluate how modeling decisions may impact emergent capabilities, given that these capabilities arise mainly from sheer scale alone. In the process of building BLOOM--the Big Science Large Open-science Open-access Multilingual language model--our goal is to identify an architecture and training setup that makes the best use of our 1,000,000 A100-GPU-hours budget. Specifically, we perform an ablation study at the billion-parameter scale comparing different modeling practices and their impact on zero-shot generalization. In addition, we study the impact of various popular pre-training corpora on zero-shot generalization. We also study the performance of a multilingual model and how it compares to the English-only one. Finally, we consider the scaling behaviour of Transformers to choose the target model size, shape, and training setup. All our models and code are open-sourced at https://huggingface.co/bigscience .

View on arXivView PDF

Code Implementations(1)

Ongoing research training transformer language models at scale, including: BERT & GPT-2

1,449225Python, C++Jul 2, 20212 years agoNOASSERTION

Similar Papers

Cite this paper

@article{scao2022what,
  title  = {What Language Model to Train if You Have One Million GPU Hours?},
  author = {Teven Le Scao and Thomas Wang and Daniel Hesslow and Lucile Saulnier and Stas Bekman and M Saiful Bari and Stella Biderman and Hady Elsahar and Niklas Muennighoff and Jason Phang and Ofir Press and Colin Raffel and Victor Sanh and Sheng Shen and Lintang Sutawika and Jaesung Tae and Zheng Xin Yong and Julien Launay and Iz Beltagy},
  year   = {2022},
  eprint = {2210.15424},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.15424}
}

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

Discussion