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

DataStates-LLM:使用可组合状态提供器实现Transformer模型的可扩展检查点

DataStates-LLM: Scalable Checkpointing for Transformer Models Using Composable State Providers

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

AI总结:

提出DataStates-LLM架构,通过状态提供器解耦状态抽象与数据移动,利用模型参数不变性实现惰性非阻塞异步快照,在256块A100 GPU上训练70B参数模型时,检查点吞吐量提升4倍,端到端训练时间减少2.2倍。

摘要:

基于大型Transformer模型(特别是大型语言模型,LLM)的快速增长,现已扩展到数万亿参数,需要使用复杂的混合并行策略(例如数据、张量和流水线并行)在数千个GPU上进行训练。检查点这种大规模分布式状态对于多种用例至关重要,例如弹性、暂停-恢复、调查不良训练轨迹以及解释模型演化。然而,现有的检查点解决方案通常将模型状态视为不透明的二进制大对象,忽略了底层数据结构的“3D异构性”——这些数据结构因内存位置(GPU与主机)、“逻辑”对象的分片和跨多个文件拆分、数据类型(张量与Python对象)及其序列化要求而异。这导致由于阻塞的设备到主机传输、数据无关的序列化和存储I/O争用而产生显著的运行时开销。在本文中,我们介绍了DataStates-LLM,一种新颖的检查点架构,它利用状态提供器将状态抽象与数据移动解耦。DataStates-LLM利用模型参数在前向和后向传递中的不变性来执行“惰性”、非阻塞的异步快照。通过引入状态提供器,我们有效地合并了碎片化的异构分片,并将元数据的序列化与批量张量I/O重叠。我们在256个A100-40GB GPU上对高达70B参数的模型进行了评估。结果表明,与最先进的解决方案相比,DataStates-LLM实现了高达4倍的检查点吞吐量提升,并将端到端训练时间减少了高达2.2倍,有效缓解了极端规模LLM训练中的序列化和异构性瓶颈。

英文摘要:

The rapid growth of Large Transformer-based models, specifically Large Language Models (LLMs), now scaling to trillions of parameters, has necessitated training across thousands of GPUs using complex hybrid parallelism strategies (e.g., data, tensor, and pipeline parallelism). Checkpointing this massive, distributed state is critical for a wide range of use cases, such as resilience, suspend-resume, investigating undesirable training trajectories, and explaining model evolution. However, existing checkpointing solutions typically treat model state as opaque binary blobs, ignoring the ``3D heterogeneity'' of the underlying data structures--varying by memory location (GPU vs. Host), number of ``logical'' objects sharded and split across multiple files, data types (tensors vs. Python objects), and their serialization requirements. This results in significant runtime overheads due to blocking device-to-host transfers, data-oblivious serialization, and storage I/O contention. In this paper, we introduce DataStates-LLM, a novel checkpointing architecture that leverages State Providers to decouple state abstraction from data movement. DataStates-LLM exploits the immutability of model parameters during the forward and backward passes to perform ``lazy'', non-blocking asynchronous snapshots. By introducing State Providers, we efficiently coalesce fragmented, heterogeneous shards and overlap the serialization of metadata with bulk tensor I/O. We evaluate DataStates-LLM on models up to 70B parameters on 256 A100-40GB GPUs. Our results demonstrate that DataStates-LLM achieves up to 4$\times$ higher checkpointing throughput and reduces end-to-end training time by up to 2.2$\times$ compared to state-of-the-art solutions, effectively mitigating the serialization and heterogeneity bottlenecks in extreme-scale LLM training.

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

↑