12-04 更新 实时
首页/ 技术栈/ 正文

GLM-5.4:首个循环 Transformer 迈向通用编程

技术栈 来源:Simon Willison 2026-11-24 07:40 6 阅读 机器翻译
GLM-5.4:首个循环 Transformer 迈向通用编程

2026年11月23日 - Link Blog

GLM-5.4:以我们的首个循环 Transformer 迈向通用化编码。GLM 5.4 现已由中国 AI 实验室 Z.ai 发布。这是他们首个采用循环 Transformer 架构的模型,他们如此描述:

在标准 Transformer 中,每一层在前向传播中只运行一次。而在循环 Transformer 中,一组共享权重的层会运行多轮迭代,对上一轮传递得到的隐藏状态进行细化。这让我们在不增加参数量的前提下获得更深的网络。

这是我在过去一周里第二次看到关于循环 Transformer 的提及——第一次是 Thinking Machines Lab 在 11 月 20 日推出的 Inkling 2 Mini,他们表示:

Inkling 2 Mini 是一个循环 Transformer,对每个 Token 都会将模型的中间层运行三次。这使模型能够进行更多推理,并以更少的 Token 得出正确答案,尤其是在依赖推理质量的智能体式编码等任务上。

GLM 5.4 目前(还?)没有以开放权重的形式提供。我用 Z.ai API 试用了一下,为此我必须订阅他们的 Coding Plan 套餐,因为目前无法通过常规 API 访问 5.4。

事实证明,Coding Plan 和常规 API 共用同一个兼容 OpenAI 的 Responses API(位于 https://api.z.ai/api/v1),Coding Plan 的 API 密钥在该接口上可以正常使用,并让我访问到了这个新模型。

我做了一个 llm-glm 插件,随后才意识到 Tommy Hughes 的 llm-zai 已经存在了!我之所以还是发布了自己的插件,纯粹是因为 llm-zai 尚不支持这个新模型,但等那个插件跟上之后,我很可能会让自己的插件退役。

这是 GLM-5.4 在 low、high 和 max 三档下的鹈鹕测试结果。下面这张是 max 档的:

我意识到自己从没跑过 GLM-5.3 的鹈鹕测试,所以这里补上相同档位的结果。质量看起来和 5.4 差不多。

有意思的是,GLM 5.1 和 GLM 5.2 生成的鹈鹕与其他模型截然不同。而 5.3 和 5.4 的鹈鹕与我用 OpenAI 或 Anthropic 模型得到的结果可比性高得多——前几代有着自己独特的样子。

我做了一张对比网格图,把四代 GLM 的鹈鹕放在一起。5.2 到 5.3 之间的风格转变相当明显。

发布于 2026 年 11 月 23 日晚上 11:40

Ladybird 的首个 alpha 版本——2026 年 11 月 23 日

这是 Simon Willison 发布的链接帖,发布于 2026 年 11 月 23 日。

每月赞助我 10 美元,即可获得当月最重要 LLM 进展的精选邮件摘要。

付钱给我,我就少给你发点!

译文由英文原文机器翻译,术语按行业惯例统一,可在文末展开原文核对。

查看英文原文(GLM-5.4: Toward Generalized Coding with Our First Loop Transformer)

23rd November 2026 - Link Blog

GLM-5.4: Toward Generalized Coding with Our First Loop Transformer. GLM 5.4 is now available from Chinese AI lab Z.ai. It's their first model to use a looped transformer architecture, which they describe like this:

In a standard Transformer, each layer runs once per forward pass. In a Loop Transformer, a group of weight-shared layers runs for multiple iterations, refining the hidden states from the previous pass. This gives us a deeper network without increasing the parameter count.

This is the second mention of looped transformers I've seen in the past week - the first was Inkling 2 Mini from Thinking Machines Lab on November 20th, who said:

Inkling 2 Mini is a looped transformer, running the middle layers of the model three times for every token. This allows the model to apply more reasoning and reach the right answer with fewer tokens, especially on tasks such as agentic coding that depend on reasoning quality.

GLM 5.4 is not (yet?) available as open weights. I tried it out using the Z.ai API, for which I had to sign up for their Coding Plan subscription because 5.4 cannot currently be accessed through the regular API.

It turns out both coding plan and regular API share the same OpenAI-compatible Responses API (at https://api.z.ai/api/v1), and the API key for the coding plan worked with that and gave me access to the new model.

I built a llm-glm plugin, then realized that llm-zai by Tommy Hughes already exists! I've shipped mine purely because llm-zai doesn't yet support the new model, but I'll likely retire mine once that plugin catches up.

Here are pelicans for GLM-5.4 on low, high, and max. This is the max one:

It's not great to be honest - the pelican is recognizable, but the bicycle frame has a funny front bar connection post and doesn't look like it would steer.

I realized I never ran pelicans for GLM-5.3, so here those are for the same effort levels. They look similar in quality to 5.4.

It's interesting how GLM 5.1 and GLM 5.2 produced radically different pelicans from other models. The pelicans for 5.3 and 5.4 are much more comparable to those I get from OpenAI or Anthropic models - the previous generations had their own distinctive look.

I made a comparison grid showing the four generations of GLM pelicans all in one place. The style transition between 5.2 and 5.3 is pretty stark.

Posted 23rd November 2026 at 11:40 pm

Ladybird's first alpha release - 23rd November 2026

This is a link post by Simon Willison, posted on 23rd November 2026.

Sponsor me for $10/month and get a curated email digest of the month's most important LLM developments.

Pay me to send you less!

原文为英文,正文由自动抓取并保留原文。

本文由采集器自动同步

原文发布于 Simon Willison(GLM-5.4: Toward Generalized Coding with Our First Loop Transformer),标题、摘要与正文由机器翻译,术语按行业惯例统一,未经人工逐句校订。

阅读原文 ↗