DeadPool: 通过零开销检查点热替换实现弹性LLM训练
PHOENIX: Resilient LLM Training with Hot-Swapping via Zero-Overhead Checkpoint
AI总结:
提出DeadPool,利用非关键路径内存检查点和通信器重建协议实现零开销热替换,在无故障时无额外开销,故障时40秒内恢复,支持高达512 GPU和65B参数模型。
摘要:
最先进的大语言模型(LLM)训练需要数万个图形处理单元(GPU)运行数月,并遭遇软件和硬件栈中的各种故障。现有的容错机制要么在无故障执行期间引入非平凡开销,要么遭受较长的恢复延迟,特别是在少量计算节点发生永久性故障的场景下。我们提出DeadPool来同时解决这两个优化目标。DeadPool采用了一种通过热替换恢复LLM训练的容错机制,即用备用节点替换故障节点而无需终止整个作业。DeadPool的热替换由两个想法实现:首先,它利用非关键路径上的内存检查点机制实现空间冗余。其次,它引入了一个通信器重建协议,在运行时用备用节点替换故障节点。DeadPool有效地将内存检查点与计算重叠,从而在无错误执行期间引入零开销。在永久节点故障时,DeadPool可以通过利用内存检查点以最少的重新计算重建内存状态。我们在不同规模(最多512个NVIDIA A100 GPU)和LLM(最多65B参数)上评估了DeadPool,观察到零检查点开销,热替换恢复在40秒内完成。这些结果表明,DeadPool同时实现了零开销的无错误执行和极低的恢复成本。
英文摘要:
State-of-the-art large language model (LLM) training takes tens of thousands of graphics processing units (GPUs) for months and encounters failures across the software and hardware stack. Existing fault-tolerance mechanisms either impose non-trivial overhead during failure-free execution or suffer from prolonged recovery latency, particularly under scenarios where a small subset of compute nodes experience permanent failures. %The tradeoff between failure-free overhead and recovery latency forms a space forms a Pareto frontier We present PHOENIX to simultaneously address both optimization objectives. PHOENIX incorporates a fault-tolerance mechanism that restores LLM training via hot-swapping, namely by replacing failed nodes with spare nodes without terminating the complete job. The hot-swapping of PHOENIX is enabled by two ideas: First, it exploits an off-critical-path in-memory checkpointing mechanism for spatial redundancy. Second, it introduces a communicator reconstruction protocol that replaces failed nodes with spare nodes at runtime. PHOENIX efficiently overlaps the in-memory checkpointing with computation, thus introducing zero overhead during error-free execution. Upon permanent node failures, PHOENIX can rebuild memory states with minimal recomputation by leveraging in-memory checkpoints. We evaluate PHOENIX across scales (up to 512 NVIDIA A100 GPUs) and LLMs (up to 65B parameters), and observe zero checkpoint overhead with hot-swapping recovery completing in under 40 seconds. These results show that PHOENIX simultaneously achieves both zero-overhead error-free execution and extremely low recovery cost.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。