FlexSP: Accelerating Large Language Model Training via Flexible Sequence Parallelism
Extending the context length (i.e., the maximum supported sequence length) of LLMs is of paramount significance. To facilitate long context training of LLMs, sequence parallelism has emerged as an essential technique, which scatters each input sequence across multiple devices and necessitates communication to process the sequence. In essence, existing sequence parallelism methods assume homogeneous sequence lengths (i.e., all input sequences are equal in length) and therefore leverages a single, static scattering strategy for all input sequences. However, in reality, the sequence lengths in LLM training corpora exhibit substantial variability, often following a long-tail distribution, which leads to workload heterogeneity.
Authors
- Jiashi Li (ORCID: https://orcid.org/0009-0004-7171-8527)
- Shenhan Zhu (ORCID: https://orcid.org/0009-0004-0267-775X)
- Shiju Wang
- Xinyi Liu (ORCID: https://orcid.org/0009-0003-3987-088X)
- Fangcheng Fu (ORCID: https://orcid.org/0000-0003-1658-0380)
- Bin Cui (ORCID: https://orcid.org/0000-0003-1681-4677)
- Faming Wu (ORCID: https://orcid.org/0000-0003-4256-3277)
- Huixia Li (ORCID: https://orcid.org/0000-0001-8692-456X)
- Xuefeng Xiao
- Y X Wang (ORCID: https://orcid.org/0009-0000-8375-493X)
Institutions
- Peking University (CN)
- Beihang University (CN)
Publication Details
- Published
- 2025-03-27
- DOI
- https://doi.org/10.1145/3676641.3715998
- Citations
- 4
- Primary Topic
- Topic Modeling
- Type
- article
- Field-Weighted Citation Impact
- 9.92