TrainMover: An Interruption-Resilient and Reliable ML Training Runtime

ChonLam Lao, Mingchuan Yu, Aditya Akella, Jiamin Cao, Yu Guan, Pengcheng Zhang, Zhilong Zheng, Yichi Xu, Ennan Zhai, Dennis Cai, Jiaqi Gao · DOI

Abstract

Large-scale ML training jobs are frequently interrupted by hardware and software anomalies, failures, and management events. Existing solutions like checkpointing or runtime reconfiguration suffer from long downtimes, degraded performance, or undesired changes to training strategies. We present TrainMover, a resilient runtime that leverages standby machines to handle interruptions with minimal downtime and zero memory overhead. To achieve these goals, TrainMover introduces two key techniques: two-phase, delta-based communication group setups and communication-free sandboxed shadow iterations. Our evaluation shows that TrainMover consistently achieves second-level downtime across all evaluated models during migration, maintaining 99% training efficiency during periodic 10-minute rebalancing.

Introduction

Training Large Language Models (LLMs) is a resource-intensive marathon, often spanning thousands of GPUs for months. At this scale, interruptions—whether from hardware failures, software glitches, or cluster maintenance—are a mathematical certainty. The current industry standard, the "stop-reschedule-restart" approach, halts the entire job to reconfigure the cluster and restart from a checkpoint. For a 4,800-GPU cluster, this process can take nearly two hours, wasting significant compute time and capital.

Comparison of TrainMover's minimized downtime vs. the traditional stop-reschedule-restart approach.

TrainMover addresses this by enabling the seamless replacement of "leaver" nodes with "joiner" nodes. By leveraging standby machines, it provides a way to swap nodes with zero memory overhead and minimal impact on the training timeline.

System Design and Methodology

TrainMover introduces two primary technical innovations to handle the integration of joiner nodes into the active training loop:

Two-phase, Delta-based Communication Group Setup

Setting up collective communication (e.g., NCCL) is typically a major bottleneck. TrainMover splits this into two phases: Phase 1 performs network bootstrapping and topology discovery in the background while the main job is still running. Phase 2 only updates the "delta"—the specific connections that changed—minimizing the critical path downtime to just a few seconds.

Communication-free Sandboxed Shadow Iterations

Modern ML frameworks use "lazy initialization," delaying memory and kernel setup until the first iteration. This usually causes a massive lag when a new node joins. TrainMover solves this by running a "shadow iteration" in an isolated sandbox on the joiner node.

The sandboxed shadow iteration mechanism used to pre-warm joiner nodes.

By using recorded tensors from previous iterations to "trick" the node into initializing everything it needs before it touches the live training loop, TrainMover bypasses the "lazy tax" entirely.

Zero Memory Overhead Migration

To avoid Out-of-Memory (OOM) errors on GPUs already pushed to their limits, TrainMover carefully reuses existing buffers (like gradient buffers) to facilitate state transfer between the old and new machines without additional memory allocation.

Evaluation and Key Results

The authors evaluated TrainMover using GPT-style models (ranging from 2.7B to 39.1B parameters) on the Wikitext dataset. Key findings include:

  • Sub-10-Second Downtime: TrainMover consistently achieved downtime of less than 10 seconds across all model scales, a 70x recovery speedup compared to traditional save-and-restart methods.
  • 99% Training Efficiency: In scenarios involving frequent resource rebalancing (every 10 minutes), the system maintained near-peak theoretical throughput.
  • Resilience to Network Bottlenecks: By using direct peer-to-peer state transfer rather than pulling massive checkpoints from remote storage, TrainMover is significantly less sensitive to network congestion.

Conclusion and Future Work

TrainMover demonstrates that proactive standby management and optimized initialization can reduce recovery times from hours to seconds. While the system relies on the availability of standby machines and requires some storage for shadow tensors, the efficiency gains for hyperscale clusters are substantial. Future work includes extending support to asynchronous training frameworks and optimizing the pre-warming of specific master node roles.

Summary updated

BibTeX
@misc{lao2024trainmover,
  author = {ChonLam Lao and Mingchuan Yu and Aditya Akella and Jiamin Cao and Yu Guan and Pengcheng Zhang and Zhilong Zheng and Yichi Xu and Ennan Zhai and Dennis Cai and Jiaqi Gao},
  title = {{TrainMover: An Interruption-Resilient and Reliable ML Training Runtime}},
  year = {2024},
  eprint = {2412.12636},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.12636},
}
Figure