智谱AI已发布GLM-5.4,这是其首款基于Loop Transformer架构的旗舰模型。GLM-5.4的Loop Transformer在每次迭代中运行GLM-5基础模型的28层共2次。智谱AI称该模型达到了相当于2T-3T参数模型的智能水平。对于开发者而言,卖点在于"广义编码":以代码为工具,应用于视频、游戏、3D着色器和CAD。
TL;DR
- 规模:750B级别基础模型。激活参数量未公布。上下文窗口未官方列出(博客提及以1M上下文部署)。
- 运行方式:目前仅支持智谱AI托管(GLM Coding Plan、ZCode、Z.ai Chat)。自托管硬件需等权重发布后才会公布。
- 性能:暂无旗舰基准测试表格。智谱AI声称与2T-3T参数模型持平。
- 最佳表现:在智谱AI30B循环消融实验中,AIME25提升11.3分(从19.17到30.42)。
- 最差表现:IFBench上提升3.3分(从50.20到53.47),增益最小。智谱AI还指出了"马拉松式思考"循环的问题。
什么是GLM-5.4?
GLM-5.4是智谱AI推出的750B级Loop Transformer模型,每轮迭代中对共享层运行两次。它首先搭载于智谱AI自有产品:GLM Coding Plan、ZCode桌面应用和Z.ai Chat。
智谱AI并未从零开始预训练一个循环模型,而是通过对已预训练的GLM-5基础模型进行持续训练来适配。技术博文指出,从零训练的循环模型在同等计算量下仍落后于非共享模型。对现有基础模型进行适配可以在相对较小的计算开销下提升上限。
Loop Transformer是如何工作的?
在标准Transformer中,每个层在前向传播过程中只运行一次。而在GLM-5.4中,一组28层的权重共享层会运行2个迭代。智谱AI进行了3项改动,以确保这一方案在750B规模下可行。
门控渐进更新
跨循环覆盖隐藏状态会导致激活范数发散。GLM-5.4为每个迭代步骤添加了独立的逐token门控。第一次迭代写入小幅更新并构建全局上下文;第二次迭代打开门控以细化输出。在较难的token上,第一次迭代会更激进地写入。
混合KV缓存
朴素设计会为每个循环保留完整的KV缓存。GLM-5.4的第二轮循环复用了第一轮选择的稀疏KV,仅在本地滑动窗口内保留自身新增的KV。因此额外循环仅需消耗一个滑动窗口的KV缓存,而非整个上下文缓存。Z.ai称这使得相比GLM-5.3的成本增幅得以控制(在1M上下文中)。
稀疏注意力索引复用
第二轮循环复用了第一轮索引器的索引,零额外索引开销。Z.ai报告与每次迭代都重新计算索引的结果近乎一致。
GLM-5.4在基准测试上的表现如何?
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参数"的说法尚无旗舰性能表作为支撑。
GLM-5.4在传统编码之外还能做什么?
Z.ai将这一方向称为Generalized Coding,声称在编码和视觉两个方面都取得了提升。技术部分展示了四个演示:
- 视频:一段名为"Hello World"的自叙音乐视频。
- 工程:通过FreeCAD建模构建的6轴机械臂。
- 游戏:一款完整的游戏,包含移动、物理、地图、战斗和艺术资源。
- 3D:使用数学几何和自定义GLSL着色器构建的交互式观鸟场景。
这些都是厂商演示,并非基准测试。
GLM-5.4的速度如何,开发者可以在哪里使用它?
Z.ai报告峰值外可达200 tok/s,峰值负载时达到70-80 tok/s。通过融合核心内核减少了中间内存流量。
目前的访问方式是通过GLM Coding Plan、ZCode和Z.ai Chat。ZCode是Z.ai针对GLM-5.4推出的桌面agent工具,运行于macOS、Windows和Linux(Beta)。Coding Plan定价为Lite每月$12.6、Pro $56、Max $117.6。Z.ai表示价格可能会调整。
GLM-5.4与其他开源前沿模型相比如何?
要点总结
- GLM-5.4在750B规模下对28层GLM-5进行两次循环。
- 30B消融实验:AIME25得分+11.3,训练算力仅增加约10%。
- 额外循环成本仅为1个滑窗KV cache,而非完整缓存。
- 峰值外最高200 tok/s,峰值时70-80 tok/s。
- 目前暂无旗舰分数、公开API或权重。
查看官方GLM-5.4技术博客并在ZCode中试用。你可以通过我们的GPULeaderboard.com chrome扩展在此查看部署选项和规格详情。
此外,欢迎关注我们Twitter,并别忘了加入我们拥有15万+成员的ML SubReddit以及订阅我们的Newsletter。等等!你在Telegram上吗?现在你也可以在Telegram上加入我们。
需要与我们合作推广您的 GitHub Repo、Hugging Face Page、产品发布或网络研讨会等吗?联系我们
Asif Razzaq 是 Marktechpost AI Media Inc.的 CEO。作为一名具有远见的企业家和工程师,Asif 致力于挖掘人工智能(AI)的社会价值。他最近的举措是推出了人工智能媒体平台 Marktechpost,该平台以深入报道机器学习与深度学习新闻而著称,内容既技术扎实又易于大众理解。该平台每月浏览量超过 200 万次,展现了其广泛的受众影响力。
本文由 AI图鉴自动抓取并翻译,版权归原作者所有;如需查看原文请点下方链接。
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.
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?
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
Asif Razzaq is the CEO of Marktechpost AI Media Inc.. As a visionary entrepreneur and engineer, Asif is committed to harnessing the potential of Artificial Intelligence for social good. His most recent endeavor is the launch of an Artificial Intelligence Media Platform, Marktechpost, which stands out for its in-depth coverage of machine learning and deep learning news that is both technically sound and easily understandable by a wide audience. The platform boasts of over 2 million monthly views, illustrating its popularity among audiences.
Auto-fetched and translated by AI Atlas. All rights belong to the original author.