arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.08334cs.DCcs.AIcs.LGcs.PF
收藏

ProTrain: 通过内存感知技术实现高效的LLM训练

ProTrain: Efficient LLM Training via Memory-Aware Techniques

University of Massachusetts Amherst(马萨诸塞大学阿默斯特分校);Advanced Micro Devices, Inc.(先进微器件公司)

Hanmei Yang, Jin Zhou, Yao Fu, Xiaoqun Wang, Ramine Roane, Hui Guan, Tongping Liu

AI总结:

本文提出ProTrain系统,通过自动调整内存管理策略提升LLM训练效率,无需人工干预,实验显示训练吞吐量提升1.43至2.71倍。

摘要:

内存压力已成为扩展大型语言模型(LLM)训练的主要制约因素,特别是在资源受限环境中。尽管现代框架集成了多种内存节省技术,但它们通常暴露了需要手动调优和专业系统知识的低级配置参数。这不仅增加了工程开销,而且在配置错误时还可能造成硬件利用率低下。本文介绍了ProTrain,一种新的训练系统,能够自动根据模型架构和底层硬件资源调整内存管理策略,从而消除手动干预的需要。ProTrain的核心是其自动内存管理,将复杂的内存管理策略抽象为几个可调的配置参数,允许使用成本模型搜索最优参数设置。ProTrain配备了运行时分析器,可提供精确的延迟、内存使用和I/O带宽估计,以构建高保真的成本模型。ProTrain不改变训练算法,因此不损害准确性。实验显示,与最先进的训练系统相比,ProTrain将训练吞吐量提高了1.43倍至2.71倍。

英文摘要:

Memory pressure has emerged as a dominant constraint in scaling the training of large language models (LLMs), particularly in resource-constrained environments. While modern frameworks incorporate various memory-saving techniques, they often expose low-level configuration knobs that require manual tuning and specialized system expertise. This not only adds engineering overhead but also risks suboptimal hardware utilization when misconfigured. This paper introduces ProTrain, a novel training system that automatically tailors memory management policies to the model architecture and underlying hardware resources, eliminating the need for manual intervention. The core of ProTrain is its automated memory management that abstracts complex memory management strategies into a few tunable configuration parameters, allowing searches for optimal parameter settings using cost models. ProTrain is equipped with a runtime profiler that provides precise estimates of latency, memory usage, and I/O bandwidth to build high-fidelity cost models. ProTrain does not change the training algorithm and thus does not compromise accuracy. Experiments show that ProTrain improves training throughput by 1.43$\times$ to 2.71$\times$ compared to the state-of-the-art training systems.

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

↑