r/opencode • • 3d ago

GLM-5.4

It is claimed to be in the 750B to 2–3T parameter range.

I can’t wait to see $60–$100 worth of credits offered once the weights are released publicly.

GLM-5.4, a new AI model from the Chinese company Z.AI, is based on a "loop transformer" architecture; by reusing neural network layers, it achieves performance levels comparable to much larger models.

In the standard transformer models widely used today, each layer is executed only once during a single computational pass. In the loop transformer architecture, however, a group of layers—sharing the same weights—is executed multiple times, allowing the model to re-process and refine its intermediate results. This approach increases computational depth without requiring an increase in the number of model parameters. According to the company, this enables GLM-5.4 to attain reasoning capabilities comparable to models with 2 to 3 trillion parameters.

149 Upvotes

27 comments sorted by

View all comments

15

u/Amarsir 2d ago

I was initially excited and am still a bit optimistic. But in the last week I've learned:

  1. This is basically the 5.3 model with the loop transformer. So don't expect that much, but if this does prove promising then 5.5 will be the release to get excited about. Because that would be updated training plus this tech.
  2. Google took a shot at loop transformers a few years ago and gave them up. Their conclusion is that it's harder to train than exposed separate layers.

5

u/warpaint_james 2d ago

On OpenRouter it does seems that most of the 5.4 providers can serve it much faster than 5.3. So not nothing!

https://openrouter.ai/compare/z-ai/glm-5.4/z-ai/glm-5.3-flash

3

u/Amarsir 2d ago

Yeah, and it’s supposed to be fewer tokens too. I think the tight loops take the place of iterative reruns on high thinking levels.

Considering 5.3 could be rather slow, this will be a very welcome addition.

2

u/taylor_daniel-9 21h ago

Fewer output tokens don't automatically mean less compute: the loop repeats internal layers, so actual latency and cost still depend on serving efficiency.