arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2111.05972cs.LGcs.AIcs.DC
收藏

Amazon SageMaker Model Parallelism:一个通用灵活的大型模型训练框架

Amazon SageMaker Model Parallelism: A General and Flexible Framework for Large Model Training

Can Karakus, Rahul Huilgol, Fei Wu, Anirudh Subramanian, Cade Daniel, Derya Cavdar, Teng Xu, Haohan Chen, Arash Rahnama, Luis Quintela

摘要:

随着深度学习模型规模的快速增长,需要用于大模型训练的系统级解决方案。我们介绍了Amazon SageMaker模型并行,这是一个与PyTorch集成的软件库,可以使用模型并行和其他节省内存的功能轻松训练大型模型。与现有的解决方案相比,SageMaker库的实现更加通用和灵活,因为它可以以最小的代码更改在任意模型架构上自动分区和运行流水线并行,并且还为张量并行提供了通用和可扩展的框架,该框架支持更广泛的用例,并且足够模块化以易于应用于新的训练脚本。该库还在更大程度上保留了原生PyTorch用户体验,支持模块重用和动态图,同时让用户完全控制训练步骤的细节。我们评估了GPT-3,RoBERTa,BERT和神经协同过滤的性能,并展示了与现有解决方案相比的竞争性能。

英文摘要:

With deep learning models rapidly growing in size, systems-level solutions for large-model training are required. We present Amazon SageMaker model parallelism, a software library that integrates with PyTorch, and enables easy training of large models using model parallelism and other memory-saving features. In contrast to existing solutions, the implementation of the SageMaker library is much more generic and flexible, in that it can automatically partition and run pipeline parallelism over arbitrary model architectures with minimal code change, and also offers a general and extensible framework for tensor parallelism, which supports a wider range of use cases, and is modular enough to be easily applied to new training scripts. The library also preserves the native PyTorch user experience to a much larger degree, supporting module re-use and dynamic graphs, while giving the user full control over the details of the training step. We evaluate performance over GPT-3, RoBERTa, BERT, and neural collaborative filtering, and demonstrate competitive performance over existing solutions.

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

↑