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 430 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 bartowski/zai-org_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 | 249 GB | 249 GB | 252 GB | 262 GB |
| 3-bit (Q3_K_M) • | usable | 322 GB | 322 GB | 325 GB | 335 GB |
| 4-bit (Q4_K_M) • | good, most popular | 429 GB | 430 GB | 432 GB | 442 GB |
| 5-bit (Q5_K_M) • | very good | 503 GB | 503 GB | 506 GB | 516 GB |
| 6-bit (Q6_K) • | near lossless | 609 GB | 609 GB | 612 GB | 622 GB |
| 8-bit (Q8_0) • | effectively lossless | 747 GB | 748 GB | 750 GB | 760 GB |
| 16-bit (F16/BF16) | original weights | 1405 GB | 1406 GB | 1408 GB | 1418 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 430 GB at 4-bit (Q4_K_M) with an 8K context: 428 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.
Similar models
Same family or a similar parameter count, with the VRAM each needs at Q4_K_M and 8K context.
GLM 5
754B · 426 GB at 4-bitGLM 5.3
753B · 430 GB at 4-bitGLM 5.2
753B · 435 GB at 4-bitDeepSeek V4.1 Flash 1017
763B · 436 GB at 4-bitDeepSeek V4.1 Flash
763B · 416 GB at 4-bitHy4 Preview
780B · 445 GB at 4-bitEmbed this
Free badge and "Will it run on my GPU?" widget for model cards, READMEs and blogs. No cookies, no tracking. All options.
Copy a snippet
Markdown badge
[](https://runsonmy.com/model/glm-5-1/) Widget (script)
<div class="runsonmy-widget" data-model="glm-5-1"><a href="https://runsonmy.com/model/glm-5-1/">Will GLM 5.1 run on my GPU? Check on RunsOnMy</a></div>
<script async src="https://runsonmy.com/embed.js"></script> Widget (iframe)
<iframe src="https://runsonmy.com/embed/m/glm-5-1/" width="100%" height="220" style="max-width:440px;border:0" loading="lazy" title="Will GLM 5.1 run on my GPU? (RunsOnMy)"></iframe> 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 | 746,250 / 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.