arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2605.08524cs.DC
收藏

通过FCP释放可扩展的上下文并行性以实现基础模型预训练

Unleashing Scalable Context Parallelism for Foundation Models Pre-Training via FCP

University of California, Berkeley(加州大学伯克利分校);ByteDance Seed(字节跳动种子实验室);University of Washington(华盛顿大学);University of California, Davis(加州大学戴维斯分校)

Yilong Zhao, Xiaonan Nie, Kan Zhu, Shuang Ma, Zhichao Lai, Hongxiang Hao, Yang Zhou, Baris Kasikci, Ion Stoica

AI总结:

本文提出FCP,一种灵活的上下文并行范式,通过块级粒度划分和调度序列,实现高效计算和负载平衡,提升基础模型预训练的可扩展性。

摘要:

上下文并行(CP)已被广泛采用以支持基础模型预训练中日益增长的上下文长度。然而,现有设计未能处理训练数据集中序列长度的大幅变化,导致性能不佳。这些方法往往过度划分短序列,导致计算效率低下和通信过多,或分别处理长和短序列而缺乏合理的装箱,造成负载不平衡。本文提出FCP,一种灵活的上下文并行范式,通过块级粒度划分和调度序列。不同于依赖环形等刚性通信拓扑,FCP允许任意点对点通信,使序列块可以灵活地放置在工作者上。通过从短和长序列中装箱块,FCP实现了高计算效率和负载平衡。广泛的评估显示,FCP在多达256块NVIDIA GPU上实现了接近线性的可扩展性,注意力MFU提升了1.13倍至2.21倍。

英文摘要:

Context parallelism (CP) has been widely adopted to support the growing context length in foundation model pretraining. However, existing designs fail to handle the large variation in sequence length from training datasets, resulting in suboptimal performance. These methods often over-shard short sequences, leading to compute inefficiency and excessive communication, or process long and short sequences separately without proper bin-packing, causing workload imbalance. In this paper, we propose FCP, a flexible context parallelism paradigm that shards and schedules sequences at block-level granularity. Instead of relying on rigid communication topologies such as ring, FCP enables arbitrary peer-to-peer communication, allowing flexible placement of sequence blocks across workers. By bin-packing blocks from both short and long sequences, FCP achieves both high compute efficiency and balanced workload distribution. Extensive evaluations show that FCP attains near-linear scalability on up to 256 NVIDIA GPUs, with 1.13x-2.21x improvement in the attention MFU.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