Can I run GLM 4.7 Flash locally?
GLM 4.7 Flash has 31.22 billion parameters (Hugging Face). At the popular Q4_K_M quantization it needs roughly 20.7 GB of GPU memory ESTIMATE. It has been on Hugging Face since 2026-01-19. It's a mixture-of-experts model: all weights must fit in memory, but it generates faster than a dense model of the same size.
Memory needed by quantization
| Quant | Weights | Total needed (est.) |
|---|---|---|
| IQ1_S | 6.1 GB | 7.2 GB |
| IQ2_XXS | 8.0 GB | 9.3 GB |
| IQ2_M | 10.5 GB | 11.9 GB |
| Q2_K | 12.4 GB | 13.8 GB |
| IQ3_XXS | 11.9 GB | 13.4 GB |
| Q3_K_S | 14.2 GB | 15.8 GB |
| IQ3_M | 14.3 GB | 15.8 GB |
| Q3_K_M | 15.6 GB | 17.2 GB |
| IQ4_XS | 16.6 GB | 18.2 GB |
| Q4_0 | 17.6 GB | 19.3 GB |
| Q4_K_M | 18.9 GB | 20.7 GB |
| MXFP4 | 18.1 GB | 19.8 GB |
| Q5_K_M | 22.2 GB | 24.1 GB |
| Q6_K | 25.6 GB | 27.7 GB |
| Q8_0 | 33.2 GB | 35.7 GB |
| F16 | 62.4 GB | 66.4 GB |
KV cache by context length ESTIMATE
| Context | f16 | q8_0 | q4_0 |
|---|---|---|---|
| 4k | 0.22 GB | 0.12 GB | 0.06 GB |
| 8k | 0.44 GB | 0.24 GB | 0.12 GB |
| 16k | 0.89 GB | 0.47 GB | 0.25 GB |
| 32k | 1.77 GB | 0.94 GB | 0.50 GB |
| 64k | 3.55 GB | 1.89 GB | 1.00 GB |
| 128k | 7.10 GB | 3.77 GB | 2.00 GB |
From config.json: 47 KV-caching attention layers (MLA, 576-dim compressed cache). Max context 198k. The tables above assume 4k context.
Which GPUs and Macs can run it?
✅ fits · ⚠️ fits with little headroom · ❌ doesn't fit on this one device (multiple GPUs or RAM offload may work; check your setup). Apple Silicon assumes macOS lets the GPU use ~67–75% of unified memory. All fit verdicts are estimates.
Get the weekly "new models & what it takes to run them" email
Free. One email a week. Unsubscribe anytime.