Z.ai's open-weight models for coding and long-horizon agentic work
open sourceMITself-hostablefree
GLM-5 is Z.ai's family of MIT-licensed open-weight large language models for coding, agentic engineering and long-horizon tasks: GLM-5 (744B parameters, 40B active), GLM-5.1, GLM-5.2 with a 1M-token context, and GLM-5.3-Flash (320B, 18B active), the first in the series to combine sparse and linear attention. They're mixture-of-experts text models with thinking modes, published on Hugging Face and ModelScope in FP8 and BF16, served locally with SGLang, vLLM, Transformers or KTransformers, and sold by the token on the Z.ai API platform. The flagship GLM-5.3, built on GLM-5.2's base model, has its own listing because its weights are under a different licence. Earlier generations (GLM-4.5, 4.6 and 4.7) are in the zai-org/GLM-4.5 repository.
Problems it solves
- an open-weight model good enough at coding to run our coding agent on our own GPUs
- self-host a frontier-class LLM with a 1M-token context for long agent sessions
- a cheaper API model for agentic coding than the closed frontier models
- an open model with an MIT licence we can fine-tune and ship commercially
Features
- mixture-of-experts models from 320B (18B active) to 744B (40B active) parameters
- 1M-token context and up to 128K output tokens from GLM-5.2
- thinking modes with multiple effort levels
- hybrid sparse and linear attention in GLM-5.3-Flash
- FP8 and BF16 weights on Hugging Face and ModelScope
- local serving with SGLang, vLLM, Transformers and KTransformers
- Z.ai API with context caching
Alternatives
The same job
These do what GLM-5 does.
- Qwen3.8-27B Compact dense vision-language model from the Qwen3.8 open-model family
- Gemma 4 Google DeepMind's open multimodal models, from phones to workstations
- Llama 4 Natively multimodal mixture-of-experts open-weight models from Meta
- GLM-5.3 Z.ai's open-weight flagship model for coding and long-horizon agentic work
- gpt-oss OpenAI's open-weight reasoning models, gpt-oss-120b and gpt-oss-20b, under Apache 2.0
- ERNIE 5.5 Flash Preview Open-weights 280B MoE language model with a 1M-token context
