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.

Original post →

More from Infra

Infra channel →