通过时间感知的流水线并行提升大语言模型训练的内存效率
Enhancing Memory Efficiency in Large Language Model Training Through Chronos-aware Pipeline Parallelism
AI总结:
针对LLM预训练的存储挑战,提出时间感知的流水线并行方法ChronosPipe,通过优化时间局部性提升HBM利用率,可将可训练模型规模扩大2.4倍且保持吞吐量,性能优于1F1B结合重计算策略1.5倍。
摘要:
更大的模型规模和更长的序列长度使大语言模型(LLM)在各领域取得卓越性能,但这为LLM预训练带来了显著的存储容量挑战。高带宽内存(HBM)成本高昂,且容量扩展需更先进的封装技术,因此迫切需要内存高效的调度策略。然而,现有流水线并行调度主要聚焦于减少气泡开销,常忽视内存效率且缺乏与其他内存高效策略的兼容性,导致难以满足下一代LLM的存储需求。本工作提出ChronosPipe,一种时间感知的流水线并行方法,用于内存高效的LLM预训练。其核心思路是将HBM视为快速但小容量的“缓存”,通过优化和利用LLM预训练中的时间局部性提升HBM利用率。ChronosPipe引入Chronos-Pipe调度策略以减少破坏激活时间局部性的外在开销,还利用Chronos-Recomp和Chronos-Offload高效利用深度神经网络中激活和权重的内在时间局部性。实验结果表明,ChronosPipe可将可训练模型规模扩大2.4倍,同时保持相当的吞吐量,性能比结合重计算的1F1B策略高1.5倍。
英文摘要:
Larger model sizes and longer sequence lengths have empowered the Large Language Model (LLM) to achieve outstanding performance across various domains. However, this progress brings significant storage capacity challenges for LLM pretraining. High Bandwidth Memory (HBM) is expensive and requires more advanced packaging technologies for capacity expansion, creating an urgent need for memory-efficient scheduling strategies. Yet, prior pipeline parallelism schedules have primarily focused on reducing bubble overhead, often neglecting memory efficiency and lacking compatibility with other memory-efficient strategies. Consequently, these methods struggle to meet the storage demands of storage capacity for next-generation LLM. This work presents ChronosPipe, a Chronos-aware pipeline parallelism for memory-efficient LLM pretraining. The core insight of ChronosPipe is to treat HBM as a fast but small 'cache,' optimizing and exploiting temporal locality within LLM pretraining to enhance HBM utilization. ChronosPipe introduces a pipeline scheduling strategy, Chronos-Pipe, to reduce the extrinsic overhead that disrupts the temporal locality of activations. Additionally, it leverages Chronos-Recomp and Chronos-Offload to efficiently harness the intrinsic temporal locality of activations and weights in Deep Neural Networks. Experiment results show that ChronosPipe can expand the trainable model size by 2.4x while maintaining comparable throughput, achieving 1.5x better than the 1F1B strategy combined with recomputation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。