arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.10707cs.DCcs.LG
收藏

DataStates-LLM:面向大语言模型的惰性异步检查点

DataStates-LLM: Lazy Asynchronous Checkpointing for Large Language Models

Rochester Institute of Technology(罗切斯特理工学院);Argonne National Laboratory(阿贡国家实验室)

Avinash Maurya, Robert Underwood, M. Mustafa Rafique, Franck Cappello, Bogdan Nicolae

AI总结:

本文提出 DataStates-LLM 惰性异步多级检查点方法,利用模型与优化器状态张量的不可变期后台复制,在最高 180 GPU 上实现高频低干扰检查点,速度最高提升 48 倍、端到端训练提升 2.2 倍。

摘要:

大语言模型(LLM)已在所有领域得到快速采用。它们需要在高端高性能计算(HPC)基础设施上进行训练,并摄取海量输入数据。毫不奇怪,在如此大的规模下,意外事件(例如组件故障、软件不稳定、不良学习模式等)十分频繁,并且通常会对训练产生负面影响。因此,LLM 需要频繁进行检查点保存,以便能够回滚到稳定状态并随后进行微调。然而,鉴于 LLM 的庞大体积,直接将模型参数和优化器状态写入持久化存储(例如并行文件系统)的简单检查点方案会产生显著的 I/O 开销。为应对这一挑战,本文研究如何降低 I/O 开销,以实现快速、可扩展的 LLM 检查点,使其能够以高频率(最高可细化到单次迭代的粒度)应用,而不会对训练过程造成显著影响。具体而言,我们提出一种惰性异步多级方法,该方法利用了构成模型和优化器状态分片的张量在较长时间内保持不可变这一事实,从而可以在后台复制其内容,并在训练过程中产生最小干扰。我们使用不同的模型规模、并行设置和检查点频率,在最多 180 个 GPU 的规模上评估了我们的方法。结果表明,与最先进的检查点方法相比,检查点速度最高提升 48 倍,端到端训练运行速度提升 2.2 倍。

英文摘要:

LLMs have seen rapid adoption in all domains. They need to be trained on high-end high-performance computing (HPC) infrastructures and ingest massive amounts of input data. Unsurprisingly, at such a large scale, unexpected events (e.g., failures of components, instability of the software, undesirable learning patterns, etc.), are frequent and typically impact the training in a negative fashion. Thus, LLMs need to be checkpointed frequently so that they can be rolled back to a stable state and subsequently fine-tuned. However, given the large sizes of LLMs, a straightforward checkpointing solution that directly writes the model parameters and optimizer state to persistent storage (e.g., a parallel file system), incurs significant I/O overheads. To address this challenge, in this paper we study how to reduce the I/O overheads for enabling fast and scalable checkpointing for LLMs that can be applied at high frequency (up to the granularity of individual iterations) without significant impact on the training process. Specifically, we introduce a lazy asynchronous multi-level approach that takes advantage of the fact that the tensors making up the model and optimizer state shards remain immutable for extended periods of time, which makes it possible to copy their content in the background with minimal interference during the training process. We evaluate our approach at scales of up to 180 GPUs using different model sizes, parallelism settings, and checkpointing frequencies. The results show up to 48$\times$ faster checkpointing and 2.2$\times$ faster end-to-end training runtime compared with the state-of-art checkpointing approaches.

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

↑