GLM-5.2

Z.ai's open-source MoE text generation model.

Working when we checked on .

Visit GLM-5.2

What is GLM-5.2?

GLM-5.2 is a flagship open-source large language model from Z.ai built for long-horizon tasks, released on Hugging Face under an MIT license. It targets developers and researchers who need sustained reasoning, coding, and agentic work over very long contexts. The model offers a 1M-token context window, multiple thinking effort levels to balance coding performance against latency, and an IndexShare architecture that cuts per-token FLOPs by 2.9x at 1M context. It can be served locally via SGLang, vLLM, Transformers, KTransformers, and Unsloth, and is also available through the Z.ai API platform.

GLM-5.2 pricing

Pricing model: Free

Open-source under MIT license (free); API access available via Z.ai API Platform

GLM-5.2 pros

  • MIT open-source license with no regional restrictions
  • 1M-token context window for long-horizon tasks
  • IndexShare architecture reduces per-token FLOPs by 2.9x at 1M context
  • Multiple thinking effort levels balance coding performance and latency
  • Deployable locally with SGLang, vLLM, Transformers, KTransformers, and Unsloth
  • AIME 2026 score of 99.2 and SWE-bench Pro score of 62.1

GLM-5.2 cons

  • Running a 1M-context flagship model locally requires significant hardware resources
  • Lags Claude Opus 4.8 on several benchmarks including HLE, SWE-bench Pro, and SWE-Marathon
  • A newer version (GLM-5.3-BF16) has already replaced this model
  • API usage pricing details are not shown on the model page

Frequently asked questions about GLM-5.2

What is GLM-5.2?

GLM-5.2 is Z.ai's flagship open-source large language model for long-horizon tasks, released under an MIT license. It improves on GLM-5.1 and supports a 1M-token context window.

Who is GLM-5.2 for?

It is aimed at developers and researchers who need strong reasoning, coding, and agentic capabilities over very long contexts, and who want to run or fine-tune an openly licensed model.

What license does GLM-5.2 use?

The model is released under an MIT open-source license with no regional limits, allowing unrestricted technical access and use.

How long is the context window?

GLM-5.2 provides a 1M-token context that stably sustains long-horizon work such as large codebases and extended agent tasks.

What coding features does GLM-5.2 offer?

It offers stronger coding capabilities with multiple thinking effort levels to balance performance and latency, scoring 62.1 on SWE-bench Pro and 81.0 on Terminal Bench 2.1 (Terminus-2).

Which frameworks support local deployment?

It supports SGLang (v0.5.13.post1+), vLLM (v0.23.0+), Transformers (v0.5.12+), KTransformers (v0.5.12+), and Unsloth (v0.1.47-beta+), plus Ascend NPU frameworks like vLLM-Ascend and xLLM.

What is IndexShare?

IndexShare is an architectural improvement that reuses the same indexer across every four sparse attention layers, reducing per-token FLOPs by 2.9x at a 1M context length.

How fast is GLM-5.2 at math reasoning?

It scores 99.2 on AIME 2026 and 94.4 on HMMT Nov. 2025, using temperature=1.0 and top_p=0.95 sampling in evaluations.

Can GLM-5.2 be used via an API?

Yes, GLM-5.2 API services are available on the Z.ai API Platform, and the model can also be tried at chat.z.ai.

Is GLM-5.2 the latest model?

No, a newer version, GLM-5.3-BF16, is available on Hugging Face at zai-org/GLM-5.3-BF16.

Categories

Use cases

Alternatives to GLM-5.2

Similar AI tools

Search AI tools on NeedAnAI · All AI tools A–Z