TawPipe: Topology-Aware Weight Pipeline Parallelism for Accelerating Long-Context Large Models Training

Houming Wu, Ling Chen
11/12/2025
cs.LGcs.AIcs.DC

No official code found. Best implementation: wuhouming/TawPipe (2 stars, last commit 2025-11-18).

Abstract

Training large language models (LLMs) is fundamentally constrained by limited device memory and costly inter-device communication. Although pipeline parallelism alleviates memory pressure by partitioning models across devices, it incurs activation communication overhead that scales linearly with sequence length, limiting efficiency in long-context training. Recent weight-passing approaches (e.g., WeiPipe) mitigate this by transmitting model weights instead of activations, but suffer from redundant peer-to-peer (P2P) transfers and underutilized intra-node bandwidth. We propose TawPipe--topology-aware weight pipeline parallelism, which exploits hierarchical bandwidth in distributed clusters for improved communication efficiency. TawPipe: (i) groups devices based on topology to optimize intra-node collective and inter-node P2P communication; (ii) assigns each device a fixed shard of model weights and gradients, avoiding redundant transfers; and (iii) overlaps communication with computation to hide latency. Unlike global collective operations used in fully sharded data parallelism (FSDP), TawPipe confines most communication within node boundaries, significantly reducing cross-node traffic. Extensive experiments on up to 24 GPUs with LLaMA-style models show that TawPipe achieves superior throughput and scalability compared to state-of-the-art baselines.

View on arXivView PDF

Code Implementations(1)

wuhouming/TawPipeCommunity59%

TawPipe: Topology-Aware Weight Pipeline Parallelism for Accelerating Long-Context Large Models Training

20PythonJun 30, 202511 months ago

Cite this paper

@article{wu2025tawpipe,
  title  = {TawPipe: Topology-Aware Weight Pipeline Parallelism for Accelerating Long-Context Large Models Training},
  author = {Houming Wu and Ling Chen},
  year   = {2025},
  eprint = {2511.09741},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2511.09741v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2511.09741.svg)](https://codeofpaper.com/paper/2511.09741)

Discussion