Model datasheet · GLM
GLM-4.7-Flash
The agentic-coding MoE of the moment: SWE-bench 59.2 from 3B active params, MIT-licensed, ~200K context. Watch it at long context, where its tool calls start fraying.
- Vendor
- Z.ai
- Architecture
- MoE · 30B total / ~3B active
- Context
- 202,752 tokens
- License
- MIT
- Released
- 2026-01-19
- Vision
- No
→ GGUF (llama.cpp / LM Studio / Ollama) → MLX (Apple Silicon)
§1 Characteristics by quantization band
— Not yet rated · contributions welcome —
Q4–Q5 — 4–5 bit
18GB weights · e.g. Q4_K_M , mlx-4bit + KV: 423MB at 8K · 1.7GB at 32K · 6.6GB at 128Kdata checked Aug 2026
- quant-degradation-community — KLD/perplexity delta vs bf16 @ Q4_K_M · aggregated · 2026-08-30
Editorial derivation: MoE expert weights lose a little at 4-bit.
data checked Aug 2026
- quant-degradation-community — KLD/perplexity delta vs bf16 @ Q4_K_M · aggregated · 2026-08-30
Editorial derivation: small loss at 4-bit.
data checked Aug 2026
- quant-degradation-community — community consensus @ Q4_K_M · aggregated · 2026-08-30
Editorial derivation: quant plus long context compounds the tool-call fraying — keep context modest at 4-bit.
— Not yet rated · contributions welcome —
FP16 — full precision (fp16/bf16)
60GB weights · e.g. bf16 + KV: 423MB at 8K · 1.7GB at 32K · 6.6GB at 128Kdata checked Aug 2026
- vendor-model-card — AIME 25 = 91.6 @ bf16 · vendor-reported · 2026-08-30
GPQA: 75.2.
data checked Aug 2026
- vendor-model-card — SWE-bench Verified = 59.2 @ bf16 · vendor-reported · 2026-08-30
Best agentic-coding claim in the sub-35B MoE class. Absent from Aider polyglot.
data checked Aug 2026
- vendor-model-card — Tau2-Bench = 79.5 @ bf16 · vendor-reported · 2026-08-30
Strong at short context; see the known issue on long-context degradation.
data checked Aug 2026
- vectara-hallucination — HHEM hallucination rate % (lower is better) = 9.3 @ bf16 · aggregated · 2026-08-30
Noticeably worse than Qwen3 (5.4–5.9%) and Gemma 3 (6.4–7.4%) peers.
§2 Known issues & what fixes them
Output quality and tool-call formatting degrade as context grows — malformed JSON and artifacts appear well before the ~200K window is full.
Recent llama.cpp builds fixed part of this (flash-attention path); update first.
Cap working context well below the maximum and summarize long agent sessions periodically.
Evidence · 2 sources · community-consensus
- Artifact rate grows with context (GLM-4.7-Flash) (other, 2026-08-30)
- llama.cpp GLM-4.7-Flash benchmark thread (other, 2026-08-30)
Hallucinates more than its peers (HHEM 9.3% vs 5–7% for Qwen3/Gemma 3) — the price of its agentic tuning.
Ground factual work; keep it in its lane (code and agents).
Evidence · 1 source · anecdotal
- Vectara HHEM (GLM-4.7-flash: 9.3%) (leaderboard, 2026-08-30)