Z.ai: GLM 4.7

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

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

Core Coding: GLM-4.7 brings clear gains, compared to its predecessor GLM-4.6, in multilingual agentic coding and terminal-based tasks, including (73.8%, +5.8%) on SWE-bench, (66.7%, +12.9%) on SWE-bench Multilingual, and (41%, +16.5%) on Terminal Bench 2.0.

Which way is for me?

🌐 Online, right now

  1. Open the model's page on OpenRouter: openrouter.ai/z-ai/glm-4.7
  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.0014, so $1 buys about 714 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-4.7-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-4.7-GGUF

🧑‍💻 For developers

vLLM

vllm serve zai-org/GLM-4.7

Transformers (Python)

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

llama.cpp

llama-server -hf unsloth/GLM-4.7-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

Core Coding: GLM-4.7 brings clear gains, compared to its predecessor GLM-4.6, in multilingual agentic coding and terminal-based tasks, including (73.8%, +5.8%) on SWE-bench, (66.7%, +12.9%) on SWE-bench Multilingual, and (41%, +16.5%) on Terminal Bench 2.0.

Source: Hugging Face · zai-org/GLM-4.7 · 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
240.8 GB
Recommended Q8
430 GB
Full quality FP16
860 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 GBGreatQ8 · ≈ 190–310 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: