GLM-5.4: Toward Generalized Coding with Our First Loop Transformer
- ID: 5094532b
- 原文链接: https://z.ai/blog/glm-5.4
- 作者: Z.ai
- 日期: 2026-11-23
- 更新: 2026-11-23
- 分类: models
- 来源类型: blog
- 标签: loop-transformer, coding, architecture, kv-cache, inference-efficiency
- 质量评分: 4/5
- 抓取时间: 2026-11-24T12:20:00Z
中文导读
GLM-5.4 是智谱首个基于 Loop Transformer 的旗舰模型:把 GLM-5 基座的 28 层权重共享循环执行两次,750B 参数规模下声称达到 2T-3T 稠密模型的智能水平。为了在循环化后控制部署成本,做了三处改造:逐迭代门控渐进写入残差流、跨循环 KV 共享加滑动窗口(1M 上下文下额外一轮只多一个窗口的 KV)、稀疏注意力索引直接复用。30B 等参数对照实验里,仅多约 10% 训练算力,数学、科学推理与长上下文任务明显提升,思考输出长度还降了 10-14%。推理端错峰最高 200 tokens/s,高峰保持 70-80。定位是"广义编码":用代码生成视频、游戏、3D 场景与机械 CAD。权重计划在安全加固后开源,API 即将上线。已知局限是容易陷入过长的"马拉松思考"。
为什么值得关注
Loop Transformer 是"权重共享换深度"在 750B 旗舰上的首次落地,等参数 +10% 训练算力就换来长链推理收益,说明循环深度可以是参数堆叠之外的另一条扩展轴;30B 等参数对照与 200K 长上下文 SFT 后的评测让这个结论有可核对的实验设置。混合 KV 缓存把额外循环的推理开销压到接近一个滑动窗口,配合稀疏索引复用和内核融合做到 200 tokens/s,对部署侧是可直接引用的工程数字。它延续的正是 Model Carving 等工作之后"循环/共享深度"这条线的产业验证。
关键信息
- 标题:GLM-5.4: Toward Generalized Coding with Our First Loop Transformer
- 作者/机构:Z.ai
- 链接:https://z.ai/blog/glm-5.4
- 发布时间:2026-11-23
- 架构:GLM-5 基座 28 层 × 2 次权重共享迭代,750B 规模,声称对标 2T-3T 稠密模型智能
- 三处架构改造:Gated Progressive Updates、Hybrid KV Cache(跨循环共享 + 滑动窗口)、Sparse Attention Index Reuse
- 等参数对照:30B 同架构模型,约 +10% 总训练算力;GPQA-Diamond、MMLU-Pro 等基准输出长度降 10-14%
- 推理吞吐:错峰最高 200 tokens/s,高峰 70-80 tokens/s
- 后续:更大模型在路上;权重安全加固后开源;API 即将上线
English Summary
GLM-5.4 is Z.ai's first flagship model built on a Loop Transformer: 28 layers of the GLM-5 base run for two weight-shared iterations at 750B scale, claimed to reach intelligence comparable to 2T-3T parameter models. Three changes make looping deployable: per-iteration gated progressive updates, a hybrid KV cache that reuses cross-loop KV plus a local sliding window (an extra loop costs one window rather than a full context cache at 1M lengths), and sparse attention index reuse with zero indexing overhead. A controlled iso-parameter ablation on a 30B model with ~10% more total training compute shows the largest gains in math, scientific reasoning, and long-context tasks, with average output length dropping 10-14% as part of the reasoning shifts into implicit loop depth. Inference reaches up to 200 tokens/s off-peak and maintains 70-80 tokens/s at peak. Z.ai frames this as the start of Generalized Coding: code as the foundation for generating videos, games, 3D scenes, and engineering-grade CAD. Model weights are planned to be open-sourced after safety hardening. Known limitation: the model can get caught in overly long marathon-thinking loops, though the prolonged reflection consistently improves accuracy beyond its parameter count.
Obsidian Notes
- 内容由
opencli web read抓取 z.ai 官方博客全文(约 9.7KB markdown)生成,架构细节与数字均出自博客正文。 - 中文导读与价值判断锚定在博客声明的架构参数、对照实验与吞吐数字上;未补充博客之外的第三方评测。