Z.ai: GLM 5.1

Z.ai (Zhipu) (China) · Language (text)

🧠 754B📄 200K context💲 $1.40 / $4.40 per 1M tokens in / out🔓 Open weights (downloadable)⚖️ mit

GLM-5.1 is our next-generation flagship model for agentic engineering, with significantly stronger coding capabilities than its predecessor. It achieves state-of-the-art performance on SWE-Bench Pro and leads GLM-5 by a wide margin on NL2Repo (repo generation) and Terminal-Bench 2.0 (real-world terminal tasks).

Which way is for me?

🌐 Online, right now

  1. Open the model's page on OpenRouter: openrouter.ai/z-ai/glm-5.1
  2. Sign in (with Google or email) and press Chat; you can talk to the model right there.
  3. Cost: a short exchange (about a page in and a page out) costs about $0.0029, so $1 buys about 344 messages.

💻 On my own computer

  1. Download and install LM Studio (free): lmstudio.ai
  2. In LM Studio open Search (the magnifier) and type exactly:
    unsloth/GLM-5.1-GGUF
  3. From the list of files pick the version the check above suggested; if unsure, take Q4_K_M (compressed, slightly lower quality, less memory).
  4. Press Download, then Load, and start talking in Chat.

Or, if you use Ollama, this one command is enough:

ollama run hf.co/unsloth/GLM-5.1-GGUF

🧑‍💻 For developers

vLLM

vllm serve zai-org/GLM-5.1

Transformers (Python)

from transformers import pipeline
pipe = pipeline("text-generation", model="zai-org/GLM-5.1")

llama.cpp

llama-server -hf unsloth/GLM-5.1-GGUF
Words used here
GGUF
The file format LM Studio, Ollama and llama.cpp use to run a model.
Quantization (Q4, Q8)
Shrinking a model by storing numbers less precisely: Q4 smallest and slightly weaker, Q8 almost full, FP16 full.
VRAM
The graphics card's memory (or shared memory on a Mac); the model has to fit in it.
Context
The most text the model can see at once in a conversation (questions, answers and files).
Tokens per second
How fast the answer is written; 20 is about reading speed, 5 is slow.

From the Hugging Face model card

GLM-5.1 is our next-generation flagship model for agentic engineering, with significantly stronger coding capabilities than its predecessor. It achieves state-of-the-art performance on SWE-Bench Pro and leads GLM-5 by a wide margin on NL2Repo (repo generation) and Terminal-Bench 2.0 (real-world terminal tasks).

Benchmarks (from the model card)

GLM-5.1GLM-5Qwen3.6-PlusMinimax M2.7DeepSeek-V3.2Kimi K2.5
HLE31.030.528.828.025.131.5
HLE (w/ Tools)52.350.450.6-40.851.8
AIME 202695.395.495.189.895.194.5
HMMT Nov. 202594.096.994.681.090.291.1
HMMT Feb. 202682.682.887.872.779.981.3
IMOAnswerBench83.882.583.866.378.381.8
GPQA-Diamond86.286.090.487.082.487.6
SWE-Bench Pro58.455.156.656.2-53.8

Source: Hugging Face · zai-org/GLM-5.1 · License: mit

Hardware and running it

Cloud and local Available through an API, and its weights are published to run on your own hardware.

Minimum Q4
506.6 GB
Recommended Q8
904.6 GB
Full quality FP16
1809.3 GB

On common hardware

RTX 4060 · 8 GBWon't run
RTX 4090 · 24 GBWon't run
RTX 5090 · 32 GBWon't run
Mac M4 Max · 128 GBWon't run
H100 · 80 GBWon't run
8× H100 · 640 GBUsableQ4 · ≈ 180–300 tokens/s

Speeds are estimates. estimated speed for one user, from memory bandwidth

Links come from the vendor's official site and the model card the vendor published · Updated: