Z.ai: GLM 4.7 Flash

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

🧠 31.2B📄 128K context💲 $0.060 / $0.400 per 1M tokens in / out🔓 Open weights (downloadable)⚖️ mit

GLM-4.7-Flash is a 30B-A3B MoE model. As the strongest model in the 30B class, GLM-4.7-Flash offers a new option for lightweight deployment that balances performance and efficiency.

Which way is for me?

🌐 Online, right now

  1. Open the model's page on OpenRouter: openrouter.ai/z-ai/glm-4.7-flash
  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.00023, so $1 buys about 4,343 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:
    ggml-org/GLM-4.7-Flash-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/ggml-org/GLM-4.7-Flash-GGUF

🧑‍💻 For developers

vLLM

vllm serve zai-org/GLM-4.7-Flash

Transformers (Python)

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

llama.cpp

llama-server -hf ggml-org/GLM-4.7-Flash-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-4.7-Flash is a 30B-A3B MoE model. As the strongest model in the 30B class, GLM-4.7-Flash offers a new option for lightweight deployment that balances performance and efficiency.

Benchmarks (from the model card)

BenchmarkGLM-4.7-FlashQwen3-30B-A3B-Thinking-2507GPT-OSS-20B
AIME 2591.685.091.7
GPQA75.273.471.5
LCB v664.066.061.0
HLE14.49.810.9
SWE-bench Verified59.222.034.0
τ²-Bench79.549.047.7
BrowseComp42.82.2928.3

Source: Hugging Face · zai-org/GLM-4.7-Flash · 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
21 GB
Recommended Q8
37.5 GB
Full quality FP16
74.9 GB

On common hardware

RTX 4060 · 8 GBWon't run
RTX 4090 · 24 GBUsableQ4 · ≈ 130–220 tokens/s
RTX 5090 · 32 GBUsableQ4 · ≈ 240–390 tokens/s
Mac M4 Max · 128 GBGreatFP16 · ≈ 20–34 tokens/s
H100 · 80 GBGreatFP16 · ≈ 120–210 tokens/s
8× H100 · 640 GBGreatFP16 · ≈ 990–1,650 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: