BSIPipe:用于长序列大语言模型训练的双向序列级交错流水线并行
BSIPipe: Bidirectional Sequence-Level Interleaved Pipeline Parallelism for Long-Sequence Large Language Model Training
AI总结:
针对长序列大语言模型训练的吞吐量与内存限制问题,提出BSIPipe双向序列级交错流水线并行,结合张量并行后在GPT、LLaMA3上较SOTA基线实现1.11×-1.13×平均加速比。
摘要:
流水线并行是训练大语言模型的关键技术。为解决现有序列级方法单向调度子序列导致的吞吐量限制,我们提出双向序列级交错流水线并行(BSIPipe),在子序列级别协同调度两条方向相反的V型交错流水线。为限制子序列缩放带来的激活累积,BSIPipe引入基本单元拼接机制,使激活内存与子序列数量无关。为消除双向调度的通信死锁风险,BSIPipe采用结合拓扑感知设备映射与通信-计算重叠的通信优化策略。此外,BSIPipe可与张量并行结合,克服单维度并行的内存限制,抵消其双向内存开销的同时保持吞吐量。在GPT和LLaMA3上的实验表明,BSIPipe在长序列训练中较SOTA序列级基线实现了1.11×至1.13×的平均加速比。
英文摘要:
Pipeline parallelism has become a critical technique for training large language models. To address the throughput limitation of existing sequence-level methods that schedule subsequences unidirectionally, we propose bidirectional sequence-level interleaved pipeline parallelism (BSIPipe), which co-schedules two opposing V-shaped interleaved pipelines at the subsequence level. To bound the activation accumulation from subsequence scaling, BSIPipe introduces a basic-unit concatenation mechanism that keeps activation memory invariant to the subsequence count. To eliminate communication deadlock risk from bidirectional scheduling, BSIPipe employs a communication optimization strategy that combines topology-aware device mapping with communication-computation overlap. In addition, BSIPipe composes with tensor parallelism to overcome the memory limitation of single-dimensional parallelism, neutralizing its bidirectional memory overhead while maintaining throughput. Experiments on GPT and LLaMA3 demonstrate that BSIPipe achieves average speedups of 1.11$\times$ to 1.13$\times$ in long-sequence training over SOTA sequence-level baselines.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。