GLM-5 by Z.ai: The 744B Open-Weight MoE Model Closing the Gap in Agentic Coding
AI releases are constant, but only a few meaningfully shift the “what can we actually ship with this?” line. GLM-5 from Z.ai (Zhipu AI / Knowledge Atlas Technology) is one of those releases: an open-weight model under MIT license with a clear target — agentic engineering, meaning long-horizon tasks like debugging, refactoring, tool orchestration, and web-scale research. It’s also a strategic milestone: Zhipu AI became publicly listed in Hong Kong in early 2026, and GLM-5 was announced right in the middle of an intense competitive cycle among Chinese AI labs.
- A benchmark scorecard with context (what each benchmark actually measures).
- The non-marketing architecture details: MoE size, active params, experts, and long-context design.
- What “Slime” changes in post-training and why it matters for agent behavior.
- Reality check: cost, inference footprints, and who can truly self-host GLM-5.
Quick Summary: Why GLM-5 Is a Big Deal (and What It Isn’t)
- Open-weight under MIT: weights released for commercial use (rare at this performance level).
- Agentic-first design: tuned for long-horizon tasks (agents, tool calling, repo work).
- Massive MoE scale: 744B total parameters with 40B active per token.
- Expert routing details: 256 total experts, with 8 routed experts per token (plus shared experts), optimized to reduce communication overhead.
- Long context: supports up to 200K tokens, enabled by DeepSeek Sparse Attention (DSA).
- Strong coding + agents: headline scores include 77.8 on SWE-bench Verified and 56.2 / 60.7 on Terminal-Bench 2.0 (verified version).
- Reliability shift: Artificial Analysis reports -1 on AA-Omniscience (lower hallucination), achieved largely by better abstention behavior.
- Important limitation: GLM-5 is text-only (no native image input).
- Reality check: native BF16 weights are enormous (~1.49 TB memory footprint); most people will use FP8 or APIs.
Why GLM-5 Matters: Capability, Openness, and Hardware Strategy
Most “frontier-ish” performance lives behind proprietary APIs. GLM-5 is interesting because it tries to combine three things: (1) high-end agent performance on public benchmarks, (2) open availability under a permissive license, and (3) non-NVIDIA ecosystem readiness (Z.ai states full-stack optimization across multiple domestic chip platforms; Reuters also noted inference on Chinese-manufactured chips including Huawei Ascend and others).
If you’re a developer or a team building tools, the value is obvious: open-weight models are the only practical route to deep customization, on-prem deployment, and repeatable evaluation. But GLM-5’s “open” story comes with a catch: it’s open-weight, yet extremely large — meaning the deployment economics decide who can truly use it locally.
Benchmark Scorecard: The Numbers People Quote (with Context)
Below is a compact scorecard based on the official GLM-5 model card benchmarks (same table that compares against DeepSeek-V3.2, Kimi K2.5, Claude Opus 4.5, Gemini 3 Pro, and GPT-5.2 variants). The key: look at which benchmarks match your workload.
Key Benchmark Results (GLM-5 vs selected frontier peers)
| Benchmark | What it measures (roughly) | GLM-5 | Comparable reference point |
|---|---|---|---|
| SWE-bench Verified | Real GitHub issue fixing (agentic coding) | 77.8 | Claude Opus 4.5: 80.9 / Gemini 3 Pro: 76.2 |
| Terminal-Bench 2.0 (Verified) | Terminal agent tasks under constraints | 56.2 / 60.7 | Claude Opus 4.5: 59.3 / GPT-5.2 (xhigh): 54.0 |
| BrowseComp (w/ context management) | Web-scale retrieval + synthesis under “memory management” | 75.9 | Kimi K2.5: 74.9 / GPT-5.2 (xhigh): 65.8 |
| τ²-Bench | Multi-tool planning + orchestration | 89.7 | Gemini 3 Pro: 90.7 / Claude Opus 4.5: 91.6 |
| GPQA-Diamond | Graduate-level science QA | 86.0 | Gemini 3 Pro: 91.9 / GPT-5.2 (xhigh): 92.4 |
| Vending Bench 2 | Long-horizon business sim (agent persistence) | $4,432 | Claude Opus 4.5: $4,967 / Gemini 3 Pro: $5,478 |
Why benchmark setups matter (and what GLM-5’s authors disclose)
A useful detail: the GLM-5 model card includes evaluation notes (frameworks, timeouts, context sizes). For example, SWE-bench uses OpenHands with a tailored prompt, and Terminal-Bench runs via Terminus under CPU/RAM caps. They also publish a “verified” Terminal-Bench 2.0 dataset to address ambiguous instructions and environment issues — which is exactly the kind of transparency that makes results more actionable.
Architecture: 744B MoE + DSA Long Context (200K tokens)
GLM-5 is a Mixture-of-Experts (MoE) model: enormous total capacity, but only a slice is active per token. The technical report describes GLM-5 as 744B total parameters with 40B activated. The same report lists 256 total experts, with 8 routed experts per token, and an architecture tuned to reduce expert-parallel overhead (e.g., fewer layers compared to prior variants).
Long context is not just “more tokens”: it requires architectural and data changes to avoid collapse in attention quality. GLM-5 integrates DeepSeek Sparse Attention (DSA) to preserve long-context capacity while cutting compute costs. In the technical report’s framing, DSA adds an indexer that retrieves top-k key-value entries and computes attention sparsely over that subset — a design that improves both training and inference efficiency without giving up long-range understanding.
“Slime”: Post-Training Infrastructure for Scaling Agent RL

