TL;DR
Leto is a new fault-tolerant training system designed to handle "Hardware-Operable Failures" (HOFs) in Large Language Model (LLM) training. By retaining model state in-place and pre-initializing process resources on surviving hardware, Leto eliminates the need to reload checkpoints or recompute lost progress, speeding up recovery by up to 6.5× and significantly increasing productive training time.
What Problem Does This Paper Address?
Training LLMs is a marathon that can last months and involve tens of thousands of GPUs. In such massive deployments, failures are a mathematical certainty. The authors identify a specific class of failures called Hardware-Operable Failures (HOFs)—incidents where a training process crashes (due to a contained memory error or a transient network glitch), but the underlying GPU and node remain perfectly healthy.
Currently, when a HOF occurs, most systems treat it like a total hardware failure. They roll back the entire job to the last saved checkpoint, reload gigabytes of data from storage, and re-run all the iterations that happened since that checkpoint. This "stop-and-reload" approach is incredibly wasteful, often idling thousands of healthy GPUs for minutes at a time. As models grow and hardware becomes more complex, these interruptions become a major bottleneck to training efficiency.
Methods
Leto introduces a paradigm shift: in-place recovery. Instead of throwing away the state of a crashed process, Leto preserves it outside the process's failure domain.
- Resilient Memory Pool (RMP): Leto uses a lightweight "State Manager" that owns the GPU memory containing the model. When a trainer process dies, the memory stays allocated. To protect against memory page failures, RMP uses a two-tier erasure protection scheme. It stores Reed-Solomon parity in host (CPU) RAM rather than precious GPU memory (HBM), ensuring that even if some GPU memory pages become inaccessible, the model can be reconstructed.
- Resumable Model Updater (RMU): To ensure the model doesn't end up in an inconsistent state if a crash happens mid-update, RMU implements chunk-level transactions. It updates the model in small pieces, committing each chunk along with its parity. If a failure occurs, the system simply resumes from the last successful chunk boundary.
- Shadow Trainers: Leto pairs every active trainer with a "shadow" on the same node. This shadow pre-initializes heavy resources like CUDA contexts and NCCL communicators. When the active trainer fails, the shadow takes over almost instantly.
- OOM-Free Preinitialization: Because GPU memory is scarce, Leto includes a controller that monitors memory pressure. If the active trainer needs more space, it can "reclaim" memory from the shadow trainer, trading a bit of recovery speed for training stability to avoid Out-of-Memory (OOM) errors.
Datasets
The authors evaluated Leto using five diverse LLM architectures, ranging from dense models to Mixture-of-Experts (MoE):
- Qwen (4B)
- OLMoE (6.9B)
- DeepSeek-MoE (16.4B)
- GPT-MoE (20.9B)
- Kimi-MoE (49.1B)
Training was performed using the FineWeb dataset.
Key Insights and Ideas
- Hardware is often fine: Data from production environments (like ByteDance) shows that a huge portion of failures (up to 73% in some studies) can be resolved by simply restarting the process on the same hardware.
- Parity belongs in Host RAM: Storing error-correction parity on the GPU is too expensive for LLM training, where HBM utilization often exceeds 90%. Moving parity to the host RAM provides protection at near-zero GPU memory cost.
- Granularity is the key to consistency: By breaking down massive model updates into independent chunks, you can achieve crash consistency without the massive overhead of full-model snapshots.
- Shadowing is a "Best Effort" optimization: Pre-initialization is great for speed, but it shouldn't crash the main training. Making shadow state reclaimable ensures that Leto helps when it can and gets out of the way when memory is tight.
Key Results
Leto was tested on clusters of NVIDIA A100 GPUs and through large-scale simulations:
- Recovery Speed: Leto recovers 3.6–6.5× faster than state-of-the-art checkpointing baselines (like Gemini or MoEvement).
- Productivity: It improves the Effective Training Time Ratio (ETTR) by up to 13.7 percentage points.
- Steady-State Overhead: The system is extremely efficient, adding only 0.6% overhead during normal, fault-free training.
- Scalability: Simulations of a 131,072-GPU cluster showed that Leto could maintain over 95% productive training time, even with a failure occurring every 10 minutes.
Limitations and Future Work
Leto is specifically designed for HOFs. If the hardware itself suffers a Fatal Failure (FF)—like a GPU completely dying or a node losing power—Leto cannot recover in-place and must fall back to traditional checkpointing.
Future work could explore extending these in-place techniques to other types of accelerators beyond GPUs or integrating Leto more deeply with cluster-level scheduling to better balance the use of spare nodes versus in-place recovery. Additionally, while the simulation results are promising, testing Leto on a physical cluster of 100k+ GPUs remains the ultimate frontier.
Summary updated