Z.ai发布GLM-5.4:首款采用Loop Transformer架构的模型
GLM-5.4: Toward Generalized Coding with Our First Loop Transformer
Loop Transformer是近期备受关注的架构创新,GLM-5.4作为首款落地的旗舰模型,值得开发者关注其API接入与能力表现。
GLM-5.4: Toward Generalized Coding with Our First Loop Transformer
GLM-5.4:迈向通用编码——我们的首个循环 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:
GLM 5.4 现已由中国 AI 实验室 Z.ai 发布。这是他们首款采用循环 Transformer 架构的模型,他们对此描述如下:
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.
在标准 Transformer 中,每一层在前向传播过程中仅运行一次。而在循环 Transformer 中,一组共享权重的层会进行多次迭代,从而优化上一轮传递得到的隐藏状态。这使得我们能够在不增加参数量的情况下构建更深的网络。
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:
这是我过去一周内看到的第二次提及循环 Transformer——第一次是 Thinking Machines Lab 于 11 月 20 日发布的 Inkling 2 Mini,他们表示:
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.
Inkling 2 Mini 是一个循环 Transformer,对于每个 token,它会运行模型中间层三次。这使得模型能够应用更多的推理能力,并以更少的 token 得出正确答案,尤其是在依赖推理质量的任务(如智能体编码)中。
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.
GLM 5.4 目前(尚未?)未以开放权重形式提供。我尝试通过 Z.ai API 使用它,为此我必须订阅他们的 Coding Plan(编码计划),因为目前无法通过常规 API 访问 5.4。
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.
结果发现,编码计划和常规 API 都共享同一个与 OpenAI 兼容的 Responses API(位于 https://api.z.ai/api/v1),且编码计划的 API 密钥在该接口上有效,使我能够访问该新模型。
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.
我开发了一个 llm-glm 插件,随后意识到 Tommy Hughes 已经存在 llm-zai!我发布我的版本纯粹是因为 llm-zai 尚不支持该新模型,但一旦该插件跟进支持,我可能会停用我的版本。
Here are pelicans for GLM-5.4 on low, high, and max. This is the max one:
以下是 GLM-5.4 在低、高和最大努力级别下的 pelicans(鹈鹕图)。这是最大努力级别的:
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.
我意识到我从未为 GLM-5.3 运行过 pelicans,因此这里展示了相同努力级别下的结果。它们的质量看起来与 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.
有趣的是,GLM 5.1 和 GLM 5.2 生成的 pelicans 与其他模型截然不同。5.3 和 5.4 的 pelicans 与我来自 OpenAI 或 Anthropic 模型的生成结果更为可比——前几代具有其独特的风格。
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.
我制作了一个对比网格,将四代 GLM 的 pelicans 集中展示。5.2 到 5.3 之间的风格转变相当显著。
Tags: ai, generative-ai, llms, llm, pelican-riding-a-bicycle, llm-release, ai-in-china, glm
标签:ai, generative-ai, llms, llm, pelican-riding-a-bicycle, llm-release, ai-in-china, glm
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力