paper-with-me

홈 › Papers

HelixPipe: Efficient Distributed Training of Long Sequence Transformers with Attention Parallel Pipeline Parallelism

2025-07-01 · Geng Zhang, Shenggan Cheng, Xuanlei Zhao, Ziming Liu, Yang You arxiv

As transformer sequence lengths grow, existing pipeline parallelisms incur suboptimal performance due to the quadratic attention computation and the substantial memory overhead. To relieve these challenges, we propose HelixPipe, a novel pipeline parallelism for long sequence transformer training. First, HelixPipe introduces attention parallel partition, which schedules attention computations of different micro batches across different pipeline stages in parallel, reducing pipeline bubbles. Second, it employs a two-fold first-in-last-out micro batch schedule to balance memory usage and overlap communication with computation. Additionally, HelixPipe utilizes recomputation without attention and chunked MLP to mitigate fragmentation and enable longer sequences. Experiments demonstrate that HelixPipe gains increasing advantages with longer sequence lengths, and outperforms existing methods in throughput and scalability across varying pipeline sizes, model sizes, and cluster configurations. Notably, it achieves a 26\% speedup over baseline methods when training a 7B model with 128k sequence length on 64 H20 GPUs. Code is available at https://github.com/code-tunnel/Megatron-LM/tree/dev.

📄 PDF Abstract BibTeX arXiv:2507.00394

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Ultra-Long Sequence Distributed Transformer

2023-11-04 · Xiao Wang, Isaac Lyngaas, Aristeidis Tsaris, Peng Chen 외

Transformer models trained on long sequences often achieve higher accuracy than short sequences. Unfortunately, conventional transformers struggle with long sequence training due to the overwhelming computation and memor…

GPU

A Unified View of Long-Sequence Models towards Modeling Million-Scale Dependencies

2023-02-13 · Hongyu Hè, Marko Kabic

Ever since their conception, Transformers have taken over traditional sequence models in many tasks, such as NLP, image classification, and video/audio processing, for their fast training and superior performance. Much o…

image-classificationImage Classification

Griffin: Mixing Gated Linear Recurrences with Local Attention for Efficient Language Models

2024-02-29 · Soham De, Samuel L. Smith, Anushan Fernando, Aleksandar Botev 외

Recurrent neural networks (RNNs) have fast inference and scale efficiently on long sequences, but they are difficult to train and hard to scale. We propose Hawk, an RNN with gated linear recurrences, and Griffin, a hybri…

Language ModellingMamba

LongNet: Scaling Transformers to 1,000,000,000 Tokens

2023-07-05 · Jiayu Ding, Shuming Ma, Li Dong, Xingxing Zhang 외

Scaling sequence length has become a critical demand in the era of large language models. However, existing methods struggle with either computational complexity or model expressivity, rendering the maximum sequence leng…

Blockwise Parallel Transformers for Large Context Models

2023-09-21 · NeurIPS 2023 11

Transformers have emerged as the cornerstone of state-of-the-art natural language processing models, showcasing exceptional performance across a wide range of AI applications. However, the memory demands posed by the sel…