← All Models

GLM 5.4

Z.ai's 750B-class vision-language model for software engineering and tool-driven tasks, with a looped Transformer architecture that runs a shared 28-layer block twice.

Run with LM Studio Cloud
Input$1.40Cached$0.14Output$4.40

About GLM 5.4

GLM 5.4 is Z.ai's first flagship model built on a Loop Transformer architecture. Adapted from the GLM-5 base through continued training, the 750B-class model reuses a shared block of layers to add computational depth without increasing its parameter count.

Reasoning through shared layers

GLM 5.4 Loop Transformer architecture showing shared layers, gated updates, and KV-cache reuse

Source: Z.ai.

GLM 5.4 runs 28 shared layers for two iterations, refining the representations produced by the first pass. Z.ai describes three changes that make this practical at flagship scale:

  • Gated progressive updates: per-token gates control how much each iteration writes into the residual stream, keeping activations stable while refining harder predictions.
  • Hybrid KV cache: the second pass reuses sparse global context from the first pass and maintains its own local sliding-window cache, avoiding a second full-context cache.
  • Sparse attention index reuse: the second pass reuses the first pass's selected attention indices rather than recomputing them.

Coding beyond software

Z.ai calls the model's focus Generalized Coding: using code and external tools to solve tasks beyond conventional software development. Its published examples include building games, generating interactive 3D scenes with custom shaders, creating engineering CAD models in FreeCAD, and producing and editing video through code. These are tool-driven workflows, not claims of native video generation.

Vision support lets the model work with visual inputs alongside coding and multi-step reasoning. It is intended for tasks that require maintaining consistency across long chains of implementation, testing, and revision.

Cloud availability

GLM 5.4 is available in the Cloud model picker in LM Studio Bionic, with vision support and a 300,000-token context limit.

Limitations

Z.ai notes that GLM 5.4 can become caught in overly long reasoning loops. For agent workflows, set appropriate output and execution limits.

At announcement, Z.ai said it planned to release the weights after additional safety hardening. No local download is currently available.

Architecture details, examples, and limitations are from Z.ai's GLM-5.4 technical blog.