How Much VRAM Does GLM 5.2 Need to Run Locally?
See devices that run itGLM 5.2 is a MoE model with 744B total parameters and 40B active per token. At Q4 it needs 445GB of VRAM to sit entirely on the GPU; with experts offloaded to system RAM it needs only 41GB of VRAM plus 406GB of RAM. The cheapest device that holds it is the Mac Studio M3 Ultra 512GB, with no used-price data yet, at roughly 11.5 tokens/s. In offload mode the cheapest card that runs it is the GeForce RTX 4090 48GB (modded), at roughly 3 tokens/s.
GLM 5.2 details
VRAM needed for GLM 5.2 by quantization and context
Total at 8KMoE: all 744B parameters must stay resident in memory, while speed is set by the 40B active per token.
| Quantization | WeightsGB | Total at 8KGB | Total at 32KGB | Total at 128KGB |
|---|---|---|---|---|
| Q4_K_M | 414.7est. | 445 | 532.7 | 883.7 |
| Q5_K_M | 502est. | 532.3 | 620 | 971 |
| Q8_0 | 771.2est. | 801.5 | 889.2 | 1,240.2 |
| FP16 | 1,455.1est. | 1,485.3 | 1,573.1 | 1,924.1 |
Total = weights + KV cache (FP16) + 1GB runtime overhead. Weights marked GGUF are measured file sizes from the repository; the rest are estimated from bytes per parameter. Contexts beyond this model's 1M limit show a dash.
Which GPUs can run GLM 5.2?
Q4_K_M · 8K context · sorted by eBay used price| Device | VRAMGB | Used price | Est. t/s | Suggested context |
|---|---|---|---|---|
| Mac Studio M3 Ultra 512GB | 512 | —No listings | 11.5 | 8K |
Fits when weights + KV cache + runtime overhead is at or below usable memory, single card. "Offload" on MoE models means it runs with expert weights in system RAM (only attention layers and KV cache stay in VRAM); that speed assumes 70 GB/s RAM bandwidth. The context column is the largest tier that fits.
GPUs that run GLM 5.2 with experts offloaded to RAM
Expert weights live in system RAM (needs at least 406 GB); VRAM holds only attention layers, shared experts and the KV cache, at least 41 GB at Q4. Speed is bound by RAM bandwidth (estimated at 70 GB/s) and is far slower than a full-VRAM setup.
| Device | VRAMGB | Used price | RAM neededGB | Est. t/s |
|---|---|---|---|---|
| 48 | — | 406 | 3.3 | |
| 48 | — | 406 | 3.1 | |
| 48 | — | 406 | 3.4 | |
| 64 | — | 406 | 3.4 | |
| 64 | — | 406 | 3.4 | |
| 72 | — | 406 | 3.4 | |
| 84 | — | 406 | 3.4 | |
| 96 | — | 406 | 3.5 | |
| Mac Studio M4 Max 128GB | 128 | — | 406 | 2.9 |
| Mac Studio M5 Max 128GB | 128 | — | 406 | 2.9 |
| MacBook Pro M4 Max 128GB | 128 | — | 406 | 2.9 |
| MacBook Pro M5 Max 128GB | 128 | — | 406 | 2.9 |
Run GLM 5.2 with Ollama, llama.cpp or vLLM
The Ollama library has no official tag for it yet.
llama.cpp pulls the GGUF straight from Hugging Face; -c sets the context length.
llama-server -hf unsloth/GLM-5.2-GGUF:Q4_K_M -c 8192
vLLM serves the original-precision weights, which needs far more memory than GGUF and usually more than one GPU.
vllm serve zai-org/GLM-5.2
File names follow that week's model-library snapshot; the definitions are in the methodology. Methodology
FAQ
How much VRAM does GLM 5.2 need?
At Q4_K_M with an 8K context GLM 5.2 needs about 445GB of VRAM; 536GB leaves comfortable headroom.
What is the cheapest GPU that runs GLM 5.2?
The Mac Studio M3 Ultra 512GB: 512GB of VRAM at roughly 11.5 tokens/s. We have no used-price data for it yet.
Can you run GLM 5.2 with Ollama?
Not yet: the Ollama library has no official tag for it. You can load the GGUF with llama.cpp instead.