GLM-5.4
MoEToolsThinkingVisionVideoZ.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
0
0
2026-11
1M tokens
Use cases
Your hardware
16 GB Reference Desktop
Quantization options
What is quantization?| Quant | Bits | VRAM | Disk | Quality | Status |
|---|---|---|---|---|---|
| Q2_K | 2 | 240.6 GB | 229.2 GB | low | Too heavy · ~1 t/s |
| Q3_K_M | 3 | 336.6 GB | 320.9 GB | moderate | Too heavy · ~1 t/s |
| Q4_K_M | 4 | 384.7 GB | 366.7 GB | good | Too heavy · ~1 t/s |
| Q5_K_M | 5 | 480.7 GB | 458.4 GB | good | Too heavy · ~1 t/s |
| Q6_K | 6 | 576.8 GB | 550.1 GB | excellent | Too heavy · ~1 t/s |
| Q8_0 | 8 | 768.8 GB | 733.4 GB | excellent | Too heavy · ~1 t/s |
| F16 | 16 | 1537.2 GB | 1466.8 GB | lossless | Too heavy · ~1 t/s |
GLM-5.4 Benchmark, Pricing & Loop Transformer Status (Nov 2026)
Open Weights Pending · $18/mo HostedLaunched 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.
| Model | King Bench 4 | Architecture / Context | Pricing & 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.3 | 27.5 / 60 (45.8%) | 753B / 40B-active MoE · 1M (text-only) | MIT Open Weights (HF) |
| GPT-6.1 Sol / Kimi K3.1 Pro | 33.0 / 32.2 (55.0% / 53.7%) | Frontier Coding Agents | Cloud API / Hybrid |
| Claude Fable 5.2 / Gemini 4 Neon | 42.0 / 37.9 (70.0% / 63.2%) | Closed Frontier Leaders | Proprietary 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.
| Device | Notes |
|---|---|
| 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 GPU | Prefer dedicated NVIDIA RTX VRAM via CUDA (ComfyUI / Diffusers) so UNet, text encoder, and VAE buffers stay off PCIe RAM. |
| Phones & Compact Edge Boards | Not 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 Tier | Estimated memory | Disk Size | Quality |
|---|---|---|---|
| Q2_K | 240.6 GB | 229.2 GB | low |
| Q3_K_M | 336.6 GB | 320.9 GB | moderate |
| Q4_K_M | 384.7 GB | 366.7 GB | good |
| Q5_K_M | 480.7 GB | 458.4 GB | good |
| Q6_K | 576.8 GB | 550.1 GB | excellent |
| Q8_0 | 768.8 GB | 733.4 GB | excellent |
| F16 | 1537.2 GB | 1466.8 GB | lossless |
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.
Use GLM-5.4 Today & Plan Multi-GPU Server Readiness
- 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.
- 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.
- 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.
- 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.
GLM-5.4 Workflow on Mac Studio & Apple Silicon
- 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.
- 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.
- 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.
GLM-5.4 vs alternatives
| Model | Params | Context | Min RAM | License |
|---|---|---|---|---|
| GLM-5.4 | 750B (40B active ×2 loop) | 1M | 419.1 GB | — |
| GLM-5.3 | 753B (40B active) | 1M | 420.8 GB | MIT |
| GLM-5.2 | 753B (40B active) | 1M | 420.8 GB | MIT |
| DeepSeek V4 Pro | 1.6T (49B active) | 1M | 894.1 GB | MIT |
| Kimi K3 | 2.8T (104B active) | 1M | 1553.4 GB | Kimi |
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.