Family GLM · 31B parameters

GLM 4.7 Flash

GLM-4.7-Flash (MoE 31B, ~3B active): the best code/VRAM ratio in the 30B class. MIT, 128k ctx, very fast on 3090/4090.

🇨🇳 Zhipu AI·License MIT·Context 125k tokens·Output February 2026·Tested on the GIGABYTE AI TOP ATOM · our measurements← Catalog

01What it can do

Strengths
  • SWE-bench Verified 59.2 — top-tier 30B
  • Fully permissive MIT
  • ~3B active: 60–100 tok/s on 3090/4090
  • 128k context
Limitations to know
  • —19 GB in Q4—just for 16 GB
  • —Less natural in French than Qwen/Mistral
Architecture
MoE 31.2B total · ~3B active (glm4_moe_lite) · 128k ctx
Training
Zhipu AI / Z.ai’s GLM 4.7 family. Flash variant aimed at coding and agents: the strongest model in the 30B class at launch.
Ideal for
Code (30B class)Code agentsMultilingual zh / en

05Install

Install Ollama for your OS. Check the model and its quantization before downloading. Start with 4096 tokens of context, then check placement with ollama ps. A command below is not proof that a test was run on your machine.

$ollama run glm-4.7-flash
⚠
First download: between 2 and 40 GB depending on the selected quantization. Plan for sufficient disk space; a stable connection is recommended. Subsequent launches are instant.

02Required memory

Approximate GPU VRAM required to run this model, including 4k tokens of context overhead. For a longer context, add ~1 GB per 8k-token increment.

Q4_K_M
The lightest, ~5% loss
19 GB
Q5_K_M
Good quality/size compromise
23 GB
Q8_0
Nearly indistinguishable from FP16
35 GB
FP16
Full precision — server use
62 GB
Fallback CPU · If you don't have a GPU, allow 33 GB of RAM minimum to run this model at reduced speed.

What hardware do you need for GLM 4.7 Flash?

To run GLM 4.7 Flash locally with Q4 quantization, you need about 19 GB of VRAM. An option to compare: GMKtec EVO-X2 64GB / 1TB (Ryzen AI Max+ 395) — leave some headroom for the system and context; check engine compatibility with the GPU.

Current offer: GMKtec EVO-X2 64GB / 1TB (Ryzen AI Max+ 395)
AmazonSee price →

Why this choice? Our complete guide on GMKtec EVO-X2 64GB / 1TB (Ryzen AI Max+ 395) →

Affiliate links — commission possible at no extra cost to you; independent recommendations. As an Amazon Associate, BestLLMfor earns from qualifying purchases.

On the go: GLM 4.7 Flash also runs on a RTX laptop PC (24 GB of VRAM) →

03Expected speed

Tokens generated per second in Q4_K_M, 4k context. Beyond 20 t/s, reading is comfortable. Below 10 t/s, that's just for testing.

Entry-level
~15t/s
GTX 1650, RX 6600, MBA M2 8GB
Mid-range
~40t/s
RTX 4060, 4070, MBP M3 Pro
High-end
~100t/s
RTX 4090, M4 Max, Radeon 7900

04Public benchmarks

Scores reproduced from model cards or MMLU-Pro / community sources. Unit: % correct answers.

SWE-Bench Verified
59.2
LiveCodeBench v6
64