FFTrainer: Fast Failover in Large-Language Model Training with Almost-Free State Management
Bohan Zhao, Yuanhong Wang, Chenglin Liu, Jiagi Pan, Guang Yang, Ruitao Liu, Tingrui Zhang, Kai Luo, Wei Xu
TL;DR
The paper tackles the costly recovery bottleneck in large-scale LLM training by introducing FFTrainer, a system that enables instant checkpointing and fast failover through state-size reduction, decoupled network initialization, and a lightweight network stack (LCCL) that leverages idle bandwidth. It integrates with PyTorch, Megatron, and DeepSpeed, and demonstrates up to ~98% reduction in recovery time with minimal impact on normal training on a 128-GPU cluster. Key contributions include the checkpoint razor for reducing state size, neighboring redundancy and lazy backup for fast, consistent ckpting, and latency-aware load planning and network state initialization. The approach yields high recovery reliability, scalable performance, and practical applicability to future, larger, and faster clusters, with future work on further compression and optimization.
Abstract
Recent developments in large language models (LLMs) have introduced new requirements for efficient and robust training. As LLM clusters scale, node failures, lengthy recoveries, and bulky checkpoints erode efficiency. Infrequent asynchronous checkpoints trigger costly rollbacks, yet higher frequencies add prohibitive overhead. To address these challenges, we propose FFTrainer, a system designed for robust LLM training. FFTrainer leverages surplus network capacity to quickly save and load states, thereby preventing rollbacks and accelerating recovery. Compared with prior checkpointing approaches, FFTrainer reduces recovery time by up to 98% and mitigates GPU utilization loss by up to 68% without hindering normal training.
