GLM model — Open-source AI built for long-term tasks with one million context

NEW · GLM-5.3-FlashX launched

GLM-5.3-FlashX (launched 2026-09) is the high-speed edition of GLM-5.3-Flash: inference reaches 200 tokens/s — faster and smoother. Like Flash, it is the first natively multimodal model of the GLM-5 family — 320B total / 18B active parameters, with hybrid sparse + linear attention, supporting video / image / text / file input, with 1M context and 128K max output.

GLM-5.3-Flash released

GLM-5.3-Flash (released Aug 2026) is the first natively multimodal model of the GLM-5 family: vision built into the coding loop, accepting video / image / text / file input. It scores 57 on Artificial Analysis’ Intelligence Index — #4 globally, on par with Claude Opus 4.8 — at 1/40 the price.

GLM-5.3 released

GLM-5.3 (officially released 2026-08-14) is Zhipu's flagship MoE model. It reuses the exact GLM-5.2 base with no new pre-training data — all gains come from large-scale post-training. It targets long-horizon code engineering, terminal agents, and source-code vulnerability auditing. Motto: Built to Code. Ready for Cyber Defense.

GLM-5.3 is the flagship open-source GLM AI model: built on the GLM-5.2 base with fully upgraded post-training, a 50% gain in coding experience, 84.5% on CyberGym (currently leading) and a 6x jump on Terminal-Bench 3.0; its sibling GLM-5.3-Flash delivers frontier intelligence at 1/40 the price. Compare every GLM model below — or try the free AI playground first.

1M
Token Context
Improved from 200K, maintaining stability under agent load
84.5%
CyberGym
GLM-5.3 score — currently leading (GLM-5.2: 77.2%)
MIT
Open Source License
Open Weights, No Geographical Restrictions

Free AI Experience Center — Experience real-time open-source large language models

No registration required, no account required, no quota required. Real-time streaming responses can be obtained by entering prompt words.

The reply will be streamed out here...

This experience uses the GLM large language model, and real-time streaming responses can be obtained by entering prompt words.

Core capabilities of the GLM model family

Four capabilities define the current generation of GLM models — all reported by the model authors and reproducible from open rights.

Stable Million Contexts

A one-million-token context that stays usable and high-quality: GLM-5.3 shares the GLM-5.2 base and keeps training on long-horizon coding-agent trajectories — large-scale implementation, automated research and complex debugging.

Flexible Thinking Strength

Non-thinking, high, and highest three levels allow you to weigh between delay and capability for tasks — on the agent programming evaluation, about 63% (~35K output tokens) to 74% (~83K).

IndexShare architecture

Every four sparse attention layers share a lightweight indexer, reducing the FLOPs per token by 2.9 times under a context length of one million, while maintaining long-distance quality without loss.

MIT Open Source Weights

Open-source GLM models under the MIT license: weights are published on HuggingFace and ModelScope, without regional restrictions, and support local deployment through transformers, vLLM, SGLang, xLLM, and ktransformers.

GLM 5.3 Benchmarks: Long-Horizon & Security

Data below is reported by Zhipu’s official docs and the independent evaluator Artificial Analysis. glmmodel.cn only reports these results and does not run the evaluations.

Currently leading
84.5%

CyberGym

Source-code vulnerability discovery

GLM-5.384.5
Mythos 583.8
GPT-5.6 Sol83.6
GLM-5.277.2
Open-source SOTA
34.5%

Z.ai Code Bench

Agentic coding: higher accuracy with fewer tokens

GLM-5.334.5
Opus 4.829.5
GLM-5.223.4
6x gain
28.3

Terminal-Bench 3.0

Terminal agent tasks (GLM-5.2 scored 4.6)

GLM-5.328.3
GLM-5.24.6

