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

大型语言模型在 Habana Gaudi 处理器上的基准测试与深入性能研究

Benchmarking and In-depth Performance Study of Large Language Models on Habana Gaudi Processors

Indiana University(印第安纳大学);Stevens Institute of Technology(史蒂文斯理工学院);Argonne National Lab(阿贡国家实验室)

Chengming Zhang, Baixi Sun, Xiaodong Yu, Zhen Xie, Weijian Zheng, Kamil Iskra, Pete Beckman, Dingwen Tao

AI总结:

本文通过剖析与优化 MME/TPC、长序列性能及两个 LLM 的端到端表现,系统评估 Habana GAUDI 加速 Transformer 训练的能力。

摘要:

Transformer 模型已在各类机器学习任务中取得显著成功,但面临较高的计算复杂度和资源需求。自注意力机制的二次复杂度在处理长序列和大型数据集时进一步加剧了这些挑战。专用 AI 硬件加速器(例如 Habana GAUDI 架构)为应对这些问题提供了一种有前景的解决方案。GAUDI 具有矩阵乘法引擎(MME)和一组完全可编程的张量处理核(TPC)。本文探索了使用 GAUDI 处理器加速基于 Transformer 的模型尚未开发的潜力,并解决该过程中的关键挑战。首先,我们对 MME 与 TPC 组件进行了全面的性能比较,阐明它们相对的优势和弱点。其次,我们探索优化 MME 和 TPC 利用率的策略,提供提升计算效率的实用见解。第三,我们评估 Transformer 在 GAUDI 上的性能,尤其是在处理长序列方面,并揭示性能瓶颈。最后,我们评估两个基于 Transformer 的大型语言模型(LLM)在 GAUDI 上的端到端性能。本工作的贡献包含面向从业者和研究人员的实用见解。我们通过系统化的性能剖析、分析和优化探索,深入研究 GAUDI 对 Transformer 的支持能力。本研究弥合了一项研究空白,并为在 GAUDI 架构上优化基于 Transformer 的模型训练提供了路线图。

英文摘要:

Transformer models have achieved remarkable success in various machine learning tasks but suffer from high computational complexity and resource requirements. The quadratic complexity of the self-attention mechanism further exacerbates these challenges when dealing with long sequences and large datasets. Specialized AI hardware accelerators, such as the Habana GAUDI architecture, offer a promising solution to tackle these issues. GAUDI features a Matrix Multiplication Engine (MME) and a cluster of fully programmable Tensor Processing Cores (TPC). This paper explores the untapped potential of using GAUDI processors to accelerate Transformer-based models, addressing key challenges in the process. Firstly, we provide a comprehensive performance comparison between the MME and TPC components, illuminating their relative strengths and weaknesses. Secondly, we explore strategies to optimize MME and TPC utilization, offering practical insights to enhance computational efficiency. Thirdly, we evaluate the performance of Transformers on GAUDI, particularly in handling long sequences and uncovering performance bottlenecks. Lastly, we evaluate the end-to-end performance of two Transformer-based large language models (LLM) on GAUDI. The contributions of this work encompass practical insights for practitioners and researchers alike. We delve into GAUDI's capabilities for Transformers through systematic profiling, analysis, and optimization exploration. Our study bridges a research gap and offers a roadmap for optimizing Transformer-based model training on the GAUDI architecture.

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

↑