arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2304.05511cs.LG
收藏

利用稀疏性与数据流高效训练大型语言模型

Training Large Language Models Efficiently with Sparsity and Dataflow

SambaNova Systems Inc.(桑巴诺瓦系统公司)

Venkat Srinivasan, Darshan Gandhi, Urmish Thakker, Raghu Prabhakar

AI总结:

本文针对大型语言模型训练算力需求高的问题,提出结合稀疏性与数据流的端到端训练方法,在130亿参数GPT上实现与稠密模型同等质量,并获得4.5倍端到端加速。

摘要:

大型基础语言模型已展现出其多功能性,能够被适配用于执行各种下游任务,例如文本生成、情感分析、语义搜索等。然而,训练此类大型基础模型并非易事,需要大量的计算能力以及机器学习与系统专家的专业知识。随着模型规模不断增大,这些需求只增不减。稀疏性是缓解训练计算需求的一项颇具前景的技术。然而,稀疏性在将稀疏模型训练至与稠密对应模型相同质量方面带来了新的挑战。此外,稀疏性降低了操作强度,并引入了不规则的内存访问模式,这使得高效利用计算资源变得困难。本文展示了一种在大型语言模型——130亿参数GPT——上使用稀疏性和数据流的端到端训练流程。该数据流执行模型与架构能够实现高效的片上不规则内存访问,以及原生内核融合和流水线并行,从而有助于恢复设备利用率。我们表明,我们能够成功地将GPT 13B训练至与稠密GPT 13B模型相同的质量,同时相较于稠密A100基线实现了4.5倍的端到端加速。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