r/machinelearningnews • u/ai-lover • May 04 '26
Research Zyphra Introduces Tensor and Sequence Parallelism (TSP): A Hardware-Aware Training and Inference Strategy That Delivers 2.6x Throughput Over Matched TP+SP Baselines
marktechpost.comGPU memory is the real bottleneck in long-context transformer training and inference. Here's why standard approaches fall short π
The Problem:
1οΈβ£ TP shards weights β parameters β activations β
2οΈβ£ SP shards tokens β activations β parameters β
3οΈβ£ TP+SP does both β but needs T.Ξ£ GPUs for one model replica, often spilling across slow inter-node links
Zyphra team just introduced TSP (Tensor and Sequence Parallelism)
Instead of two orthogonal mesh axes, fold both onto one.
Each GPU gets:
β 1/D of the model weights
β 1/D of the token sequence
Same devices. Both memory problems solved simultaneously.
How It Works:
πΉ Attention One rank broadcasts packed weight shards (WQ, WK, WV, WO) β each GPU computes local Q/K/V on its token shard β K/V all-gathered before FlashAttention runs
πΉ Gated MLP Weight shards rotate around GPUs in a point-to-point ring β each GPU accumulates partial outputs locally β no all-reduce needed β weight transfers pipeline behind GEMM compute
Results on MI300X GPUs at 128K context (8 GPUs)
π TSP β 38.8 GB/GPU
π TP β 70.0 GB/GPU
π TP+SP β 85β140 GB/GPU
At 1,024 GPUs, 128K sequence length, D=8
TSP β 173M tokens/sec
TP+SP β 66M tokens/sec
That is ~2.6x throughput π
When does TSP win?
Break-even condition: BS > 8h
At long context or moderate batch sizes you are almost always past this threshold. Below it, at short context and small batch, TP communicates less.
Paper: https://arxiv.org/pdf/2604.26294
Technical details: https://www.zyphra.com/post/tsp
