arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.00273cs.LGcs.DC
收藏

基础模型的综合性能建模与系统设计洞察

Comprehensive Performance Modeling and System Design Insights for Foundation Models

Lawrence Berkeley National Laboratory(劳伦斯伯克利国家实验室);Stony Brook University(石溪大学)

Shashank Subramanian, Ermal Rrapaj, Peter Harrington, Smeet Chheda, Steven Farrell, Brian Austin, Samuel Williams, Nicholas Wright, Wahid Bhimji

AI总结:

本文通过性能建模分析不同transformer类型对并行策略和HPC系统特征的敏感性,揭示LLM适合3D并行而长序列科学基础模型需4D并行,为系统设计提供指导。

摘要:

生成式人工智能,特别是大型transformer模型,正日益推动科学和工业领域的高性能计算(HPC)系统设计。我们分析了此类transformer模型的性能特征,并讨论了它们对transformer类型、并行化策略以及HPC系统特征(加速器和互连)的敏感性。我们利用一个性能模型来探索这一复杂的设计空间,并突出其关键组成部分。我们发现,不同的transformer类型在不同的训练阶段需要不同的并行方式和系统特征。大型语言模型在采用3D并行时表现出色,仅在预训练规模下才放大网络需求,同时对加速器容量和带宽的依赖降低。另一方面,以科学基础模型为代表的长序列transformer对网络和容量表现出更均匀的依赖,并需要4D并行。我们的分析强调,需要在考虑系统特征的同时对不同transformer类型进行更精细的性能建模,并展示了实现这一目标的路径。我们的代码以开源形式提供。

英文摘要:

Generative AI, in particular large transformer models, are increasingly driving HPC system design in science and industry. We analyze performance characteristics of such transformer models and discuss their sensitivity to the transformer type, parallelization strategy, and HPC system features (accelerators and interconnects). We utilize a performance model that allows us to explore this complex design space and highlight its key components. We find that different transformer types demand different parallelism and system characteristics at different training regimes. Large Language Models are performant with 3D parallelism and amplify network needs only at pre-training scales with reduced dependence on accelerator capacity and bandwidth. On the other hand, long-sequence transformers, representative of scientific foundation models, place a more uniform dependence on network and capacity with necessary 4D parallelism. Our analysis emphasizes the need for closer performance modeling of different transformer types keeping system features in mind and demonstrates a path towards this. Our code is available as open-source.

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

↑