glm-5.4:cloud

47 yesterday

GLM-5.4 is Z.ai’s new flagship model built on a Loop Transformer architecture.

vision tools thinking cloud
Cost /1M tokens
$1.40
input
$0.26
cached
$4.40
output
Context
1M tokens
Size
744B parameters
ollama run glm-5.4:cloud

Readme

GLM-5.4 is Z.ai’s new flagship model built on a Loop Transformer architecture so the model gets more compute per token with the same number of parameters to be more efficient when compared to larger models.

Highlights

  • 1M token context window and up to 128K output tokens
  • Uses 10 to 14% fewer output tokens than a non-looped model of the same size in Z.ai’s tests, mostly from shorter thinking
  • Largest gains in math, science, and long-context tasks
  • Supports tool calling and structured output

Z.ai has been training GLM-5.4 to use code for work outside regular software development. It can write code to edit a music video, design a robotic arm in FreeCAD, build a full game with physics and combat, and render a 3D scene with custom GLSL shaders.

Recommended settings

  • Temperature: 1.0
  • Top P: 0.95
  • Thinking is always on

Known limitations

On hard problems GLM-5.4 can think for a very long time before answering. Z.ai says the extra thinking usually improves accuracy, but expect slower responses.

References