跳到主内容
@wquguru
精选88MarkTechPost(RSS)模型发布/更新多源精选 ×7

Z.ai发布GLM-5.4:750B Loop Transformer架构

Z AI Releases GLM-5.4: A 750B Loop Transformer That Runs 28 Layers Twice

原文
发到 X
推荐理由

Loop Transformer是近期值得关注的架构创新,Z.ai直接将其应用于750B旗舰模型并开源技术细节,对研究高效推理和长上下文优化的开发者有参考价值。

Z.ai has released GLM-5.4, its first flagship model built on a Loop Transformer architecture. The GLM-5.4 Loop Transformer runs 28 layers of the GLM-5 base model for 2 iterations. Z.ai says the model reaches intelligence comparable to 2T-3T parameter models. For developers, the pitch is ‘Generalized Coding’: code as the tool for video, games, 3D shaders and CAD.

Z.ai 发布了 GLM-5.4,这是其首款基于 Loop Transformer 架构的旗舰模型。GLM-5.4 Loop Transformer 对 GLM-5 基础模型的 28 层运行了 2 次迭代。Z.ai 表示该模型达到了与 2T-3T 参数模型相当的智能水平。对于开发者而言,其卖点在于“通用编码”:将代码作为视频、游戏、3D 着色器和 CAD 的工具。

TL;DR

TL;DR(太长不看版)

  • Size: 750B-scale base. Active parameters not disclosed. Context window not officially listed (the blog discusses deployment at 1M context).
  • Runs on: Z.ai-hosted only for now (GLM Coding Plan, ZCode, Z.ai Chat). Self-hosting hardware not disclosed until weights ship.
  • Performance: No flagship benchmark table yet. Z.ai claims parity with 2T-3T parameter models.
  • Best: +11.3 points on AIME25 (19.17 to 30.42) in Z.ai’s 30B looped ablation.
  • Worst: +3.3 points on IFBench (50.20 to 53.47), the smallest gain. Z.ai also flags “marathon thinking” loops.
  • 规模:750B 量级基础模型。活跃参数量未披露。上下文窗口未在官方列表中列出(博客讨论了在 1M 上下文下的部署)。
  • 运行平台:目前仅限 Z.ai 托管(GLM Coding Plan、ZCode、Z.ai Chat)。权重发布前不披露自托管硬件要求。
  • 性能:尚无旗舰基准测试表。Z.ai 声称其与 2T-3T 参数模型持平。
  • 最佳表现:在 Z.ai 的 30B 循环消融实验中,AIME25 得分提升 11.3 点(从 19.17 提升至 30.42)。
  • 最差表现:IFBench 得分提升 3.3 点(从 50.20 提升至 53.47),为最小增幅。Z.ai 还指出了“马拉松式思考”循环的问题。

What is GLM-5.4?

什么是 GLM-5.4?

GLM-5.4 is a 750B-scale Loop Transformer from Z.ai that runs shared layers twice per pass. It ships first inside Z.ai’s own products: the GLM Coding Plan, the ZCode desktop app and Z.ai Chat.

GLM-5.4 是 Z.ai 推出的 750B 量级 Loop Transformer,每次前向传播中共享层运行两次。它首先随 Z.ai 自家产品推出:GLM Coding Plan、ZCode 桌面应用和 Z.ai Chat。

Z.ai did not pre-train a looped model from scratch. It adapted the pre-trained GLM-5 base through continued training. The technical post states that looped models trained from scratch still trail unshared models at equal compute. Adapting an existing base raises the ceiling with a relatively small compute overhead.

Z.ai 并未从头预训练一个循环模型。它是通过持续训练对已预训练的 GLM-5 基础模型进行了适配。技术文章指出,从头训练的循环模型在同等计算量下仍落后于非共享模型。适配现有基础模型能以相对较小的计算开销提升上限。

How does the Loop Transformer work?

Loop Transformer 是如何工作的?

In a standard Transformer, each layer runs once per forward pass. In GLM-5.4, a group of 28 weight-shared layers runs for 2 iterations. Z.ai made 3 changes to keep this practical at 750B scale.

在标准 Transformer 中,每层在前向传播中仅运行一次。在 GLM-5.4 中,一组 28 个权重复用的层运行 2 次迭代。Z.ai 做了 3 项改动,以确保在 750B 规模下这一设计具有可行性。

Gated progressive updates

门控渐进更新

Overwriting hidden states across loops made activation norms blow up. GLM-5.4 adds independent per-token gates for each iteration. The first pass writes small updates and builds global context. The second pass opens the gates to refine the output. On harder tokens, the first pass writes more aggressively.

跨循环覆盖隐藏状态会导致激活范数爆炸。GLM-5.4 为每次迭代添加了独立的逐 token 门控。第一次前向传播写入小幅更新并构建全局上下文。第二次前向传播打开门控以优化输出。对于较难的 token,第一次前向传播会写入更大幅度的更新。

Hybrid KV cache

混合 KV 缓存

