[논문 리뷰] MegaScale: Scaling Large Language Model Training to More Than 10,000 GPUs
MegaScale은 10,000대 이상 GPU에서 대규모 언어 모델을 학습하기 위한 생산 시스템을 제시하며, 전체 스택 알고리즘-시스템 동시 설계와 심층적인 관찰 가능성에 중점을 두어 효율성과 안정성을 높이고, 12,288 GPUs에서 55.2% MFU 및 Megatron-LM 대비 1.34배 MFU 개선을 달성합니다.
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.
연구 동기 및 목표
- 더 높은 모델 능력과 처리량을 위해 수만 대의 GPU에 이르는 극한 규모에서 LLM의 학습을 고무하고 가능하게 한다.
- 대규모에서의 두 가지 핵심 과제인 학습 효율성(MFU)과 학습 안정성(결함 허용 및 느린 작업 감소)을 해결한다.
- 모델 아키텍처, 최적화, 데이터 파이프라인, 네트워킹에 걸친 알고리즘과 시스템의 풀 스택 공동 설계를 제시하여 확장 가능하고 안정적인 학습을 달성한다.
- 향후 LLM 시스템 연구를 위한 실용적인 엔지니어링 경험, 진단 도구 및 얻은 교훈을 공유한다.
제안 방법
- 모델 블록, 옵티마이저, 계산/통신 중첩, 데이터 파이프라인, 네트워크 튜닝에 걸친 알고리즘 및 시스템 구성 요소의 공동 설계.
- 병렬 트랜스포머 블록, 슬라이딩 윈도우 어텐션, LAMB 옵티마이저를 사용하여 규모를 확장하고 정확도를 유지한다.
- 데이터, 파이프라인, 텐서, 시퀀스의 혼합 병렬성 및 중첩 전략을 활용하여 통신 비용을 숨긴다.
- 프리페칭 및 트리 기반 로딩으로 데이터 파이프라인 최적화; 연산 융합 및 GEMM/통신의 중첩.
- 광범위한 관찰 가능성 및 진단 도구, 하트비트 기반 결함 탐지, 빠른 체크포인트/복구 절차를 개발한다.
- 네트워크 토폴로지 및 혼잡 제어(ECMP 감소, RTT/ECN 기반 제어)를 설계하여 규모 확장에서도 높은 처리량을 유지한다.
실험 결과
연구 질문
- 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?
주요 결과
- 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.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.