back to local model checker

GLM-5.4

MoEToolsThinkingVisionVideo

Z.ai · 750B (40B active ×2 loop) · Mixture of Experts

Z.ai ~750B Loop Transformer (78 weight layers / 106 effective passes, 1M context, 128K output, Video/Image/Text/File) — 55.3% on King Bench 4 (+5.7 over GLM-5.3); hosted on $18/mo GLM Coding Plan while open weights undergo safety hardening

Downloads

0

Likes

0

Released

2026-11

Context

1M tokens

Use cases

codereasoningvisionvideochat
Total experts256
Active experts8
Active params40.0B

Your hardware

16 GB Reference Desktop

Quant
Q4_K_M
Memory
384.7 GB
Speed
--
Fit
Too heavy

Quantization options

What is quantization?
QuantBitsVRAMDiskQualityStatus
Q2_K2240.6 GB229.2 GBlowToo heavy · ~1 t/s
Q3_K_M3336.6 GB320.9 GBmoderateToo heavy · ~1 t/s
Q4_K_M4384.7 GB366.7 GBgoodToo heavy · ~1 t/s
Q5_K_M5480.7 GB458.4 GBgoodToo heavy · ~1 t/s
Q6_K6576.8 GB550.1 GBexcellentToo heavy · ~1 t/s
Q8_08768.8 GB733.4 GBexcellentToo heavy · ~1 t/s
F16161537.2 GB1466.8 GBlosslessToo heavy · ~1 t/s

GLM-5.4 Benchmark, Pricing & Loop Transformer Status (Nov 2026)

Open Weights Pending · $18/mo Hosted

Launched Nov 23, 2026 by Z.ai, GLM-5.4 runs a 78-weight-layer / 106-effective-layer Loop Transformer (26 head + 28×2 looped middle + 24 tail) with 1M context, 128K output, and native Video / Image / Text / File inputs. Open weights are pending safety hardening; VRAM figures above reflect projected ~750B MoE sizing.

ModelKing Bench 4Architecture / ContextPricing & Weights
GLM-5.4 (max effort)33.2 / 60 (55.3%)~750B Loop MoE (106 eff. layers) · 1M / 128K$18/mo GLM Coding Plan · Weights pending
GLM-5.327.5 / 60 (45.8%)753B / 40B-active MoE · 1M (text-only)MIT Open Weights (HF)
GPT-6.1 Sol / Kimi K3.1 Pro33.0 / 32.2 (55.0% / 53.7%)Frontier Coding AgentsCloud API / Hybrid
Claude Fable 5.2 / Gemini 4 Neon42.0 / 37.9 (70.0% / 63.2%)Closed Frontier LeadersProprietary Cloud API

About this model

When sizing hardware for GLM 5.4 (GLM-5.4), released on November 23, 2026 by Z.ai (Zhipu AI), GLM-5.4 is Z.ai’s first flagship Loop Transformer built for generalized coding and multimodal reasoning. Rather than inflating unique parameter weights beyond the ~750B sparse MoE GLM-5 base, GLM-5.4 routes tokens through 26 head layers, loops twice through a shared 28-layer middle block, and exits via 24 tail layers—turning 78 stored weight layers into 106 effective layer passes per token with 1M context and 128K max output tokens across Video, Image, Text, and File inputs.

To stabilize 106-pass forward depth across a 1,048,576-token window without exploding activations or doubling KV memory, Z.ai introduced three mechanisms: per-token Gated Progressive Updates, a Hybrid KV Cache that shares pass-1 KV states alongside a compact 128-token sliding window on pass 2, and Sparse Attention Index Reuse. On the independent six-project King Bench 4 coding suite (max effort), GLM-5.4 scored 33.2/60 (55.3%)—a +5.7-point jump over GLM-5.3 (27.5/60) that ranks #1 among open-lineage labs ahead of GPT-6.1 Sol (33.0), Haiku 5.5 (32.5), Kimi K3.1 Pro (32.2), DeepSeek V4.1 Flash (31.0), and Qwen 4 Max (30.6).