A naive design keeps a full KV cache for every loop. GLM-5.4’s second loop reuses the sparse KV selected in pass 1. It keeps its own new KV only inside a local sliding window. So the extra loop costs 1 sliding window of KV cache, not a full context cache. Z.ai says this keeps the cost increase over GLM-5.3 under control at 1M context.

朴素的设计会为每个循环保留完整的 KV 缓存。GLM-5.4 的第二次循环复用了第 1 次前向传播中选定的稀疏 KV。它仅在局部滑动窗口内保留自己的新 KV。因此,额外循环的成本仅为 1 个滑动窗口的 KV 缓存,而非整个上下文缓存。Z.ai 表示这使得在 1M 上下文下,相对于 GLM-5.3 的成本增加处于可控范围。

Sparse attention index reuse

稀疏注意力索引复用

The second loop reuses the indices from the first loop’s indexer. That adds zero indexing overhead. Z.ai reports near-identical results versus recomputing indices on every pass.

第二个循环复用了第一个循环索引器的索引。这增加了零索引开销。Z.ai 报告称,其结果与每次迭代重新计算索引的结果几乎完全相同。

How does GLM-5.4 perform on benchmarks?

GLM-5.4 在基准测试中的表现如何?

Z.ai has not published benchmark scores for the 750B GLM-5.4 model. A Z.ai team member said scores will come later, per DataCamp. The evidence in the blog is an iso-parameter ablation on a 30B model. It shares the 750B base’s architecture. The looped version used about 10% more total training compute. Scores were measured after 200K long-context SFT with thinking mode on.

Z.ai 尚未公布 750B GLM-5.4 模型的基准分数。据 DataCamp 报道,Z.ai 团队成员表示分数将在稍后公布。博客中的证据是对 30B 模型进行的同参数消融实验。该模型共享 750B 基础架构的架构。循环版本使用的总训练算力比基线多约 10%。分数是在开启思考模式并进行 200K 长上下文 SFT(监督微调)后测量的。

Benchmark (30B ablation)Baseline+ LoopGainAvg. output length change
AIME2519.1730.42+11.3-635 tokens (-2%)
GPQA-Diamond47.5856.26+8.7-2,473 tokens (-11.7%)
AA-LCR40.3347.67+7.3-539 tokens (-9.7%)
MMLU-Pro71.6575.05+3.4-863 tokens (-14.9%)
IFBench50.2053.47+3.3-763 tokens (-13.0%)
基准测试(30B 消融)基线+ 循环增益平均输出长度变化
AIME2519.1730.42+11.3-635 tokens (-2%)
GPQA-Diamond47.5856.26+8.7-2,473 tokens (-11.7%)
AA-LCR40.3347.67+7.3-539 tokens (-9.7%)
MMLU-Pro71.6575.05+3.4-863 tokens (-14.9%)
IFBench50.2053.47+3.3-763 tokens (-13.0%)

Source: Z.ai GLM-5.4 blog. Self-reported, 30B model, not the 750B flagship.

来源:Z.ai GLM-5.4 博客。自我报告数据,基于 30B 模型,而非 750B 旗舰模型。

Two patterns stand out. The largest gains come in math, science reasoning and long context. Output length also falls on most tasks. MMLU-Pro answers got 14.9% shorter and GPQA-Diamond answers 11.7% shorter. Z.ai says part of the reasoning moves into the loop’s implicit depth. AIME25 is the exception: output length dropped only 2%.

有两个模式尤为突出。最大的增益出现在数学、科学推理和长上下文领域。大多数任务上的输出长度也下降了。MMLU-Pro 的答案缩短了 14.9%,GPQA-Diamond 的答案缩短了 11.7%。Z.ai 表示,部分推理过程转移到了循环的隐式深度中。AIME25 是例外:输出长度仅下降了 2%。

Z.ai validated the design on 1B, 4B, 30B and 750B bases. The ‘2T-3T parameter’ claim has no flagship table behind it yet.

Z.ai 在 1B、4B、30B 和 750B 基础模型上验证了该设计。“2T-3T 参数”的说法目前尚无旗舰模型表格作为支撑。

What can GLM-5.4 do beyond traditional coding?

除了传统编程,GLM-5.4 还能做什么?

Z.ai calls this direction Generalized Coding. It credits gains in both coding and vision. The technical sections shows four demos:

Z.ai 将这一方向称为广义编程(Generalized Coding)。它归功于编程和视觉领域的双重增益。技术部分展示了四个演示:

  • Video: a self-narrated music video called “Hello World”.
  • Engineering: a 6-axis robotic arm built through CAD modeling in FreeCAD.
  • Games: a complete game with movement, physics, maps, combat and art assets.
  • 3D: an interactive bird-watching scene built with math geometry and custom GLSL shaders.
  • 视频:一个名为“Hello World”的自述音乐视频。
  • 工程:通过 FreeCAD 中的 CAD 建模构建的六轴机械臂。
  • 游戏:一款包含移动、物理、地图、战斗和艺术资产完整的游戏。
  • 3D:使用数学几何和自定义 GLSL 着色器构建的交互式观鸟场景。

These are vendor demos, not benchmarks.

这些是厂商演示,并非基准测试。

How fast is GLM-5.4 and where can developers use it?

