[Paper Review] MegaScale: Scaling Large Language Model Training to More Than 10,000 GPUs
MegaScale presents a production system for training large language models on 10,000+ GPUs, focusing on full-stack algorithm-system co-design and in-depth observability to achieve high efficiency and stability, including 55.2% MFU on 12,288 GPUs and 1.34x MFU improvement over Megatron-LM.
We present the design, implementation and engineering experience in building and deploying MegaScale, a production system for training large language models (LLMs) at the scale of more than 10,000 GPUs. Training LLMs at this scale brings unprecedented challenges to training efficiency and stability. We take a full-stack approach that co-designs the algorithmic and system components across model block and optimizer design, computation and communication overlapping, operator optimization, data pipeline, and network performance tuning. Maintaining high efficiency throughout the training process (i.e., stability) is an important consideration in production given the long extent of LLM training jobs. Many hard stability issues only emerge at large scale, and in-depth observability is the key to address them. We develop a set of diagnosis tools to monitor system components and events deep in the stack, identify root causes, and derive effective techniques to achieve fault tolerance and mitigate stragglers. MegaScale achieves 55.2% Model FLOPs Utilization (MFU) when training a 175B LLM model on 12,288 GPUs, improving the MFU by 1.34x compared to Megatron-LM. We share our operational experience in identifying and fixing failures and stragglers. We hope by articulating the problems and sharing our experience from a systems perspective, this work can inspire future LLM systems research.
Motivation & Objective
- Motivate and enable training of LLMs at extreme scale (tens of thousands of GPUs) for higher model capability and throughput.
- Address two core challenges at scale: training efficiency (MFU) and training stability (fault tolerance and reduced stragglers).
- Present a full-stack co-design of algorithms and systems spanning model architecture, optimization, data pipeline, and networking to achieve scalable, stable training.
- Share practical engineering experiences, diagnostics tools, and lessons learned to inform future LLM systems research.
Proposed method
- Co-design of algorithmic and system components across model blocks, optimizers, computation/communication overlap, data pipeline, and network tuning.
- Use parallel transformer blocks, sliding window attention, and LAMB optimizer to scale and maintain accuracy.
- Employ mixed parallelism (data, pipeline, tensor, sequence) with overlap strategies to hide communication costs.
- Optimize data pipeline with prefetching and tree-based loading; fuse operations and overlap GEMM/communication.
- Develop extensive observability and diagnosis tools, heartbeat-based fault detection, and fast checkpoint/recovery procedures.
- Architect network topology and congestion control (ECMP reduction, RTT/ECN-based control) to sustain high throughput at scale.
Experimental results
Research questions
- RQ1How can LLM training be scaled beyond 10,000 GPUs while maintaining high efficiency and stability?
- RQ2What algorithmic and system design choices (parallelism, optimizers, attention mechanisms) maximize MFU and convergence at large scale?
- RQ3What observability, fault-tolerance, and fast-recovery techniques are required to operate stable training jobs at extreme scale?
- RQ4What concrete engineering practices (data pipeline, network tuning, initialization) most effectively reduce downtime and stragglers?
- RQ5How does MegaScale perform in real production runs compared to existing open-source baselines like Megatron-LM?
Key findings
- MegaScale achieves 55.2% Model FLOPs Utilization (MFU) when training a 175B model on 12,288 GPUs.
- This MFU represents a 1.34× improvement over Megatron-LM.
- MegaScale trains a proprietary hundreds-of-billions-parameter model on multi-trillion tokens for weeks with ongoing convergence and recovery from over 100 faults.
- The system demonstrates automatic fault identification, fast recovery, and minimal training interruption via a robust workflow and checkpointing optimizations.
- A set of observability tools and diagnostics support fault localization, anomaly detection, and performance analysis in production-scale training.
- The authors are open-sourcing components and sharing engineering learnings to inform the community.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.