Source: thudm.github.io
Slime is described as an asynchronous reinforcement-learning infrastructure that decouples rollout generation from training, aiming to scale agent RL without synchronisation bottlenecks.
The marketing headline is “asynchronous RL,” but the deeper point is infrastructure: scaling agent post-training is typically bottlenecked by synchronization and rollout throughput. The GLM-5 report describes a pipeline that decouples generation from training, improving GPU utilization and allowing much broader exploration of agent trajectories. On top of that, they propose asynchronous agent RL algorithms intended to improve planning and self-correction in long-horizon interactions.
This is the difference between a model that writes nice code in isolation and a model that survives the messy reality of real systems: tool output is noisy, intermediate steps fail, and the agent must keep state across many turns. GLM-5’s authors explicitly measure this using long-horizon evaluations like Vending Bench 2.
Reliability: Lower Hallucination by Better Abstention
Hallucination is the quiet killer of “agentic productivity.” If an agent confidently invents function signatures or API behavior, you get expensive debugging loops and fragile automation. Artificial Analysis reports that GLM-5 reaches -1 on its AA-Omniscience Index — described as a significant improvement versus GLM-4.7. The important nuance: this improvement appears to come with more abstention (the model is more willing to say “I don’t know” instead of guessing).
Cost & Accessibility: Open Weights, Expensive Reality
GLM-5 is “open” in licensing terms, but it’s still a frontier-scale model. Artificial Analysis estimates that storing the weights in native BF16 requires roughly 1,490 GB of memory — effectively limiting true self-hosting to organizations with serious GPU clusters. That’s why the ecosystem focus is on FP8 variants and third-party inference providers.
If you’re evaluating GLM-5 for production, there are three realistic routes:
- API-first (Z.ai first-party or third-party providers): fastest time-to-value, easiest scaling.
- FP8 self-host (for teams with GPU infrastructure): strong trade-off between cost and performance.
- BF16 self-host (rare): maximum fidelity, maximum hardware pain.
Serving GLM-5 locally (minimal, practical pointers)
The official model card lists supported inference stacks including vLLM and SGLang. If you want a quick “does this work in my environment?” sanity check, start with the FP8 weights and a single OpenAI-compatible endpoint.
# Example: vLLM (nightly) + latest Transformers (per model card guidance)
pip install -U vllm --pre --index-url https://pypi.org/simple --extra-index-url https://wheels.vllm.ai/nightly
pip install git+https://github.com/huggingface/transformers.git
# Example: SGLang via Docker (check the model card for tags & hardware notes)
docker pull lmsysorg/sglang:glm5-hopper
How GLM-5 Compares in “Chat Quality” (Chatbot Arena)
Benchmarks like SWE-bench or Terminal-Bench tell you about engineering ability. But what about pure conversational preference? On Text Arena (Feb 19, 2026 snapshot), GLM-5 scores 1455±8 and sits around the top ~15 models overall. The very top of that leaderboard is still dominated by proprietary systems like Claude Opus 4.6.
Translation: GLM-5 is not just a “numbers model.” It’s also strong in general chat — but its defining advantage remains agentic engineering + openness, not being the single best chat model by Elo.
Who Should Use GLM-5 (and Who Shouldn’t)
GLM-5 is a good fit if you…
- build developer tools, coding agents, or internal automation that runs for many steps.
- need open weights under a permissive license for customization or on-prem constraints.
- care about long-context workflows (multi-file codebases, large docs, long transcripts).
- want a model that is more willing to abstain rather than hallucinate in high-risk domains.
GLM-5 is not ideal if you…
- need native multimodal input (images) — GLM-5 is text-only.
- want an easy local install on consumer hardware (the BF16 model is enormous).
- only need casual chat; smaller models or cheaper endpoints may be more cost-effective.
Conclusion
GLM-5 is one of the clearest signals yet that “open-weight” models can be credible contenders in agentic engineering — not by matching every frontier model on every metric, but by focusing on the tasks that matter for real systems: long-horizon behavior, tool orchestration, and software work. The strongest argument isn’t a single benchmark line — it’s the combination of MoE scale, long-context DSA, and agent RL infrastructure designed to produce stable agent behavior.
If you’re choosing a model for building products rather than demos, GLM-5 is worth a serious evaluation — especially if open licensing and agentic workflows are central to your roadmap.
Frequently Asked Questions (FAQs)
Is GLM-5 really “open source”?
GLM-5 is best described as open-weight: the model weights are released under an MIT license (commercial use allowed), and there are official repositories and deployment guides. “Open source” as a term is often used broadly in the LLM world, but the important practical point is: you can legally download and deploy the weights under permissive terms.
What makes GLM-5 “agentic” compared to a normal chat model?
“Agentic” means it’s optimized for multi-step work: tool calling, planning, long-running tasks, and maintaining coherence across many turns. GLM-5 is evaluated on agent-focused benchmarks (Terminal-Bench, BrowseComp, MCP-Atlas, τ²-Bench) and uses a post-training pipeline designed to learn from long-horizon interactions.
Can I run GLM-5 on my own GPU workstation?
In native BF16, the weight footprint is extremely large (on the order of ~1.49 TB memory). Practically, most users will either: use the FP8 weights, run on a multi-GPU server/cluster, or consume GLM-5 through an API provider.
Which benchmark numbers matter most for real engineering work?
For software tasks and agents: SWE-bench Verified, Terminal-Bench, BrowseComp, and τ²-Bench. For academic-style knowledge: GPQA and HLE. Always check the evaluation setup (agent framework, timeouts, context limits) before assuming any single number transfers to your stack.