RunsOnMy ModelsGPUs & MacsAPI pricesVRAM calculatorNew

Can I run GLM 4.7 locally?

GLM 4.7 by zai-org has 358B parameters (36B active per token, 160 experts, 8 used per token). At 4-bit with an 8K context it needs about 205 GB of GPU memory. It fits on 4 of 65 GPUs and Macs we track.

205 GBQ4_K_M · 8K context
nonesmallest consumer GPU that fits
M3 Ultra 512GBsmallest Mac that fits
198Kmax context
GQAattention type

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-4.7-GGUF where available (marked •), otherwise parameter count × bits per weight. How we calculate.

QuantQuality4K ctx8K ctx32K ctx128K ctx
2-bit (Q2_K) •rough124 GB126 GB134 GB169 GB
3-bit (Q3_K_M) •usable162 GB163 GB172 GB206 GB
4-bit (Q4_K_M) •good, most popular204 GB205 GB214 GB248 GB
5-bit (Q5_K_M) •very good239 GB240 GB249 GB283 GB
6-bit (Q6_K) •near lossless276 GB278 GB286 GB321 GB
8-bit (Q8_0) •effectively lossless357 GB358 GB367 GB401 GB
16-bit (F16/BF16) •original weights670 GB671 GB680 GB714 GB

Which GPUs and Macs run GLM 4.7?

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).

HardwareMemoryFits?Best quantNeedsMax tok/s (est.)
RTX 3060 12GB12 GBNo———details
RTX 4060 Ti 16GB16 GBNo———details
RTX 309024 GBNo———details
RTX 409024 GBNo———details
RTX 509032 GBNo———details
RTX 5070 Ti16 GBNo———details
RX 7900 XTX24 GBNo———details
Mac M4 Pro 48GB48 GBNo———details
Mac M4 Max 128GB128 GBNo———details
Mac M3 Ultra 512GB512 GBFitsQ6_K278 GB28details
DGX Spark128 GBNo———details
RTX 407012 GBNo———details
RTX 5060 Ti 16GB16 GBNo———details
RTX 40608 GBNo———details
Arc B58012 GBNo———details
RTX 3060 Ti8 GBNo———details
RTX 30708 GBNo———details
RTX 3080 10GB10 GBNo———details
RTX 3080 12GB12 GBNo———details
RTX 3090 Ti24 GBNo———details
RTX 4060 Ti 8GB8 GBNo———details
RTX 4070 Super12 GBNo———details
RTX 4070 Ti12 GBNo———details
RTX 4070 Ti Super16 GBNo———details
RTX 408016 GBNo———details
RTX 4080 Super16 GBNo———details
RTX 50608 GBNo———details
RTX 507012 GBNo———details
RTX 508016 GBNo———details
2x RTX 30902×24 GBNo———details
2x RTX 40902×24 GBNo———details
2x RTX 50902×32 GBNo———details
RTX A600048 GBNo———details
RTX 6000 Ada48 GBNo———details
RTX PRO 6000 Blackwell96 GBNo———details
L40S48 GBNo———details
A100 40GB40 GBNo———details
A100 80GB80 GBNo———details
H100 PCIe80 GBNo———details
H100 SXM80 GBNo———details
H200141 GBTightQ2_K126 GB369details
RX 76008 GBNo———details
RX 7700 XT12 GBNo———details
RX 7800 XT16 GBNo———details
RX 7900 GRE16 GBNo———details
RX 7900 XT20 GBNo———details
RX 907016 GBNo———details
RX 9070 XT16 GBNo———details
Ryzen AI Max+ 395 128GB128 GBNo———details
Arc A770 16GB16 GBNo———details
Mac M1 16GB16 GBNo———details
Mac M2 24GB24 GBNo———details
Mac M3 24GB24 GBNo———details
Mac M4 16GB16 GBNo———details
Mac M4 32GB32 GBNo———details
Mac M1 Pro 32GB32 GBNo———details
Mac M3 Pro 36GB36 GBNo———details
Mac M4 Pro 24GB24 GBNo———details
Mac M4 Pro 64GB64 GBNo———details
Mac M1 Max 64GB64 GBNo———details
Mac M2 Max 96GB96 GBNo———details
Mac M3 Max 128GB128 GBNo———details
Mac M4 Max 64GB64 GBNo———details
Mac M2 Ultra 192GB192 GBFitsQ2_K126 GB61details
Mac M3 Ultra 256GB256 GBFitsQ3_K_M163 GB48details

Prefer an API?

Z.ai: GLM 4.7 is on OpenRouter at $0.40 per 1M input tokens and $1.75 per 1M output tokens. Price details and history →

Questions

How much VRAM does GLM 4.7 need?

About 205 GB at 4-bit (Q4_K_M) with an 8K context: 202 GB of weights (real GGUF file size), 2.9 GB of KV cache and 0.7 GB of runtime overhead. At 8-bit it needs about 358 GB.

What is the smallest GPU that runs GLM 4.7?

No single consumer GPU in our table fits it at Q4_K_M with 8K context; the smallest option that does is the Mac M3 Ultra 512GB (512 GB).

Can I run GLM 4.7 on a Mac?

Yes. At Q4_K_M with 8K context it fits on a Mac M3 Ultra 512GB or larger, using the default macOS GPU memory limit.

Model facts

Hugging Face repozai-org/GLM-4.7
Parameters358,337,791,296 (358B) · ~36B active (computed from config)
Layers / hidden size92 / 5120
AttentionGQA; 96 heads, 8 KV heads, head dim 128
KV cache per token (FP16)368.0 KiB
Max context202,752 tokens
Licensemit
Released on HFDec 22, 2025
Downloads (30d) / likes49,923 / 2,074

Sources: Hugging Face model API · config.json (zai-org/GLM-4.7) · GGUF files · GPU specs from vendor pages (list). Data fetched Nov 17, 2026. Spot an error? Report it.