Z.ai's GLM-4.5-Air Packs 106B Agent Reasoning Into 12B Active Compute
Z.ai's 106B Mixture-of-Experts model activates just 12B parameters per token, trades a sliver of depth for cheaper inference, and ships under MIT.
Takeaways
- GLM-4.5-Air is a 106B MoE model with 12B active parameters, released by Z.ai under MIT license
- Hybrid reasoning: thinking mode for agents and tool use, non-thinking mode for fast chat
- 128K context, 96K max output, trained on 23T tokens with expert iteration and RL curriculum
- Scores 59.8 average across 12 benchmarks, 57.6 on SWE-Bench Verified, 81.4 on MMLU-Pro
- Priced at $0.20/$1.10 per million tokens on Z.ai API, available at 43 providers
- Technical report and weights on Hugging Face, with vLLM and SGLang support
At publication, Z.ai’s model repository showed nearly 800,000 downloads and more than 3,900 likes. GLM-4.5-Air packages the company’s reasoning, coding, and tool-use capabilities into a smaller sibling of the flagship GLM-4.5.
Developers get downloadable weights under the MIT license, a 128K-token context window, and two inference modes in one checkpoint. The main tradeoff is memory: sparse routing reduces computation per token, but serving still requires access to all 106 billion parameters.
Sparse routing does the heavy lifting
GLM-4.5-Air is a mixture-of-experts transformer with 106 billion total parameters and about 12 billion active for each token. Its router sends each token through a small subset of feed-forward experts, reducing arithmetic compared with a dense 106B model.
The 12B active figure describes computation rather than storage or exact dense-model performance. Every expert must remain available in memory, and multi-GPU communication, attention layers, routing, and the key-value cache all contribute to latency.
| Component | Specification |
|---|---|
| Total parameters | 106 billion |
| Active parameters | About 12 billion per token |
| Transformer layers | 46 |
| Expert routing | Eight routed experts plus one shared expert per token |
| Attention | 96 query heads and eight key/value heads |
| Hidden size | 4,096 |
| Vocabulary | About 151,600 tokens |
| Activations and normalization | SwiGLU and pre-normalization with RMSNorm |
| Context window | 128K tokens |
| Maximum advertised output | 96K tokens, subject to the runtime’s sequence limit |
| License | MIT |
Two reasoning paths, one checkpoint
Thinking mode allocates additional generation to multi-step reasoning, coding, and tool selection. Non-thinking mode produces direct responses for latency-sensitive chat, extraction, classification, and other tasks that rarely benefit from a long reasoning trace.
Applications can switch modes per request without loading another model. In the Hugging Face chat template, the enable_thinking argument controls the behavior:
prompt = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True,
enable_thinking=True,
)
Hosted APIs may expose the same control through a provider-specific request field. Tool-calling applications also need a runtime that can parse GLM-4.5’s reasoning and function-call formats.
Multi-Token Prediction trains the model to predict several future tokens from one position. The technical report uses that layer for speculative decoding, where draft tokens are generated and verified together. Z.ai reports throughput approaching twice the baseline in supported configurations, although the gain depends on runtime integration, hardware, batch size, and acceptance rate.
Training specialists into a generalist
Z.ai reports pretraining the GLM-4.5 family on 23 trillion tokens, followed by supervised tuning, expert-model iteration, self-distillation, and reinforcement learning. The corpus and evaluations emphasize English and Chinese alongside code, mathematics, reasoning, and tool use.
Expert-model iteration trains specialist systems for areas such as coding, reasoning, and agent tasks, then uses their outputs to improve the general checkpoint. Self-distillation transfers those capabilities into one model, while the reinforcement-learning curriculum schedules tasks by difficulty.
The resulting “agentic” capability refers to workflows in which the model selects tools, supplies structured arguments, reads the results, and continues across several steps. Production reliability still depends on the surrounding agent loop, tool schemas, permission controls, retry policy, and protection against prompt injection.
Benchmark gains come with caveats
Z.ai’s aggregate evaluation covers 12 benchmarks spanning reasoning, coding, and agent tasks. As of July 28, 2025, the report placed the full GLM-4.5 third among its comparison set with a score of 63.2, while GLM-4.5-Air ranked sixth with 59.8.
Published model-card results provide a more useful view of Air’s strengths across individual tasks:
| Benchmark | What it measures | Score |
|---|---|---|
| MMLU-Pro | Broad academic knowledge and reasoning | 81.4 |
| GPQA Diamond | Graduate-level science questions | 71.72 |
| SWE-Bench Verified | Fixing verified issues in real software repositories | 57.6 |
| TAU-Bench Retail | Tool use in simulated retail support tasks | 77.9 |
| Humanity’s Last Exam | Expert-level questions across multiple disciplines | 8.12 |
The 57.6 SWE-Bench Verified result supports Z.ai’s focus on coding agents, including its launch-time promotion of Claude Code compatibility. Repository-level coding scores remain sensitive to the agent scaffold, available tools, token budget, patch validation, and benchmark configuration.
These figures come from Z.ai’s report and model card rather than a fresh independent reproduction. Teams comparing models should use the same prompts, tool harness, inference settings, and cost limits across candidates.
Cheap tokens, expensive hardware
Z.ai listed the following API rates at publication. Provider pricing, rate limits, context limits, caching rules, and tool interfaces can change independently.
| Token type | Price per million tokens |
|---|---|
| Input | $0.20 |
| Cached input | $0.03 |
| Output | $1.10 |
Self-hosting requires server-class hardware. BF16 weights alone occupy about 212 GB, or roughly 198 GiB, before accounting for the key-value cache, runtime buffers, expert-routing overhead, and parallel requests. Long contexts and high concurrency can add substantial memory pressure.
FP8 quantization approximately halves weight storage, while 4-bit variants can approach one quarter of the BF16 footprint before quantization metadata and runtime overhead. Quantized checkpoints may change accuracy, throughput, and kernel compatibility, so each variant needs workload-specific evaluation.
Recent vLLM versions can expose an OpenAI-compatible server with GLM-4.5 reasoning and tool parsers. The following eight-way tensor-parallel example must be adjusted for the available GPUs:
pip install -U vllm
vllm serve zai-org/GLM-4.5-Air \
--tensor-parallel-size 8 \
--reasoning-parser glm45 \
--tool-call-parser glm45 \
--enable-auto-tool-choice
SGLang also supports the model in current releases. Parser names, speculative-decoding options, quantization support, and launch flags vary by runtime version, so deployment tests should verify the installed build rather than relying on a generic server command.
Workloads that fit Air
| Workload | Why Air fits |
|---|---|
| Code agents and IDE assistants | Reasoning, structured tool calls, and competitive repository-level coding results |
| Long-document retrieval and summarization | A 128K context window for large documents, retrieved passages, and conversation history |
| High-volume language workflows | Non-thinking mode for extraction, classification, routing, and concise responses |
| On-premises or isolated systems | Downloadable weights and an MIT license that permits commercial use and modification, subject to its notice requirements |
| Chinese and English applications | Training and evaluation across both languages |
Several constraints narrow the deployment range:
- Vision inputs: GLM-4.5-Air accepts text; GLM-4.5V covers image-language workloads.
- Maximum reasoning quality: The 355B GLM-4.5 retains an aggregate advantage for demanding planning and coding tasks.
- Small-device inference: The model remains far beyond sub-10GB laptops, phones, and embedded devices, even with aggressive quantization.
- Multi-GPU latency: Sparse computation can still become communication-bound when experts are distributed across accelerators.
- Long generations: A 96K output allowance increases latency and cost and should be capped for most production requests.
An open baseline with real operating costs
GLM-4.5-Air gives agent developers a permissively licensed checkpoint with long context, selectable reasoning, tool calling, and lower per-token computation than Z.ai’s flagship. Its API pricing makes hosted experiments accessible, while self-hosting remains a multi-GPU deployment that requires careful memory and runtime planning.
Z.ai later extended the family with the vision-capable GLM-4.5V and newer GLM releases. Air remains useful as a reproducible open-weight baseline for evaluating code agents, bilingual assistants, long-context systems, and OpenAI-compatible inference stacks.