跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 计算与语言

arXiv:2110.05722 (cs)
[提交于 2021年10月12日 (v1),最后修订于 2022年6月16日 (此版本, v3)]

标题:LightSeq2: Accelerated Training for Transformer-based Models on GPUs

作者:Xiaohui Wang, Yang Wei, Ying Xiong, Guyue Huang, Xian Qian, Yufei Ding, Mingxuan Wang, Lei Li
查看论文《LightSeq2: Accelerated Training for Transformer-based Models on GPUs》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Transformer-based neural models are used in many AI applications. Training these models is expensive, as it takes huge GPU resources and long duration. It is challenging because typical data like sentences have variable lengths, and Transformer's computation patterns are more complex than convolutional neural networks. Existing systems either only focus on model inference or optimization for only BERT-like encoder models. In this paper, we present LightSeq2, a system to accelerate training for a general family of Transformer models on GPUs. We propose a series of GPU optimization techniques tailored to the specific computation flow and memory access patterns of Transformer models. LightSeq2 supports many model architectures, including BERT (encoder-only), GPT (decoder-only), Transformer (encoder-decoder), and vision Transformer. Our experiments for a variety of models and benchmarks show that LightSeq2 is consistently faster (1.4-3.5x) than previous systems on different GPUs. In particular, it gains 308% training speedup compared with existing systems on a large public machine translation benchmark (WMT14 English-German).
评论: 13 pages, 22 figures, accepted by SC 22
主题: 计算与语言 (cs.CL); 数学软件 (cs.MS)
引用方式: arXiv:2110.05722 [cs.CL]
  (或者 arXiv:2110.05722v3 [cs.CL] 对于此版本)
  https://doi.org/10.48550/arXiv.2110.05722

提交历史

来自:Yang Wei
[v1] 2021年10月12日 星期二 03:17:03 UTC
[v2] 2021年10月27日 星期三 05:48:24 UTC
[v3] 2022年6月16日 星期四 11:29:37 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs
< 上一篇   |   下一篇 >
最新 | 近期 | 2022-06
切换浏览方式为:
cs.CL
cs.MS

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站