LiveR: 通过活体重新配置实现细粒度弹性
LiveR: Fine-Grained Elasticity via Live Reconfiguration for Model Training
AI总结:
LiveR通过活体重新配置技术,解决了大规模模型训练中因资源波动导致的停机问题,显著减少了停机时间并提高了资源利用率。
摘要:
为了减少用户成本并最大化集群利用率,大规模模型训练越来越多地利用价格低廉但易失的GPU资源,如spot实例和共享集群中的可回收资源。然而,要充分利用这些经济优势,作业必须在这些环境提供的较短警告窗口内进行适应。现有的弹性训练系统仍将重新配置视为停止和重新启动:它们通过检查点外部化分布式状态,重新构建分布式运行时并在新拓扑上重建,然后重新启动训练,将每次调整事件转化为存储密集型的恢复过程,导致显著的停机时间。我们提出了LiveR,一种用于弹性大语言模型训练的活体重新配置运行时,它用混合并行训练世界之间的活体、有限内存交接取代存储驱动的重启。在当前世界继续训练的同时,LiveR异步准备目标世界,孤立启动新添加的工作者以保持重型初始化不在关键路径上,并通过高速带宽互连流式传输模型状态,同时在张量、流水线和数据并行维度上在线重塑它。一旦目标世界准备就绪,LiveR执行轻量级提交,切换训练到新配置而无需在活体路径上停止和重新启动。我们基于Megatron-LM和PyTorch实现了LiveR,并在多节点GPU集群上进行了端到端评估。在多样化的重新配置场景中,LiveR将停机时间从分钟减少到秒,比检查点/重启基线加速了14倍至23倍,产生了极小的稳态开销,并在易失性资源条件下维持高达99%的训练吞吐量,使低成本易失性GPU资源对大语言模型训练更加实用。
英文摘要:
To reduce user costs and maximize cluster utilization, large model training increasingly leverages volatile but inexpensive GPU capacity, such as spot instances and reclaimable resources in shared clusters. Yet, capitalizing on these economic benefits requires jobs to adapt within the short warning windows that many such environments provide. Existing elastic training systems still treat reconfiguration as stop-and-restart: they externalize distributed state through checkpoints, rebuild the distributed runtime on a new topology, and restart training, turning each resize event into a storage-heavy recovery procedure that incurs substantial downtime from checkpoint I/O, process restart, CUDA initialization, and communicator setup. We present LiveR, a live reconfiguration runtime for elastic LLM training that replaces storage-backed restart with a live, bounded-memory handoff between mixed-parallel training worlds. While the current world continues training, LiveR asynchronously prepares the target world, bootstraps newly added workers in isolation to keep heavyweight initialization off the critical path, and streams model state directly over high-bandwidth interconnects while reshaping it online across tensor, pipeline, and data parallel dimensions. Once the target world is ready, LiveR performs a lightweight commit that switches training to the new configuration without stop-and-restart on the live path. We implement LiveR atop Megatron-LM and PyTorch and evaluate it end-to-end on a multi-node GPU cluster. Across diverse reconfiguration scenarios, LiveR reduces downtime from minutes to seconds, accelerates reconfiguration by 14$\times$-23$\times$ over checkpoint/restart baselines, incurs minimal steady-state overhead, and sustains up to 99% training goodput under volatile-resource conditions, making volatile low-cost GPU capacity far more practical for LLM training.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。