Parameters
753.0B total / 40.0B active
MoE: total / active
Architecture
MoE with IndexShare sparse attention + MTP layer
Released
16.06.2026
License
MIT License
Input Modalities
Output Modalities
Context (native)
1,000,000 tokens
Context (extended)
1,000,000 tokens
About
GLM-5.2 (zai-org/GLM-5.2) is Z.ai's flagship model for long-horizon tasks - a large sparse Mixture-of-Experts LLM (~744-753B total parameters, ~40B active per token) that for the first time delivers long-horizon capability on a solid 1M-token context, released June 16, 2026 under the MIT License (no regional limits).
Its headline improvements over GLM-5.1: a stable 1M context that sustains long-horizon work; advanced coding with flexible thinking effort levels to balance performance and latency; and an improved architecture built around IndexShare - reusing the same sparse-attention indexer across every four attention layers (21 full + 57 shared indexers in the 78-layer stack, index top-k 2048 with 32 index heads of dim 128), which cuts per-token FLOPs by 2.9x at 1M context. The backbone (GlmMoeDsa) pairs DeepSeek-Sparse-Attention-style indexing with MLA-style compressed KV (kv-LoRA rank 512, 64 heads of dim 192), 3 dense + 75 sparse MoE layers, 256 routed experts + 1 shared with 8 routed per token (expert FFN 2048, sigmoid scoring, noaux-tc), hidden size 6144, vocab 155K, and an improved Multi-Token Prediction (MTP) layer for speculative decoding with up to 20% longer acceptance length.
GLM-5.2 leads open-weights models on the Artificial Analysis Intelligence Index (v4.1, 11 points above GLM-5.1), with strong agentic/coding results (SWE-Bench Pro, NL2Repo, DeepSWE, HLE-with-tools at up to 400K context).
Training Data Trained as part of GLM-5 series with long-horizon task focus
Benchmark Scores
| Benchmark | Score | Date | Standing |
|---|---|---|---|
|
Humanity's Last Exam
stem_reasoning
|
72.73%
|
17.06.2026 |
#18/71
better than 76%
|
|
CritPt (no tools)
stem_reasoning
|
64.04%
|
17.06.2026 |
#5/21
better than 75%
|
|
AIME 26
stem_reasoning
|
100.00%
|
17.06.2026 |
#1/45
better than 98%
|
|
HMMT Nov 25
stem_reasoning
|
89.34%
|
17.06.2026 |
#5/20
better than 74%
|
|
HMMT Feb 26
stem_reasoning
|
93.26%
|
17.06.2026 |
#14/44
better than 70%
|
|
IMOAnswerBench
stem_reasoning
|
97.16%
|
17.06.2026 |
#4/30
better than 90%
|
|
GPQA Diamond
stem_reasoning
|
94.14%
|
17.06.2026 |
#21/80
better than 75%
|
|
SWE-bench Pro
coding_agent
|
69.23%
|
17.06.2026 |
#13/77
better than 84%
|
|
NL2Repo
coding_agent
|
59.38%
|
17.06.2026 |
#15/41
better than 65%
|
|
DeepSWE 1.1
coding_agent
|
59.90%
|
17.06.2026 |
#22/34
better than 36%
|
|
ProgramBench
coding_agent
|
88.10%
|
17.06.2026 |
#3/18
better than 88%
|
|
Terminal-Bench 2.1 (Terminus-2)
coding_agent
|
88.50%
|
17.06.2026 |
#10/44
better than 79%
|
|
Terminal-Bench 2.1 (Best Reported Harness)
coding_agent
|
95.14%
|
17.06.2026 |
#2/5
better than 75%
|
|
MCP-Atlas
general_agent
|
83.81%
|
17.06.2026 |
#11/54
better than 81%
|
|
Tool Decathlon
general_agent
|
75.57%
|
17.06.2026 |
#5/11
better than 60%
|
|
PostTrainBench
coding_agent
|
72.35%
|
17.06.2026 |
#13/22
better than 43%
|
|
WildClawBench
coding_agent
|
73.09%
|
17.06.2026 |
#6/20
better than 74%
|
|
Terminal Bench 2.1
coding_agent
|
89.36%
|
31.07.2026 |
#16/44
better than 65%
|
|
DeepSWE
coding_agent
|
63.55%
|
31.07.2026 |
#14/21
better than 35%
|
|
Toolathlon Verified
general_agent
|
64.07%
|
31.07.2026 |
#18/35
better than 50%
|
|
DSBench-FullStack
coding_agent
|
61.69%
|
31.07.2026 |
#6/8
better than 29%
|
|
DSBench-Hard
coding_agent
|
62.53%
|
31.07.2026 |
#7/9
better than 25%
|
|
HLE (with tools)
stem_reasoning
|
72.73%
|
17.06.2026 |
#18/49
better than 65%
|
|
SWE-Marathon
coding_agent
|
23.67%
|
17.06.2026 |
#13/17
better than 25%
|
|
GDPVal-AA v2
general_agent
|
82.14%
|
27.08.2026 |
#20/38
better than 49%
|
|
Terminal-Bench 3.0
coding_agent
|
4.60
|
28.08.2026 |
#7/7
better than 0%
|
|
Cybergym
general_agent
|
77.94%
|
28.08.2026 |
#12/17
better than 31%
|
|
ExploitGym (2h)
cybersecurity
|
7.43%
|
28.08.2026 |
#6/7
better than 17%
|
|
ExploitGym (6h)
cybersecurity
|
6.72%
|
28.08.2026 |
#6/8
better than 29%
|
|
ExploitBench
cybersecurity
|
24.40
|
28.08.2026 |
#8/8
better than 0%
|
|
FrontierSWE
coding_agent
|
76.69%
|
17.06.2026 |
#4/12
better than 73%
|
|
Agents' Last Exam
general_agent
|
40.49%
|
31.07.2026 |
#19/29
better than 32%
|
|
Automation-Bench
general_agent
|
4.04%
|
31.07.2026 |
#25/27
better than 8%
|
What is a good Humanity's Last Exam score? What is a good CritPt (no tools) score? What is a good AIME 26 score?
Hardware Requirements
Estimated VRAM per quantization at 4,096 tokens context — MoE: all experts must fit in VRAM, only 40.0B are active per token
| Quantization | Weights | KV Cache | Total VRAM | On your hardware |
|---|---|---|---|---|
| FP16 — 16-bit | 1506.0 GB | 6.2 GB | 1587.5 GB | Which GPUs can run it? Calculate on your GPU |
| INT8 — 8-bit | 753.0 GB | 3.1 GB | 793.8 GB | Which GPUs can run it? Calculate on your GPU |
| INT4 — 4-bit | 376.5 GB | 1.6 GB | 396.9 GB | Which GPUs can run it? Calculate on your GPU |
| FP4 — 4-bit | 376.5 GB | 1.6 GB | 396.9 GB | Which GPUs can run it? Calculate on your GPU |
Only datacenter GPUs — FP16 needs 1587.5 GB. For consumer hardware, choose the INT4 build with a multi-GPU setup.
Architecture
- Attention
- Sparse Attention
- MoE
- 256 experts · top-8 per token
- Layers
- 78
- Hidden size
- 6144
- Context
- 1M tokens
- Parameters
- 753000M
- Active params
- 40000M
Source: Hugging Face config.json · GlmMoeDsaForCausalLM · model repo
Training Pipeline
-
1
pretraining
Pre-training (~28.5T tokens, GLM-5 series)
GLM-5 series pre-training corpus (28.5T tokens, per zai-org/GLM-5 GitHub).
-
2
rl
Post-training for long-horizon tasks
Post-trained as part of the GLM-5 series with long-horizon task focus (DB training_data_info); flexible thinking-effort levels.
Training & Evaluation Datasets
| Name | Role | Size | Modalities | Collection |
|---|---|---|---|---|
| GLM-5 series pre-training corpus (~28.5T tokens) | pretraining | — | — |
Linked Resources
GLM-5: from Vibe Coding to Agentic Engineering
https://arxiv.org/abs/2602.15763
GLM-5 GitHub Repository
https://github.com/zai-org/GLM-5
GLM-5.2: Built for Long-Horizon Tasks
https://z.ai/blog/glm-5.2
Z.ai API Platform - GLM-5.2
https://docs.z.ai/guides/llm/glm-5.2
Chat Z.ai - GLM-5.2 Demo
https://chat.z.ai/
GLM Discord Community
https://discord.gg/QR7SARHRxK
IndexCache: Accelerating Sparse Attention via Cross-Layer Index Reuse
https://arxiv.org/abs/2603.12201
GLM-5.2 Collection on HuggingFace
https://huggingface.co/collections/zai-org/glm-52
GLM-5.2 Blog on HuggingFace
https://huggingface.co/blog/zai-org/glm-52-blog
GLM-5: from Vibe Coding to Agentic Engineering (BibTeX Citation)
https://arxiv.org/abs/2602.15763
Trend Analysis
24h Change
+0.2%
7d Change
-2.5%
30d Change
-48.5%
Current
316,074
followers
+0.2%
downloads_all_time
+0.1%
downloads
+0.2%
likes
+0.0%
No comments yet
Be the first to share your thoughts!