TL;DR
This paper dives deep into the reliability challenges of massive ML training clusters, analyzing 11 months of data from Meta's AI supercomputers. They reveal that while large jobs are most vulnerable to failures, smaller jobs are more numerous and crucial for overall cluster optimization, and propose new metrics and mitigation strategies to improve training efficiency and resilience.
What Problem Does This Paper Address?
The relentless pursuit of Artificial General Intelligence (AGI) is driving the creation of colossal machine learning (ML) training clusters, housing tens of thousands of GPUs. While the hardware and infrastructure are impressive, operating these systems at scale introduces significant reliability challenges. Failures, whether from hardware, software, or the complex interplay between them, are not a matter of if but when. Understanding the impact of these failures across diverse job sizes and workloads, and developing strategies to mitigate them, is critical for efficient and productive ML research. Existing research often focuses on specific failure types or smaller scales, leaving a gap in understanding the holistic reliability picture for today's massive, multi-tenant ML environments.
Methods
The authors leverage 11 months of operational data from two large, multi-tenant ML clusters (RSC-1 and RSC-2) at Meta, encompassing 4 million jobs and over 150 million A100 GPU hours. Their approach involves:
- Failure Taxonomy: Developing a structured classification of failure symptoms, domains (user program, system software, hardware, infrastructure), and likely causes to systematically diagnose issues.
- Reliability Metrics: Introducing and analyzing key metrics like Effective Training Time Ratio (ETTR), Goodput, and Mean Time to Failure (MTTF) to quantify performance and reliability.
- Data Analysis: Performing a detailed analysis of job status breakdowns, attributed hardware failures, and failure evolution over time.
- Failure Modeling: Fitting failure models to project MTTF for various GPU scales and developing an analytical estimator for ETTR as a function of job parameters.
- Mitigation Strategies: Proposing and evaluating software mitigations, including "lemon node" detection (identifying persistently problematic nodes) and adaptive routing for network resilience.
Datasets
The paper uses extensive real-world operational data from two large-scale, multi-tenant ML research clusters at Meta (RSC-1 and RSC-2). This dataset spans 11 months and includes:
- 4 million jobs
- Over 150 million A100 GPU hours
The data covers a diverse range of ML workloads, including foundation models and vision applications, and encompasses jobs ranging from single-GPU to multi-thousand-GPU scales. No new benchmarks are introduced; instead, the paper analyzes the performance and failure characteristics of existing, large-scale ML training workloads.
Key Insights and Ideas
- Small Jobs Matter: While large jobs are more vulnerable to failures due to their scale, smaller jobs constitute the majority and should be incorporated into optimization objectives for overall cluster efficiency.
- Failure is Inevitable, Resilience is Key: The paper emphasizes that in large-scale systems, failures are a certainty. The focus should shift from preventing all failures to building robust systems that can gracefully handle and recover from them.
- "Lemon Nodes" are a Real Problem: Persistently faulty nodes, even if not flagged by standard health checks, can significantly degrade cluster performance. Proactive detection and removal of these "lemon nodes" are crucial.
- Network Resilience is Paramount: Network link errors are a significant contributor to failures, and adaptive routing strategies can dramatically improve bandwidth utilization and performance predictability, especially under error conditions.
- ETTR is a Powerful Metric: Effective Training Time Ratio (ETTR) provides a holistic view of job productivity, accounting for queue time, unproductive scheduled time, and failures, making it a valuable tool for evaluating system improvements.
Key Results
- Job Diversity: Over 40% of training jobs use a single GPU for development, yet jobs using 256+ GPUs consume over 66% of the total GPU time on RSC-1.
- Failure Impact: Attributed hardware failures impact 19% of GPU runtime but less than 1% of jobs, highlighting the disproportionate impact on large jobs.
- MTTF Scales Poorly: The Mean Time to Failure (MTTF) for 1024-GPU jobs is significantly lower (7.9 hours) compared to 8-GPU jobs (47.7 days), demonstrating a steep decline in reliability with scale.
- Lemon Node Detection Success: The "lemon node" detection mechanism successfully identified 40 faulty nodes and led to a 10% reduction in large job failures (512+ GPUs).
- Adaptive Routing Benefits: Adaptive Routing (AR) demonstrated the ability to maintain significantly higher bandwidth under link errors and reduced performance variation during fabric flooding.
- High Cluster Efficiency: The RSC clusters achieve high ETTR (0.85-0.9) for their largest and highest priority jobs, even with shared resources and minimum time-to-preemption requirements.
Limitations and Future Work
- Silent Data Corruption (SDC): The paper acknowledges that Silent Data Corruption (SDC) errors are not a primary focus but are an important area for future work, as they can subtly impact model convergence.
- User Program Failures: While the paper focuses on infrastructure reliability, user program bugs can also lead to failures and deadlocks, which are harder to diagnose and require better debugging tools.
- Network Resilience: While adaptive routing is discussed, further research into making network fabrics more resilient, potentially by reconfiguring topology to route around failures, is suggested.
- Model-System Co-design: The authors envision future infrastructure systems that make unreliability less noticeable rather than trying to eliminate it entirely, potentially requiring rethinking entire systems, especially as hardware repair units shift from servers to racks.
- Debugging Tools: There's a need for improved debugging tools that can deliver machine debug information in an out-of-band network and help close the attribution gap for failures.
- Asynchronous Programming Models: Relaxing traditional SPMD programming models and embracing asynchronous approaches could unlock additional reliability by allowing systems to more gracefully tolerate failures.
Summary updated