Looped transformers break pipeline parallelism: Fireworks' fix finishes 128K prompts in 8.5s vs 11.8s
nicolechirps · x · 2026-12-05
Fireworks AI published a technical deep-dive on serving looped transformers like GLM 5.4.
Background: Models such as Dory, Inkling 2 Mini and GLM 5.4 get smarter without getting bigger by running a shared set of layers multiple times per token. In GLM 5.4 the loop adds over a third more FLOPs per token, and the model's 750B parameters require sharding.
Problem: Pipeline parallelism assumes every GPU takes equal time per chunk. Looped layers double the work on their GPUs, leaving other stages idle — naive pipeline parallelism actually slows agents with long prompts.
Fix: On a ping-pong layout, interleaving two 128K-token prompts finishes both in 8.5s instead of 11.8s; the article compares the two layouts and how they restore stage balance.
Extra details: DeepSeek V4 and Kimi K3/K3.1 already use pipeline parallelism for long-context prefill; since GLM 5.4 weights aren't public, experiments used random weights of the correct shapes.
More from Infra
- NATS moves toward post-quantum crypto: ML-DSA signatures and X-Wing hybrid keys PR — tctjr · 2026-12-06
- Report: Nvidia lawyer ran $10M lobbying push; key Asian partner has China gov't, military ties — GarrisonLovely · 2026-12-06
- Liang Wenfeng: domestic GPU adaptation faces no obstacles, DeepSeek gets only ~16k Huawei cards — zephyr_z9 · 2026-12-06
- Permitting book author: BAAJA proves US infrastructure slowness isn't destiny — sebkrier · 2026-12-06
- Diamandis: Musk Is Vertically Integrating Every Bottleneck, From Rockets to AI Compute — PeterDiamandis · 2026-12-06
- Bitcoin OG Vinny Lingham Exits Crypto Commentary to Build Ternary AI Chip Startup Trinary.ai — marcvanderchijs · 2026-12-06