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

FlashRecovery:面向大语言模型大规模训练的快速低成本故障恢复方法

FlashRecovery: Fast and Low-Cost Recovery from Failures for Large-Scale Training of LLMs

iFLYTEK AI Engineering Institute(iFLYTEK人工智能工程研究院);University of Science and Technology of China(中国科学技术大学);Huawei Technologies Co., Ltd(华为技术有限公司)
Haijun Zhang, Jinxiang Wang, Zhenhua Yu, Yanyong Zhang, Xuejie Ji, Kaining Mao, Jun Zhang, Yaqing Zhang, Ting Wu, Fei Jie, Xiemin Huang, Zhifang Cai, Junhua Che… 展开作者

Haijun Zhang, Jinxiang Wang, Zhenhua Yu, Yanyong Zhang, Xuejie Ji, Kaining Mao, Jun Zhang, Yaqing Zhang, Ting Wu, Fei Jie, Xiemin Huang, Zhifang Cai, Junhua Cheng, Shuwei Wang, Wei Li, Xiaoming Bao, Hua Xu, Shixiong Zhao, Jun Li, Hongwei Sun, Ziyang Zhang, Yi Xiong, Chunsheng Li

AI总结:

针对大语言模型大规模训练中软硬件故障导致训练时间损失的问题,提出含主动实时故障检测、规模无关任务重启、单步无检查点恢复的FlashRecovery系统,实现快速低成本故障恢复,提升训练可靠性与效率。

摘要:

大语言模型(LLMs)凭借其先进能力在各领域产生了深远影响。然而,以前所未有的规模训练这些模型需要庞大的AI加速器集群和复杂的并行策略,这给长时间训练过程中的系统可靠性维持带来了巨大挑战。一个核心问题是不可避免的软硬件故障会导致大量训练时间损失。为应对这些挑战,我们提出FlashRecovery——一种快速低成本的故障恢复系统,包含三个核心模块:(1)主动实时故障检测。该模块持续监控训练状态,能在数秒内立即识别软硬件故障,确保快速事件响应;(2)与规模无关的任务重启。通过对正常节点和故障节点采用不同恢复策略,结合优化的通信组重构协议,我们的方法确保恢复时间几乎保持恒定,不受集群规模影响;(3)单步内无检查点恢复。我们提出的新型恢复机制可实现单步恢复,完全消除了对传统检查点方法及其相关开销的依赖。这些创新共同使FlashRecovery实现了最优的恢复时间目标(RTO)和恢复点目标(RPO),大幅提升了LLM长时间训练的可靠性和效率。实验结果表明,FlashRecovery系统可在150秒内完成4800台设备组成的训练集群的训练恢复。我们还验证了,对于不同规模的训练任务,故障恢复所需时间几乎一致。

英文摘要:

Large language models (LLMs) have made a profound impact across various fields due to their advanced capabilities. However, training these models at unprecedented scales requires extensive AI accelerator clusters and sophisticated parallelism strategies, which pose significant challenges in maintaining system reliability over prolonged training periods. A major concern is the substantial loss of training time caused by inevitable hardware and software failures. To address these challenges, we present FlashRecovery, a fast and low-cost failure recovery system comprising three core modules: (1) Active and real-time failure detection. This module performs continuous training state monitoring, enabling immediate identification of hardware and software failures within seconds, thus ensuring rapid incident response; (2) Scale-independent task restart. By employing different recovery strategies for normal and faulty nodes, combined with an optimized communication group reconstruction protocol, our approach ensures that the recovery time remains nearly constant, regardless of cluster scale; (3) Checkpoint-free recovery within one step. Our novel recovery mechanism enables single-step restoration, completely eliminating dependence on traditional checkpointing methods and their associated overhead. Collectively, these innovations enable FlashRecovery to achieve optimal Recovery Time Objective (RTO) and Recovery Point Objective (RPO), substantially improving the reliability and efficiency of long-duration LLM training. Experimental results demonstrate that FlashRecovery system can achieve training restoration on training cluster with 4, 800 devices in 150 seconds. We also verify that the time required for failure recovery is nearly consistent for different scales of training tasks.

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

↑