Can I run GLM 5.1 locally?
GLM 5.1 by zai-org has 754B parameters (42B active per token, 256 experts, 8 used per token). At 4-bit with an 8K context it needs about 434 GB of GPU memory. It fits on 1 of 65 GPUs and Macs we track.
Memory needed by quant and context length
GB of GPU memory = weights + KV cache (FP16) + runtime overhead. Weights use real file sizes from unsloth/GLM-5.1-GGUF where available (marked •), otherwise parameter count × bits per weight. How we calculate.
| Quant | Quality | 4K ctx | 8K ctx | 32K ctx | 128K ctx |
|---|---|---|---|---|---|
| 2-bit (Q2_K) | rough | 264 GB | 265 GB | 267 GB | 277 GB |
| 3-bit (Q3_K_M) • | usable | 316 GB | 317 GB | 319 GB | 329 GB |
| 4-bit (Q4_K_M) • | good, most popular | 434 GB | 434 GB | 437 GB | 447 GB |
| 5-bit (Q5_K_M) • | very good | 521 GB | 522 GB | 524 GB | 534 GB |
| 6-bit (Q6_K) • | near lossless | 580 GB | 580 GB | 583 GB | 593 GB |
| 8-bit (Q8_0) • | effectively lossless | 747 GB | 748 GB | 750 GB | 760 GB |
| 16-bit (F16/BF16) • | original weights | 1406 GB | 1406 GB | 1408 GB | 1419 GB |
Which GPUs and Macs run GLM 5.1?
Best quality quant that fits at 8K context. "Tight" = within 10% of usable memory. Speed is a ceiling from memory bandwidth (real speed is typically 50–80% of it).
Prefer an API?
Z.ai: GLM 5.1 is on OpenRouter at $1.40 per 1M input tokens and $4.40 per 1M output tokens. Price details and history →
Questions
How much VRAM does GLM 5.1 need?
About 434 GB at 4-bit (Q4_K_M) with an 8K context: 433 GB of weights (real GGUF file size), 0.8 GB of KV cache and 0.7 GB of runtime overhead. At 8-bit it needs about 748 GB.
What is the smallest GPU that runs GLM 5.1?
No single consumer GPU in our table fits it at Q4_K_M with 8K context.
Can I run GLM 5.1 on a Mac?
Not at Q4_K_M with 8K context on any Mac in our table, even a 512 GB Mac Studio, using the default GPU memory limit.
Model facts
| Hugging Face repo | zai-org/GLM-5.1 |
| Parameters | 753,864,139,008 (754B) · ~42B active (computed from config) |
| Layers / hidden size | 78 / 6144 |
| Attention | MLA; 64 heads, 64 KV heads, head dim 64 |
| KV cache per token (FP16) | 107.3 KiB |
| Max context | 202,752 tokens |
| License | mit |
| Released on HF | Apr 3, 2026 |
| Downloads (30d) / likes | 745,621 / 1,851 |
Sources: Hugging Face model API · config.json (zai-org/GLM-5.1) · GGUF files · GPU specs from vendor pages (list). Data fetched Nov 17, 2026. Spot an error? Report it.