How-toSelected

GLM-5.4 循环层让流水线并行变慢,交错调度可提速

Why we picked it

跑 GLM-5.4 做长上下文智能体的团队可以看看这个:Fireworks 实测发现 looped 架构下朴素流水线并行会变慢,换成 ping-pong 布局加交错调度,两个 128K prompt 从 11.8 秒降到 8.5 秒。部署这类新架构模型时并行策略得单独调。

Fireworks AI 指出,GLM-5.4 这类 looped 模型会把部分层跑两遍,导致朴素的流水线并行在长 prompt 场景下反而拖慢推理。他们对比了两种布局:ping-pong 布局下,把两个 128K token 的 prompt 交错调度,两个任务的总耗时从 11.8 秒降到 8.5 秒,提速约 28%。

Body

技术上的关键是避免让循环执行的层在流水线各阶段之间形成等待瓶颈。ping-pong 布局将两个请求交错送入流水线,让循环层的重复计算与其他请求的计算重叠,从而填满空闲周期。

对跑长上下文智能体的团队来说,这个案例说明并行策略不能照搬标准 Transformer 的做法,looped 架构需要针对性调整布局和调度。

Original · Fireworks AI

Looped models like GLM-5.4 run some layers twice, so naive pipeline parallelism slows agents with long prompts. On a ping-pong layout, interleaving two 128K-token prompts finishes both in 8.5 s instead of 11.8 s. A comparison of two layouts: bit.ly/parallelismx📊 7 ⚡

Industry Coordinates & Source Verification

This report is categorized under AITOP's "How-to" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include GLM-5.4, Fireworks AI, inference optimization.

Source attribution: curated from Fireworks AI (@FireworksAI_HQ).

Spotted an error in the summary or translation? Tell us