Skip to content

AI News

GLM-5.4 Explained: What Happens When 28 Layers Run Twice

By Miles Park·

Z.ai’s November 23 GLM-5.4 announcement describes a change inside the model. A group of 28 layers in the 750B-scale GLM-5 base is evaluated twice using shared weights. The second pass starts from the state that the first pass produced. For a developer, that adds internal work to a model call while keeping the same group of stored weights. Z.ai architecture announcement.

Z.ai’s official GLM-5.4 launch graphic showing a looping line
Z.ai’s launch artwork. The official article explains which layer group is repeated and how the model manages memory across passes. Original release.

Follow one state through two passes

A simple analogy uses a state of 2 and one shared rule that adds 3. The first application produces 5. The second takes that updated state and produces 8. We ran the calculation below. The real model updates vectors using learned gates, attention and other transformer operations. The example isolates the idea of feeding an updated state through the same block.

state = 2
for _ in range(2):
    state = state + 3
    print(state)
# Observed: 5, then 8

For the reused group, two passes mean 56 layer evaluations. That count applies to the group and does not measure the total model depth or API latency. Z.ai describes sharing selected attention information across passes and keeping a separate local window for the second pass. Those design choices matter because reusing weights still leaves memory and compute work during inference. Architecture and efficiency details.

Separate the architecture study from your own coding test

Z.ai’s comparable-parameter ablation used a 30B model and reported shorter outputs on several benchmarks. Those results apply to that experiment. If you already have Coding Plan access, the ZCode release notes and FAQ describe GLM-5.4 availability. For a local comparison, give both models one bounded repository task and collect the passing tests, completion time and quota usage. We checked the documents without running the hosted model. The launch note describes the general API and model-weight release as future work. ZCode release notes · ZCode model access FAQ.

JoCoding discussed the architecture on November 29. For a separate guide to evaluating reasoning settings on an actual task, read our Gemini example. JoCoding segment · Gemini 4 Neon reasoning comparison.

Join the discussion

Your email address will not be published. Required fields are marked *