EveryDev.ai
Subscribe
Main Menu
  • Tools
  • Developers
  • Topics
  • Discussions
  • Communities
  • Users
  • News
  • Podcasts
  • Blogs
  • Builds
  • Contests
  • Compare
  • Arena
  • Polls
Rate toolsCreate
AI Tools by Topic
  • AI Coding Assistants
  • Agent Frameworks
  • MCP Servers
  • AI Prompt Tools
  • Vibe Coding Tools
  • AI Design Tools
  • AI Database Tools
  • AI Website Builders
  • AI Testing Tools
  • LLM Evaluations
Follow Us
  • X / Twitter
  • LinkedIn
  • Reddit
  • Discord
  • Threads
  • Bluesky
  • Mastodon
  • YouTube
  • GitHub
  • Instagram
Get Started
  • Users
  • Rate Tools
  • About
  • Editorial Standards
  • Corrections & Disclosures
  • Community Guidelines
  • Advertise
  • Contact Us
  • Newsletter
  • Submit a Tool
  • Start a Discussion
  • Write A Blog
  • Share A Build
  • Terms of Service
  • Privacy Policy
Explore with AI
  • ChatGPT
  • Gemini
  • Claude
  • Grok
  • Perplexity
Agent Experience
  • llms.txt
Theme
With AI, Everyone is a Dev. EveryDev.ai ©
    1. Home
    2. News
    3. GLM-5.4: Z.ai Runs Its Layers Twice Instead of Building a Bigger Model

    GLM-5.4: Z.ai Runs Its Layers Twice Instead of Building a Bigger Model

    Noa Pelletier's avatarNP
    Noa Pelletier
    November 23, 2026·The build script can…
    Discuss (0)
    1795480835501-igcv9s

    GLM-5.4 is Z.ai's first flagship model built on a Loop Transformer, a design that runs the same block of layers more than once so the model can think longer without adding parameters. Z.ai released it on November 23 and says it reaches intelligence levels comparable to 2T to 3T parameter models [1].

    You can use it now through the GLM Coding Plan, Z.ai Chat, and ZCode, Z.ai's desktop agent app. ZCode shipped version 4.0.0 the same day with GLM-5.4 preconfigured [2]. The API is listed as coming soon.

    What Changed

    A normal transformer runs each layer once per token. Think of it as reading a page once and answering. A Loop Transformer reads part of the page a second time, using what it picked up on the first pass to sharpen the second. GLM-5.4 takes 28 layers of the GLM-5 base model and runs them for two iterations.

    The idea is old. Z.ai points to the 2018 Universal Transformer and recent work on looped models. What it did differently is skip training a looped model from scratch. It converted an already pre-trained base model through continued training, which it says raises the ceiling for a small amount of extra compute.

    Z.ai made three changes to keep this practical at 750B scale:

    • Per-token gates control how much each pass writes back, so values don't blow up across loops. The first pass writes carefully; the second writes in full.
    • The second loop reuses the first pass's KV cache and adds only a small sliding window of its own, so an extra loop costs one window of memory instead of a second full cache.
    • The second loop reuses the first loop's sparse attention indices, so looping adds no indexing work.

    What Z.ai Has Shown So Far

    Z.ai tested the design on 1B, 4B, 30B, and 750B base models. In a controlled test on a 30B model with the same parameter count and about 10% more training compute, the looped version gained most on math, scientific reasoning, and long-context tasks. On benchmarks such as GPQA-Diamond and MMLU-Pro, average output length dropped 10 to 14%, mostly from shorter chains of thought.

    That second result is the one to care about if you pay per token. Part of the reasoning moves into the loop instead of into output you are billed for. Keep in mind these are Z.ai's numbers from a 30B test model, and the "2T to 3T class" claim has no independent benchmarks behind it yet.

    Z.ai also reports speeds of up to 200 tokens per second off-peak and 70 to 80 tokens per second at peak load.

    What "Generalized Coding" Means

    Z.ai calls GLM-5.4 the start of "Generalized Coding": using code as the way a model handles work outside normal software. Its demos include a self-narrated music video, a 6-axis robotic arm modeled in FreeCAD, a full game with physics and combat, and a 3D scene built from math and custom GLSL shaders. ZCode's 4.0.0 notes say GLM-5.4 adds vision capabilities and stronger general coding to the app.

    The Part To Watch

    Z.ai is open about one weakness. The model tends to get stuck in "marathon thinking" loops of overly long reflection. Z.ai says this still improves accuracy, but on long agent runs, extra thinking costs time and tokens.

    Open weights are planned "after completing necessary safety hardening," with no date given.

    How To Try It

    The quickest route is ZCode. Version 4.0.0 is out for macOS, Windows, and Linux (beta), with GLM-5.4 set up for GLM Coding Plan subscribers. ZCode's site also lists GLM-5.3-Flash built in for screenshots and image analysis, and says the Coding Plan works with more than 20 agent tools, including Claude Code [3]. The site shows the Lite tier at $18 a month, currently discounted to $12.60.

    If you already run long agent tasks, rerun one you know well on GLM-5.4 and compare total tokens and wall-clock time, not just whether it finished. That's where the loop's promised savings and its marathon-thinking habit will both show up.

    Sources

    1. GLM-5.4: Toward Generalized Coding with Our First Loop Transformer, Z.ai
    2. ZCode Releases & Updates, ZCode
    3. ZCode homepage, ZCode
    View tool: ChatGPT Codex
    Promoted

    Sponsored

    ChatGPT Codex

    ChatGPT Codex

    OpenAI's agentic coding tool that runs in ChatGPT, your IDE, and the terminal to handle complex engineering tasks like bug fixes, refactors, and PR reviews.

    View tool
    Tagged inZCode·#AI Coding Assistants

    Comments

    Checking profile…