MLP-Offload:面向大语言模型预训练的多级多路径卸载以突破GPU内存墙
MLP-Offload: Multi-Level, Multi-Path Offloading for LLM Pre-training to Break the GPU Memory Wall
AI总结:
针对大语言模型预训练中GPU内存不足、现有卸载技术I/O开销大的问题,提出MLP-Offload多级多路径卸载引擎,通过跨层高效卸载优化器状态缓解I/O瓶颈,280B参数模型下迭代速度达前沿方案的2.5倍。
摘要:
由于大语言模型(LLM)规模的增长速度快于GPU内存的增长速度,训练规模超过多块GPU聚合内存的LLM变得愈发必要。为此,现有前沿技术提出了多层主机内存或磁盘卸载技术。尽管采用了先进的异步多层读写策略,这类卸载策略仍会在训练的关键路径上产生显著的I/O开销,导致迭代速度变慢。针对这一问题,我们提出MLP-Offload,这是一种新颖的多级多路径卸载引擎,专门用于在资源受限的配置下优化LLM训练,缓解I/O瓶颈。我们得出了几个推动MLP-Offload设计的关键观察结论,例如:参数更新阶段的I/O开销在迭代时间中占主导地位;第三级远程存储层的I/O带宽未被利用;并发卸载导致的争用会放大I/O瓶颈。基于这些见解,我们设计并实现了MLP-Offload,以缓存高效且并发受控的方式跨多层卸载优化器状态,从而缓解反向传播和参数更新阶段的I/O瓶颈。在参数量高达280B的模型上进行的评估表明,与前沿的LLM训练运行时相比,MLP-Offload的迭代速度提升了2.5倍。
英文摘要:
Training LLMs larger than the aggregated memory of multiple GPUs is increasingly necessary due to the faster growth of LLM sizes compared to GPU memory. To this end, multi-tier host memory or disk offloading techniques are proposed by state of art. Despite advanced asynchronous multi-tier read/write strategies, such offloading strategies result in significant I/O overheads in the critical path of training, resulting in slower iterations. To this end, we propose MLP-Offload, a novel multi-level, multi-path offloading engine specifically designed for optimizing LLM training on resource-constrained setups by mitigating I/O bottlenecks. We make several key observations that drive the design of MLP-Offload, such as I/O overheads during the update dominate the iteration time; I/O bandwidth of the third-level remote storage tier remains unutilized; and, contention due to concurrent offloading amplifies I/O bottlenecks. Driven by these insights, we design and implement MLP-Offload to offload the optimizer states across multiple tiers in a cache-efficient and concurrency-controlled fashion to mitigate I/O bottlenecks during the backward and update phases. Evaluations on models up to 280B parameters shows that MLP-Offload achieves 2.5$\times$ faster iterations compared to the state-of-the-art LLM training runtimes.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。