Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Untied Ulysses: Memory-Efficient Context Parallelism via Headwise Chunking

About

Efficiently processing long sequences with Transformer models usually requires splitting the computations across accelerators via context parallelism. The dominant approaches in this family of methods, such as Ring Attention or DeepSpeed Ulysses, enable scaling over the context dimension but do not focus on memory efficiency, which limits the sequence lengths they can support. More advanced techniques, such as Fully Pipelined Distributed Transformer or activation offloading, can further extend the possible context length at the cost of training throughput. In this paper, we present UPipe, a simple yet effective context parallelism technique that performs fine-grained chunking at the attention head level. This technique significantly reduces the activation memory usage of self-attention, breaking the activation memory barrier and unlocking much longer context lengths. Our approach reduces intermediate tensor memory usage in the attention layer by as much as 87.5$\%$ for 32B Transformers, while matching previous context parallelism techniques in terms of training speed. UPipe can support the context length of 5M tokens when training Llama3-8B on a single 8$\times$H100 node, improving upon prior methods by over 25$\%$.

Ravi Ghadia, Maksim Abraham, Sergei Vorobyov, Max Ryabinin• 2026

Related benchmarks

TaskDatasetResultRank
Training Memory Usage ProfilingLlama3-8B 8×H100s
Peak Memory Usage (128K)21.1
5
Training Memory Usage ProfilingQwen3-32B 16×H100s
Memory Footprint (Seq 128K)39.98
5
Training ThroughputLlama3 8B (train)
Throughput (128K SeqLen)2.28e+3
5
Training ThroughputQwen3 32B (train)
Training Throughput (128K Seq Len)483.3
5
Showing 4 of 4 rows

Other info

GitHub

Follow for update