English

TorchScale: Transformers at Scale

Machine Learning 2022-11-24 v1 Computation and Language

Abstract

Large Transformers have achieved state-of-the-art performance across many tasks. Most open-source libraries on scaling Transformers focus on improving training or inference with better parallelization. In this work, we present TorchScale, an open-source toolkit that allows researchers and developers to scale up Transformers efficiently and effectively. TorchScale has the implementation of several modeling techniques, which can improve modeling generality and capability, as well as training stability and efficiency. Experimental results on language modeling and neural machine translation demonstrate that TorchScale can successfully scale Transformers to different sizes without tears. The library is available at https://aka.ms/torchscale.

Keywords

Cite

@article{arxiv.2211.13184,
  title  = {TorchScale: Transformers at Scale},
  author = {Shuming Ma and Hongyu Wang and Shaohan Huang and Wenhui Wang and Zewen Chi and Li Dong and Alon Benhaim and Barun Patra and Vishrav Chaudhary and Xia Song and Furu Wei},
  journal= {arXiv preprint arXiv:2211.13184},
  year   = {2022}
}

Comments

Work in progress

R2 v1 2026-06-28T06:42:14.203Z