Leaderboard / Z.ai (GLM)
GLM-4.7-Flash
Z.ai (GLM) · GLM-4.7 · released 2026-01-19 · data checked 2026-11-01
GLM-4.7-Flash is a 31B-parameter Mixture-of-Experts model (3B active per token) from Z.ai (GLM) (China), released 2026-01-19 under the MIT license. It scores 66.1 on the Small LM Index, #12 of 34 medium models. It needs about 20.4 GB of memory at 4-bit with an 8K-token context and costs $0.15 per million tokens through the cheapest API provider.
Benchmarks
Each bar shows this model's score. The tick marks the best medium model on that benchmark. Sources: 6 reported by Z.ai (GLM). How we label sources.
Not reported: estimated
What the index model expects from this model's other scores. Not a measurement.
Specifications
- Lab
- Z.ai (GLM) (CN · China)
- Architecture
- Mixture-of-Experts
- Total parameters
- 31B
- Active parameters
- 3B
- Size class
- Medium
- Context window
- 200K tokens
- Input modalities
- text
- Reasoning
- Reasoning (thinking)
- License
- MIT
- Openness
- Open weights
- Memory to run
- ~20.4 GB at 4-bit, 8K context (more sizes)
- Hugging Face
- 956.4K downloads (30 days) · 1.9K likes
- API providers
- 1 on OpenRouter
- API price
- $0.061 in / $0.40 out per 1M (OpenRouter, 2026-11-03)
Compare with
- GLM-4.7-Flash vs Gemma 4 31B (30.7B, index 70.1)
- GLM-4.7-Flash vs Kanana-2 30B-A3B Thinking (30.7B, index 50.7)
- GLM-4.7-Flash vs Qwen3 30B-A3B Thinking 2507 (30.5B, index 59.3)
- GLM-4.7-Flash vs Nemotron 3.5 Lightning (31.6B, index 63.6)
Ranked in
Sources
Something wrong here? Report it.
Run it locally
Uses unsloth/GLM-4.7-Flash-GGUF (Q4_K_M). Swap the tag for another size: BF16, IQ4_NL, IQ4_XS, MXFP4, Q2_K, Q2_K_L, Q3_K_M, Q3_K_S….
ollama run hf.co/unsloth/GLM-4.7-Flash-GGUF:Q4_K_Mllama-server -hf unsloth/GLM-4.7-Flash-GGUF:Q4_K_Mpip install -U mlx-lm
mlx_lm.chat --model mlx-community/GLM-4.7-Flash-4bitvllm serve zai-org/GLM-4.7-FlashMemory needed: weights, context cache and runtime buffers.
| Quantization | 4K context | 32K context | 200K context |
|---|---|---|---|
| 16-bit F16 | 63 GB | 65 GB | 74 GB |
| 8-bit Q8_0 | 34 GB | 36 GB | 45 GB |
| 4-bit Q4_K_M | 20 GB | 22 GB | 31 GB |