模型与实验室 4.0 · 优秀 2026-11-23 · 文章

GLM-5.4: Toward Generalized Coding with Our First Loop Transformer

Z.ai 的 GLM-5.4 是首个基于 Loop Transformer 的旗舰模型:GLM-5 底座 28 层权重共享跑两轮迭代,750B 规模宣称对标 2T-3T 参数模型三个工程改动撑住规模化:每轮独立 per-token 门的渐进更新稳定激活尺度;跨循环 KV 共享加独立滑窗,多跑一圈只多一份滑窗 KV,1M 上下文成本可控;第二轮直接复用第一轮稀疏索引30B 同参数消融显示约 10% 额外算力换数学科研推理长上下文显著收益,思考 token 反而省 10-14%;闲时吞吐 200 tokens/s,权重计划安全加固后开源用计算深度换参数规模这条路线值得持续跟踪

打开原文回到归档

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)生成,架构细节与数字均出自博客正文。
  • 中文导读与价值判断锚定在博客声明的架构参数、对照实验与吞吐数字上;未补充博客之外的第三方评测。