Availability & Open Weights Disclosure: As of November 2026, GLM-5.4 is hosted inside Z.ai’s $18/month GLM Coding Plan, ZCode, and Z.ai Chat (delivering ~70–80 tok/s at peak load and up to 200 tok/s off-peak). Pay-as-you-go API billing and Hugging Face open weights have NOT yet been released while Z.ai completes safety hardening evaluations. The VRAM/RAM table above models projected local self-hosting memory (~462.5 GB Q4_K_M) based on its 78-layer ~750B weight footprint once GGUF/FP8 checkpoints drop.

Highlights

  • Loop Transformer (78 → 106 Layers)26 head + 28×2 looped middle + 24 tail layers deliver 106 effective passes from 78 stored weight layers with Hybrid KV Cache reuse.
  • King Bench 4: 55.3% (+5.7 pts)Scored 33.2/60 at max effort (#1 open-lineage model), surpassing GLM-5.3 (27.5), Kimi K3.1 Pro (32.2), and GPT-6.1 Sol (33.0).
  • $18/mo Hosted · Weights PendingLive now via Z.ai GLM Coding Plan ($18/mo, 70–200 tok/s, 1M context / 128K output); Hugging Face open weights pending safety release.

System requirements by device

Memory planning targets 419.1 GB minimum RAM/VRAM and 698.5 GB recommended memory. The baseline quant is Q4_K_M, estimated at 384.7 GB memory and 366.7 GB disk. Actual runtime usage shifts with context length, KV cache precision, and OS background overhead.

DeviceNotes
Mac (Apple silicon)Requires a 48 GB–192 GB Mac Studio or MacBook Pro Max/Ultra with enough unified wired budget for 384.7 GB.
Windows / Linux GPUPrefer dedicated NVIDIA RTX VRAM via CUDA (ComfyUI / Diffusers) so UNet, text encoder, and VAE buffers stay off PCIe RAM.
Phones & Compact Edge BoardsNot supported locally: mobile RAM ceilings and app watchdogs cannot hold multi-stage diffusion and VAE buffers.

Start with a short session and leave memory for the operating system. A file fitting on disk does not guarantee that it will load in memory.

Estimated memory by quantization

These are rough estimates, not tested minimum requirements. Check the actual file and runtime documentation; context, offloading and operating-system overhead can change the memory needed.

Quant TierEstimated memoryDisk SizeQuality
Q2_K240.6 GB229.2 GBlow
Q3_K_M336.6 GB320.9 GBmoderate
Q4_K_M384.7 GB366.7 GBgood
Q5_K_M480.7 GB458.4 GBgood
Q6_K576.8 GB550.1 GBexcellent
Q8_0768.8 GB733.4 GBexcellent
F161537.2 GB1466.8 GBlossless

How to run GLM-5.4 on your device

Start with a short prompt and the smallest quant that still gives the quality you need. A clean first run is more useful than loading a larger file with no memory headroom.

Windows

Use GLM-5.4 Today & Plan Multi-GPU Server Readiness

  1. Access GLM-5.4 immediately via Z.ai’s $18/month GLM Coding Plan or ZCode IDE integration while open weights remain in pre-release safety review.
  2. Set reasoning effort to high for interactive coding sprints to avoid max-tier "marathon thinking" latency (~7.2 hours across 6 full-repo benchmarks), reserving max effort for hard architectural debugging.
  3. For immediate offline / air-gapped self-hosting on multi-GPU Linux/Windows rigs (~463 GB Q4_K_M or DDR5 CPU-expert offload via llama.cpp -ot), deploy zai-org/GLM-5.3 until zai-org/GLM-5.4 weights publish.
  4. When GLM-5.4 GGUF/FP8 checkpoints land, keep Flash Attention and Hybrid KV cache quantization enabled to fit 128K–1M context windows inside 8×80 GB H100/A100 or dual-socket EPYC + RTX 5090 hybrid nodes.
Device how-to guide
Mac

GLM-5.4 Workflow on Mac Studio & Apple Silicon

  1. Note that even a 512 GB M3 Ultra Mac Studio sits right at the edge of ~750B Q4_K_M weights (~462.5 GB before macOS wired-memory limits); 16 GB–128 GB MacBooks cannot load full ~750B weights locally.
  2. Connect Claude Code, Cursor, or ZCode on macOS to Z.ai’s hosted GLM-5.4 Coding Plan ($18/mo) for 70–200 tok/s cloud inference with 1M context and native screenshot/video input.
  3. For 100% offline local coding on 16 GB–64 GB Apple Silicon Macs today, run Gemma 4 26B-A4B QAT or Qwen 3.6 35B-A3B locally via Ollama/MLX.
Device how-to guide

GLM-5.4 vs alternatives

ModelParamsContextMin RAMLicense
GLM-5.4750B (40B active ×2 loop)1M419.1 GB—
GLM-5.3753B (40B active)1M420.8 GBMIT
GLM-5.2753B (40B active)1M420.8 GBMIT
DeepSeek V4 Pro1.6T (49B active)1M894.1 GBMIT
Kimi K32.8T (104B active)1M1553.4 GBKimi

Use this table to choose the smallest nearby model that still matches the job. A related model with lower RAM can be the better local choice when the current page fits only at the edge of available memory.

Troubleshooting & performance tips

"Marathon Thinking" Latency on Max Effort

Z.ai and independent King Bench 4 testers noted GLM-5.4 can enter extended self-verification loops on max effort (~1.04M reasoning tokens across 6 projects). Drop effort to high (28.8/60) for routine PRs and cap max_tokens when running automated CI agents.

No Official Ollama or GGUF Checkpoint Published Yet

Z.ai has not released GLM-5.4 GGUF or safetensors weights yet—any third-party repo claiming to be quantized GLM-5.4 right now is a renamed older checkpoint. Use zai-org/GLM-5.3 for verified open weights until Z.ai publishes the official Hugging Face repo.

Frequently asked questions

Are GLM-5.4 open weights available to download on Hugging Face or Ollama yet?
No—as of late November 2026, Z.ai has not yet published GLM-5.4 open weights on Hugging Face or Ollama. Z.ai stated that open-source weights and pay-as-you-go API endpoints are scheduled after safety hardening evaluations. Until weights release, local developers who need downloadable checkpoints today should run GLM-5.3 or Gemma 4 locally, or access GLM-5.4 through the $18/month GLM Coding Plan.
How does GLM-5.4 perform on King Bench 4 and Artificial Analysis throughput metrics?
On AICodeKing’s six-project King Bench 4 suite, GLM-5.4 scored 33.2/60 (55.3%) at max effort—gaining +5.7 points over GLM-5.3 (27.5) and placing 7th overall (#1 outside closed US frontier labs Claude Fable 5.2 at 42.0 and Gemini 4 Neon at 37.9). Across effort tiers it scored 25.2 (low), 24.1 (medium), 28.8 (high), and 33.2 (max). Hosted throughput reaches 70–80 tok/s during peak hours and up to 200 tok/s off-peak, though max-effort runs exhibit heavy "marathon thinking" token verbosity (~1.04M reasoning tokens across 1,128 steps).
What is GLM-5.4 pricing right now?
GLM-5.4 is currently bundled into Z.ai’s GLM Coding Plan at $18/month alongside ZCode and Z.ai Chat access, supporting 1M input context, 128K output tokens, and Video/Image/Text/File inputs. Standalone per-million-token pay-as-you-go API pricing will be announced alongside the public API rollout.
Why does the Loop Transformer architecture matter for future local VRAM sizing?
Because GLM-5.4 iterates twice over its shared 28-layer middle block instead of adding 28 new parameter layers, its disk and weight VRAM footprint stays anchored to 78 stored layers (~750B total MoE parameters, ~462.5 GB at Q4_K_M)—avoiding the ~900 GB+ memory cliff a conventional 106-layer 1T+ parameter model would require, while reusing pass-1 KV cache states.
How does GLM-5.4 compare to GLM-5.3?
GLM-5.3 is a text-only 753B/40B-active MoE with MIT open weights already downloadable on Hugging Face. GLM-5.4 upgrades the architecture to a 106-effective-layer Loop Transformer, adds native multimodal inputs (Video, Image, File, Text) plus 128K output length, and improves King Bench 4 coding accuracy from 45.8% (27.5/60) to 55.3% (33.2/60), at the cost of longer reasoning chains on max effort.
What is the best way to run GLM 5.4 locally?
Choose the smallest quant that matches the task, test one short prompt, then compare RAM, context, and nearby models before making GLM-5.4 your default local model.