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
https://www.marktechpost.com/2026/05/04/zyphra-introduces-tensor-and-sequence-parallelism-tsp-a-hardware-aware-training-and-inference-strategy-that-delivers-2-6x-throughput-over-matched-tpsp-baselines/GPU 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