Skip to content

Z.ai releases GLM-5.4, a coding model that repeats its own layers

News
A close view of translucent red layers and a looping copper ribbon on a layered silicon package.
Editorial illustration of repeated model layers.
Z.ai has released GLM-5.4, a flagship coding model that runs part of itself twice before producing each token. The Chinese AI lab is using the extra pass to tackle work that combines code with images, such as editing video or building a 3D scene. Early access started on November 23.
The launch begins with the GLM Coding Plan and Z.ai’s own products, including ZCode and Z.ai Chat. Z.ai plans to open wider API access after a safety review. Downloadable weights are also planned, with no date given in the launch announcement.

What the model runs twice

In a conventional transformer, the model passes through each layer once as it processes a token. GLM-5.4 runs 28 of the base model’s layers twice. Those passes use the same stored weights. Think of it as letting part of the model work through the problem again using what it computed the first time.
The design adds a step to each pass through the model. That extra work matters when teams want fast answers. Z.ai says it limits the added cost by sharing some stored attention data across passes and reusing information about which parts of a long prompt to look at. The company says it tried the method on smaller systems before applying it to its 750-billion-parameter base.

Z.ai is testing code as a way to build visual work

The company showed demos that mix code and vision. They include a game, video effects, code that defines how a 3D surface looks, and a mechanical arm designed in FreeCAD.
Take the FreeCAD example. A model can write code to define a shape, use the rendered view to see how it looks, then revise the code. That makes images part of the feedback a coding tool can use. A team doing this work still needs to check the resulting file, dimensions and design against its own brief.
The demos also point to a useful way to assess the release. A software team can give the model a visual brief and see whether the result works when the project runs. A polished screenshot gives a narrower view than a file that opens and can be edited in the right tool.

Where to try GLM-5.4

Developers using ZCode can choose the model through the GLM Coding Plan, according to ZCode’s connection guide. The company also brought the model to AutoClaw. It says V2, V3 and Team Edition subscribers can get 1.5 times their usage quota when they use the model in that app. Those terms are specific to the AutoClaw offer.
Teams that plan to call GLM-5.4 from their own product will need details on general API access. Teams looking to host it will need the weights and license terms. For now, the quickest way to judge it is on one real task inside the tools where it has launched.
loading

Loading