GLM-5.4 的速度有多快?开发者可以在哪里使用它?

Z.ai reports up to 200 tokens/s off-peak and 70-80 tokens/s at peak load. It fused core kernels to cut intermediate memory traffic.

Z.ai 报告称,非高峰时段可达 200 tokens/s,高峰负载时为 70-80 tokens/s。它融合了核心内核以减少中间内存流量。

Access today runs through the GLM Coding Plan, ZCode and Z.ai Chat. ZCode is Z.ai’s desktop agent harness for GLM-5.4. It runs on macOS, Windows and Linux (Beta). The Coding Plan lists Lite at $12.6/month, Pro at $56 and Max at $117.6. Z.ai says prices may change.

目前的访问途径包括 GLM Coding Plan、ZCode 和 Z.ai Chat。ZCode 是 Z.ai 为 GLM-5.4 打造的桌面代理工具包,支持 macOS、Windows 和 Linux(Beta)。Coding Plan 列出的 Lite 版价格为每月 12.6 美元,Pro 版为 56 美元,Max 版为 117.6 美元。Z.ai 表示价格可能会发生变化。

How does GLM-5.4 compare with other open frontier models?

GLM-5.4 与其他开放前沿模型相比如何?

FeatureGLM-5.4 (Z.ai)GLM-5.3 (Z.ai docs)Kimi K3.1 Pro (HF)DeepSeek-V4.1-Flash (HF)
ArchitectureLoop Transformer: 28 GLM-5 layers x 2 passesSame base as GLM-5.2, new post-trainingMoEMoE
Total params750B scaleNot disclosed2.8T552B backbone + 196B Engram memory
Active paramsNot disclosedNot disclosed104B8B prefill / 16B decode
ContextNot officially listed (blog cites 1M deployment)1M (128K max output)1,048,576Up to 1M
InputNot disclosed (vision gains claimed)TextText, imageText, image
License / weightsWeights planned after safety hardeningNot stated on docs pageKimi K3.1 Pro License, weights on HFMIT, weights on HF
AccessCoding Plan, ZCode, Z.ai Chat; API soonAPI, Coding PlanKimi API and appsHF weights, DeepSeek API
Published scores30B ablation onlyTerminal-Bench 3.0: 28.3On model cardDeepSWE v1.1: 74.2 (NVIDIA card)
特性GLM-5.4 (Z.ai)GLM-5.3 (Z.ai 文档)Kimi K3.1 Pro (HF)DeepSeek-V4.1-Flash (HF)
架构Loop Transformer:28 层 GLM-5 x 2 次通过与 GLM-5.2 相同的基础架构,新的后训练阶段MoEMoE
总参数量750B 规模未披露2.8T552B 主干 + 196B Engram 记忆
激活参数量未披露未披露104B8B 预填充 / 16B 解码
上下文窗口官方未列出(博客引用部署支持 1M)1M(最大输出 128K)1,048,576最高 1M
输入类型未披露(声称具备视觉能力)文本文本、图像文本、图像
许可证/权重安全加固后计划发布权重文档页面未说明Kimi K3.1 Pro 许可证,权重在 HF 上MIT,权重在 HF 上
访问方式Coding Plan、ZCode、Z.ai Chat;API 即将推出API、Coding PlanKimi API 和应用HF 权重、DeepSeek API
已公布得分仅 30B 消融实验Terminal-Bench 3.0: 28.3见模型卡片DeepSWE v1.1: 74.2 (NVIDIA 显卡)

Key Takeaways

关键要点

  • GLM-5.4 loops 28 GLM-5 layers twice at 750B scale.
  • 30B ablation: +11.3 on AIME25 for ~10% more training compute.
  • The extra loop costs 1 sliding window of KV cache, not a full cache.
  • Up to 200 tok/s off-peak, 70-80 tok/s at peak.
  • No flagship scores, public API or weights yet.
  • GLM-5.4 在 750B 规模下对 28 层 GLM-5 进行两次循环通过。
  • 30B 消融实验:AIME25 得分提升 11.3,训练算力增加约 10%。
  • 额外的循环代价仅为一个滑动窗口的 KV 缓存,而非完整缓存。
  • 非高峰期可达 200 tok/s,高峰期 70-80 tok/s。
  • 目前尚无旗舰级得分、公开 API 或权重。

Check out the official GLM-5.4 tech blog and try it in ZCode. You can check the deployment options and specs here through our GPULeaderboard.com chrome extension.

查看官方 GLM-5.4 技术博客并在 ZCode 中试用。你可以通过我们的 GPULeaderboard.com Chrome 扩展程序在此处查看部署选项和规格。

Also, feel free to follow us on Twitter and don’t forget to join our 150k+ML SubReddit and Subscribe to our Newsletter. Wait! are you on telegram? now you can join us on telegram as well.

此外,欢迎在 Twitter 上关注我们,别忘了加入我们拥有 15 万+成员的 ML SubReddit 并订阅我们的新闻通讯。等等!你在 Telegram 上吗?现在你也可以加入我们的 Telegram 群组。

更进一步:量化金融体系

看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力

进入量化体系 →