Z.ai 发布 GLM-5.4:750B 循环架构模型
Z.ai 发布了 GLM-5.4,这是其首个基于 Loop Transformer 架构打造的旗舰模型。GLM-5.4 Loop Transformer 将 GLM-5 基础模型的 28 层运行 2 次迭代。Z.ai 称该模型达到了与 2T-3T 参数模型相当的智能水平。对开发者而言,其卖点是「通用编程」(Generalized Coding):把代码作为视频、游戏、3D 着色器和 CAD 的工具。
GLM-5.4 是 Z.ai 推出的 750B 规模 Loop Transformer,每轮前向传播会将共享层运行两次。它率先在 Z.ai 自家产品中上线:GLM Coding Plan、ZCode 桌面应用和 Z.ai Chat。
Z.ai 并没有从零开始预训练一个循环模型,而是通过持续训练对预训练好的 GLM-5 基础模型进行改造。技术文章指出,在同等算力下,从零训练的循环模型仍落后于不共享层的模型。改造现有基础模型能以相对较小的算力开销抬高上限。
在标准 Transformer 中,每一层在每次前向传播中只运行一次。而在 GLM-5.4 中,一组 28 个权重共享的层会运行 2 次迭代。Z.ai 做了 3 项改动,使其在 750B 规模下依然可行。
跨循环直接覆写隐藏状态会让激活值范数爆炸。GLM-5.4 为每次迭代加入了独立的逐 Token 门控。第一次迭代写入较小的更新,构建全局上下文。第二次迭代则打开门控以细化输出。对于较难的 Token,第一次迭代会写得更激进。
一种朴素的设计会为每个循环保留完整的 KV 缓存。GLM-5.4 的第二轮循环复用第一次迭代选出的稀疏 KV。它仅在局部滑动窗口内保留自己新生成的 KV。因此额外的循环只需付出 1 个滑动窗口的 KV 缓存,而非完整的上下文缓存。Z.ai 称,这使得在 1M 上下文下相较 GLM-5.3 的成本增幅处于可控范围。
第二个循环复用第一个循环索引器的索引。这不会增加任何索引开销。Z.ai 报告称,与每一轮都重新计算索引相比,结果几乎相同。
Z.ai 尚未公布 750B GLM-5.4 模型的基准测试分数。据 DataCamp 称,一位 Z.ai 团队成员表示分数将在之后公布。博客中的证据是在 30B 模型上进行的等参数消融实验。它与 750B 基础模型共享架构。循环版本使用的总训练计算量多约 10%。分数是在开启思考模式、进行 200K 长上下文 SFT 后测得的。
来源:Z.ai GLM-5.4 博客。自报结果,30B 模型,并非 750B 旗舰模型。
有两种模式很突出。最大的提升出现在数学、科学推理和长上下文方面。在大多数任务上,输出长度也下降了。MMLU-Pro 的答案缩短了 14.9%,GPQA-Diamond 的答案缩短了 11.7%。Z.ai 表示,部分推理转移到了循环的隐式深度中。AIME25 是例外:输出长度仅下降了 2%。
Z.ai 在 1B、4B、30B 和 750B 基础模型上验证了该设计。“2T-3T 参数”的说法目前还没有旗舰模型的数据表支撑。
Z.ai 将这一方向称为 Generalized Coding。它称在编码和视觉两方面都取得了提升。技术部分展示了四个演示:
这些是厂商演示,不是基准测试。
Z.ai 报告称,非高峰时段最高可达 200 tokens/s,高峰负载下为 70-80 tokens/s。它融合了核心内核以减少中间内存流量。
目前可通过 GLM Coding Plan、ZCode 和 Z.ai Chat 获取访问权限。ZCode 是 Z.ai 为 GLM-5.4 打造的桌面智能体运行框架(agent harness)。它可在 macOS、Windows 和 Linux(Beta)上运行。Coding Plan 的定价为:Lite 每月 12.6 美元,Pro 为 56 美元,Max 为 117.6 美元。Z.ai 表示价格可能变动。
欢迎查看 GLM-5.4 官方技术博客,并在 ZCode 中试用。你可以通过我们的 GPULeaderboard.com Chrome 扩展插件,在这里查看部署方案和规格参数。
需要与我们合作推广你的 GitHub 仓库、Hugging Face 页面、产品发布或网络研讨会等?欢迎联系我们。
文章《Z AI 发布 GLM-5.4:一个将 28 层运行两次的 750B 循环 Transformer》首发于 MarkTechPost。
译文由英文原文机器翻译,术语按行业惯例统一,可在文末展开原文核对。
查看英文原文(Z AI Releases GLM-5.4: A 750B Loop Transformer That Runs 28 Layers Twice)
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.
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.
What is 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.
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.
How does the Loop Transformer work?
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.
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.
Hybrid KV cache
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.
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.
How does GLM-5.4 perform on benchmarks?
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.
| Benchmark (30B ablation) | Baseline | + Loop | Gain | Avg. output length change |
|---|---|---|---|---|
| AIME25 | 19.17 | 30.42 | +11.3 | -635 tokens (-2%) |
| GPQA-Diamond | 47.58 | 56.26 | +8.7 | -2,473 tokens (-11.7%) |
| AA-LCR | 40.33 | 47.67 | +7.3 | -539 tokens (-9.7%) |
| MMLU-Pro | 71.65 | 75.05 | +3.4 | -863 tokens (-14.9%) |
| IFBench | 50.20 | 53.47 | +3.3 | -763 tokens (-13.0%) |
Source: Z.ai GLM-5.4 blog. Self-reported, 30B model, not the 750B flagship.
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%.
Z.ai validated the design on 1B, 4B, 30B and 750B bases. The ‘2T-3T parameter’ claim has no flagship table behind it yet.
What can GLM-5.4 do beyond traditional coding?
Z.ai calls this direction Generalized Coding. It credits gains in both coding and vision. The technical sections shows four demos:
- 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.
These are vendor demos, not benchmarks.
How fast is GLM-5.4 and where can developers use it?
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.
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.
How does GLM-5.4 compare with other open frontier models?
| Feature | GLM-5.4 (Z.ai) | GLM-5.3 (Z.ai docs) | Kimi K3.1 Pro (HF) | DeepSeek-V4.1-Flash (HF) |
|---|---|---|---|---|
| Architecture | Loop Transformer: 28 GLM-5 layers x 2 passes | Same base as GLM-5.2, new post-training | MoE | MoE |
| Total params | 750B scale | Not disclosed | 2.8T | 552B backbone + 196B Engram memory |
| Active params | Not disclosed | Not disclosed | 104B | 8B prefill / 16B decode |
| Context | Not officially listed (blog cites 1M deployment) | 1M (128K max output) | 1,048,576 | Up to 1M |
| Input | Not disclosed (vision gains claimed) | Text | Text, image | Text, image |
| License / weights | Weights planned after safety hardening | Not stated on docs page | Kimi K3.1 Pro License, weights on HF | MIT, weights on HF |
| Access | Coding Plan, ZCode, Z.ai Chat; API soon | API, Coding Plan | Kimi API and apps | HF weights, DeepSeek API |
| Published scores | 30B ablation only | Terminal-Bench 3.0: 28.3 | On model card | DeepSWE v1.1: 74.2 (NVIDIA card) |
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.
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.
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.
Need to partner with us for promoting your GitHub Repo OR Hugging Face Page OR Product Release OR Webinar etc.? Connect with us
The post Z AI Releases GLM-5.4: A 750B Loop Transformer That Runs 28 Layers Twice appeared first on MarkTechPost.
正文保留英文原文,标题与摘要由机器翻译。
原文发布于 MarkTechPost(Z AI Releases GLM-5.4: A 750B Loop Transformer That Runs 28 Layers Twice),标题、摘要与正文由机器翻译,术语按行业惯例统一,未经人工逐句校订。