ByteScale: Efficient Scaling of LLM Training with a 2048K Context Length on More Than 12,000 GPUs
Hao Ge, Junda Feng, Qi Huang, Fangcheng Fu, Xiaonan Nie, Lei Zuo, Haibin Lin, Bin Cui, Xin Liu

TL;DR
ByteScale introduces a dynamic hybrid parallelism framework for efficient large-scale LLM training with extremely long context lengths, significantly reducing communication overhead and balancing computation across thousands of GPUs.
Contribution
The paper proposes a novel Hybrid Data Parallelism strategy with dynamic mesh design, data-aware sharding, and a balance scheduler for scalable long-context LLM training.
Findings
Achieves up to 7.89x speedup over state-of-the-art systems.
Supports models from 7B to 141B parameters with context lengths up to 2048K.
Demonstrates effective training on a cluster of over 12,000 GPUs.
Abstract
Scaling long-context ability is essential for Large Language Models (LLMs). To amortize the memory consumption across multiple devices in long-context training, inter-data partitioning (a.k.a. Data Parallelism) and intra-data partitioning (a.k.a. Context Parallelism) are commonly used. Current training frameworks predominantly treat the two techniques as orthogonal, and establish static communication groups to organize the devices as a static mesh (e.g., a 2D mesh). However, the sequences for LLM training typically vary in lengths, no matter for texts, multi-modalities or reinforcement learning. The mismatch between data heterogeneity and static mesh causes redundant communication and imbalanced computation, degrading the training efficiency. In this work, we introduce ByteScale, an efficient, flexible, and scalable LLM training framework for large-scale mixed training of long and…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