GLM-5.3 surpasses GLM-5.2 on Terminal-Bench 3.0 (4.6→28.3), DeepSWE v1.1 (46.2→66.9) and Agents’ Last Exam (23.8→28.5), reaching open-source SOTA; it more than doubles GLM-5.2 on ExploitBench (54.4%). GLM-5.3-Flash scores 57 on the Artificial Analysis Intelligence Index (#4 globally), on par with Claude Opus 4.8.

AA Intelligence Index (Artificial Analysis)#4 global
GLM-5.3-Flash57
Opus 4.857
Class median29
DeepSWE v1.1+20.7
GLM-5.366.9
GLM-5.246.2
Agents' Last Exam+4.7
GLM-5.328.5
GLM-5.223.8
ExploitBenchx2.2
Mythos 578.0
GLM-5.354.4
GLM-5.224.4
ExploitGym 6hx3.3
Mythos 5247
GLM-5.3130
GLM-5.239
Z.ai Code Bench · High31.4
GLM-5.331.4
Opus 4.829.5
~40% of its token usage
Real-codebase security audit2,436
GLM-5.32,436
High/Med-risk1,097
269 projects

GLM-5.3 vs comparison models — benchmarks

Published GLM model benchmark results, covering 17 evaluations of 8 models.

Official GLM-5.3 comparison results published by Z.ai (2026-08-14)
BenchmarkGLM-5.3GLM-5.2Kimi K3DeepSeek-V4-ProQwen3.8-MaxOpus 4.8Fable 5GPT-5.6 Sol
Coding
Terminal-Bench 2.188.281.088.387.986.685.088.088.8
Terminal-Bench 3.028.34.617.4––21.133.734.6
DeepSWE v1.166.946.267.562.756.658.069.772.7
NL2Repo58.048.958.061.155.969.7––
ProgramBench (Almost Solved)19.09.517.5–10.515.533.023.0
FrontierSWE78.167.5–––66.588.2–
SWE-Marathon v1.142.519.448.1––48.833.142.5
PostTrainBench39.831.732.0––32.941.836.2
Cyber
CyberGym84.577.280.083.378.578.183.883.6
ExploitGym 2h / 6h105 / 13029 / 3936 / 70–14 / 2680 / 120181 / 247216 / 293
ExploitBench54.424.432.2–28.840.078.076.5
Agentic
Toolathlon Verified73.059.976.574.172.576.274.774.9
AutomationBench v1.0.648.226.246.743.239.841.046.245.8
Agents' Last Exam (ALE-CLI)28.523.827.625.727.025.723.828.6
HLE w/ Tools62.554.759.860.056.257.963.964.5
GDPval-AA v217691508168215901739158817431730

Source: Z.ai official blog (2026-08-14).

Thinking effort: low, high and max

GLM models come in more than one speed. Effort controls let you spend compute only when needed. GLM-5.3 always thinks (low / high / max, default max); per-tier efficiency figures are GLM-5.2 reported values, for reference.

Low

~63%

~35K average tokens

Scenarios where latency is more important than depth, such as quick editing, template code, and routine refactoring.

Most Used

High

~72%

~43K average tokens

The default choice for most agent programming: approaching the highest quality with about half the token consumption.

Highest

~74%

~83K average tokens

Difficult long-term problems — allocate additional computing resources only when the task truly requires it.

The table below shows GLM-5.3 against comparison models, as officially published by Z.ai. GLM-5.3 shares the GLM-5.2 base — every gain comes from post-training. glmmodel.cn only reports these results.

How does the GLM model achieve a million contexts?

Increasing the context limit from 200K to one million tokens is an engineering issue rather than a configuration parameter. Three modifications are key.

IndexShare sparse attention

Every four Transformer layers share a lightweight indexer. It is located at the first layer among the four, and its top-k index is reused by the other three layers — eliminating the dot product and top-k calculation in three-quarters of the layers. Result: Each token's FLOPs is reduced by 2.9 times under a context length of one million. IndexShare was introduced starting from a sequence length of 128K during the training mid-phase.

GLMMODEL — GLM-5.3 / GLM-5.3-Flash / GLM-5.3-FlashX Benchmarks & 1M Context Guide Layer N+3 Layer N+2 Layer N+1 Layer N Shared Indexer

MTP combined with IndexShare and KVShare

The multi-token prediction layer runs the indexer once in the first draft step and reuses it in subsequent steps, eliminating the mismatch between the training/inference KV cache of the previous generation. Combined with rejection sampling and end-to-end TV loss, the accepted length increases from 4.56 to 5.47 — about 20% — across 7 MTP steps.

MTP Acceptance Length Ablation Experiment
Baseline4.56
+ IndexShare + KVShare5.10
+ Reject Sampling5.29
+ End-to-End TV Loss5.47 (+20%)

Efficient Service for Million Contexts

After more than a few tens of thousands of tokens, the bottleneck is no longer computation, but the KV cache capacity, long context kernel, and CPU overhead. Three fixes: fine-grained memory management and parallelization based on LayerSplit, kernel optimization for context length scaling coordinated with the cache transfer pipeline, and CPU-side cache management, request scheduling, and runtime path optimization. The throughput advantage expands with the growth of context.

Normalized Throughput Advantage

Agent Reinforcement Learning Training

The training stack (slime) combines white-box and black-box rollouts, compact trajectories, and sub-agent workflows. Parallel OPD training merges more than a dozen expert models in about two days, and FP8 KV caching ensures that rollout memory does not exceed the budget.

Anti-Reward Hacker

Long-term RL can induce shortcuts, so suspicious actions are first passed through a rule-based recall filter, and then checked for accuracy by the LLM judge. Confirmed malicious actions are intercepted online and responded with virtual tool results, allowing rollouts to continue rather than be discarded. Based on Critic's PPO, compressible sub-traces are maintained for training on a single rollout.

An introduction to each GLM model, version by version

From 30B Flash level to a million-context flagship — choose a GLM model to view the complete specification table and benchmark data.

GLM-5.3FlagshipNew

Built on the GLM-5.2 base with fully upgraded post-training: open-source SOTA on complex coding and agent tasks, currently leading at vulnerability discovery.

GLM-5.3-FlashMultimodalNew

First natively multimodal GLM: vision in the coding loop, #4 globally on the AA Intelligence Index, Opus-4.8-level intelligence at 1/40 the price.

GLM-LegalLegalNew

Legal-domain vertical model on GLM-5.3-Flash: 19.2% on the Harvey LAB legal benchmark at roughly 1/70 the cost of closed-source peers. Beta.

GLM-5.2Prev. flagship

Previous flagship: one-million-token context, open-source SOTA for programming and long-horizon tasks.

GLM-5.1Inference

Previous generation flagship: significantly improved long-term capabilities and engineering-level outputs that can work autonomously for several hours.

GLM-5Inference

Stronger programming capabilities, more reliable multi-step execution, and better complex agent behavior.

GLM-5-TurboInference

Basic model, optimized for long chain and dynamic intelligent agent scenarios.

GLM-4.7Inference

Enhanced programming capabilities, stable multi-step inference, and improved frontend generation.

GLM-4.7-FlashLightweight

300 billion parameters; high efficiency and performance, strong among models of the same scale.

GLM-4.5-AirLightweight

Small-sized GLM model with excellent unit computing power performance.

GLM-ASRVoice

Real-time speech-to-text recognition, CER as low as 0.0717.

View all GLM models →

Scenarios where long-cycle GLM models excel

Large-Scale Implementation

Multi-file functionality beyond a single context window: the model keeps the entire repository state in view, rather than re-reading it every few rounds.

Automated Research

Several hours of experimental cycles, agents need to plan, run, read results, and correct — this is exactly the workload designed to be evaluated by FrontierSWE and PostTrainBench.

Performance Optimization

Complete call graphs, analyzer outputs, and keeping the kernel and system work on the same track as previous attempts are required.

Complex Debugging

Long-term reproducibility tracking, unstable testing, and cross-service failures; truncating the context is the reason for losing bugs.

All the above scenarios can be run on your own hardware — MIT weights, transformers · vLLM · SGLang · xLLM · ktransformers.How to run the GLM model locally →

Common Questions about GLM Model

GLM is a family of open-weight large language models; the current flagship is GLM-5.3, joined by the first natively multimodal GLM-5.3-Flash. The line-up spans GLM-4.5-Air and GLM-4.7 up through GLM-5, GLM-5-Turbo, GLM-5.1, GLM-5.2 and now GLM-5.3, plus speech and vision variants. Every core GLM model is released under the MIT license with fully open weights.

Like GLM-5.2, GLM-5.3 raises the ceiling from 200K to a stable one million tokens, with up to 128K output tokens. "Stable" is the key word: trained on long coding-agent trajectories, quality holds across the window instead of degrading as runs grow complex.

Published GLM-5.3 results include Terminal-Bench 2.1 at 88.2 (GLM-5.2: 81.0), Terminal-Bench 3.0 at 28.3 (4.6), FrontierSWE at 78.1 (67.5), DeepSWE v1.1 at 66.9 (46.2), SWE-Marathon v1.1 at 42.5 (19.4), PostTrainBench at 39.8 (31.7), Agents’ Last Exam at 28.5 (23.8), HLE w/ Tools at 62.5 (54.7), CyberGym at 84.5% (currently leading) and ExploitBench at 54.4% (24.4%). Full comparison table above.

It depends on the task. GLM-5.3 leads on CyberGym at 84.5%, beating every rival; on Z.ai Code Bench High it beats Claude Opus 4.8 (31.4 vs 29.5) at roughly half the token usage; and it more than doubles GLM-5.2 on exploit-style benchmarks. Mythos 5 maintains its edge on ExploitBench / ExploitGym.

They control how much compute the model spends per task. GLM-5.3 offers low / high / max thinking effort and always thinks, defaulting to max. Per-tier efficiency curves are GLM-5.2 reported values, for reference: ~63% (~35K output tokens, low), 72% (~43K, high) and 74% (~83K, max).

Yes. The core GLM model weights are under the MIT license, without regional restrictions, and have been released on HuggingFace and ModelScope. It supports local inference through transformers, vLLM, SGLang, xLLM, and ktransformers, allowing you to run GLM models on your own hardware.

IndexShare allows every four sparse attention layers to share a lightweight indexer, whose top-k index is calculated only once and then reused. This eliminates the work of the indexer in three-quarters of the layers, reducing each token's FLOPs by 2.9 times under a million-token context — a key change that makes a million-token window feasible at the service level.

A free open-source LLM served via OpenRouter — not GLM-5.3 and not using GLM weights. It exists so you can test a live model while reading published GLM data. All GLM benchmark data on this site is author-reported, not measured here.

Free Real-time AI Model Experience — No account required

Read the GLM model benchmark tests, and then let the real model start working. The sandbox above is free and requires no information; if you want a more complete AI toolkit, the free package from the partners starts here.