Run GLM 5.2 Locally: VRAM & GPU Requirements
GLM 5.2 is Zhipu's 744B flagship MoE released in June 2026 that needs about 466 GB of VRAM at 4-bit, too big for any single GPU or 128GB machine. GLM 5.3, released in August, uses the same base model and nearly identical hardware while being more capable, so new local deployments should go straight to 5.3. There are two main reasons to keep 5.2: it can turn thinking off completely, and its license is plain MIT with no added terms.
GLM 5.2 details
- Min VRAM at 4-bit (8K context)468 GB
- Parameters744B
- Active params40B
- Max context1M
- Architecture
- MoE
- Experts offloaded
- 14 GB VRAM + 455 GB RAM
- License
- MIT
- Launch date
- Jun 16, 2026
- Vendor
- Z.ai / Zhipu AI
- Hugging Face repo
- zai-org/GLM-5.2
- GGUF repo
- unsloth/GLM-5.2-GGUF
- NVFP4 repo (Blackwell)
- nvidia/GLM-5.2-NVFP4
- MLX repo (Apple)
- mlx-community/GLM-5.2-4bit
- Layers
- 78
- Hidden size
- 6,144
- KV heads
- 64
- Head dim
- 192
How much VRAM does GLM 5.2 need?
The table below assumes all experts stay in VRAM with no RAM offloading. If you are short on VRAM, you can offload experts to RAM; see the complete builds below.
| Quantization | WeightsGB | 32K contextGB | 128K contextGB | 256K contextGB | 1M context (max)GB |
|---|---|---|---|---|---|
| 1-bit | 228.5GGUF | 232.5 | 241.4 | 253.1 | 323.8 |
| 2-bit | 253.9GGUF | 257.9 | 266.8 | 278.5 | 349.2 |
| 3-bit | 343GGUF | 347 | 355.9 | 367.6 | 438.3 |
| 4-bit | 465.8GGUF | 469.8 | 478.7 | 490.4 | 561.1 |
| 5-bit | 560.8GGUF | 564.8 | 573.7 | 585.4 | 656.1 |
| 8-bit | 801.4GGUF | 805.4 | 814.3 | 826 | 896.7 |
| BF16/FP16 | 1,508GGUF | 1,512 | 1,520.9 | 1,532.6 | 1,603.3 |
Full calculation rules are on the Methodology page.
Can a single GPU run GLM 5.2?
No. No graphics card can hold GLM 5.2: even 2-bit needs about 254 GB of VRAM, far beyond the largest 96GB cards. The one single-machine exception is the 512GB Mac Studio M3 Ultra: 2-bit and 3-bit fit outright, while 4-bit exceeds the memory macOS lets the GPU use by default unless you raise that limit with a system setting. Reading only about 40B parameters per token, 2-bit still runs in the high 30s of tokens/s on the Mac, which is fine for quick Q&A with thinking turned off. On GPUs, you need multiple cards or one large card in a high-RAM server with expert offload.
The table below assumes all experts stay in VRAM with no RAM offloading. If you are short on VRAM, you can offload experts to RAM; see the complete builds below.
| Device | Price | Speed t/s | Max context |
|---|---|---|---|
| Mac Studio M3 Ultra 512GBWhole system · 512 GB | $19,95017 listings | 37 | 1M |
| Device | Price | Speed t/s | Max context |
|---|---|---|---|
| Mac Studio M3 Ultra 512GBWhole system · 512 GB | $19,95017 listings | 22.1 | 900K |
Only common GPUs and systems are listed, from cheapest to most expensive.
How many GPUs do you need to run GLM 5.2?
GLM 5.2 uses the same multi-GPU setups as the similarly sized GLM 5.3, and 4-bit takes eight high-VRAM cards. Because 4-bit with 32K context needs about 470 GB of VRAM, four 96GB cards (384GB total) fall short and can only run the faster 2-bit file, while eight 96GB RTX PRO 6000 cards reach about 42 tokens/s and eight 80GB A100s about 44. Consumer 24GB and 32GB cards can't hold even 2-bit with eight in one box. Four DGX Sparks hold 4-bit at around 8 tokens/s, where 5.2's ability to turn thinking off completely keeps short questions from waiting behind a long reasoning pass.
| Device | Cards | Total price | Total VRAM | Speed t/s | Total power |
|---|---|---|---|---|---|
| 4 units | $31,600 | 512 GB | 13 | 960 W | |
| 8 cards | $39,192 | 384 GB | 33 | 2,400 W | |
| 4 cards | $39,500 | 288 GB | 51.7 | 1,200 W | |
| Instinct MI21064 GB per card | 8 cards | $40,312 | 512 GB | 59.8 | 2,400 W |
| 4 cards | $74,400 | 384 GB | 63.8 | 2,400 W | |
| 4 cards | $79,596 | 320 GB | 67.2 | 1,200 W | |
| 8 cards | No price | 384 GB | 41.3 | 3,600 W |
| Device | Cards | Total price | Total VRAM | Speed t/s | Total power |
|---|---|---|---|---|---|
| 4 units | $31,600 | 512 GB | 7.6 | 960 W | |
| Instinct MI21064 GB per card | 8 cards | $40,312 | 512 GB | 38.8 | 2,400 W |
| 8 cards | $79,000 | 576 GB | 32.9 | 2,400 W | |
| 8 cards | $148,800 | 768 GB | 41.7 | 4,800 W | |
| 8 cards | $159,192 | 640 GB | 44.3 | 2,400 W |
| Device | Cards | Total price | Total VRAM | Speed t/s | Total power |
|---|---|---|---|---|---|
| Mac Studio M3 Ultra 512GB512 GB per unit | 2 units | $39,900 | 1,024 GB | 13.2 | 960 W |
Mac Studios link up over Thunderbolt 5 and run with MLX or exo; vLLM doesn't support them. Full calculation rules are on the Methodology page.
What PC or server build do you need to run GLM 5.2 locally?
GLM 5.2's expert-offloading setups are the same as GLM 5.3's: at 2-bit, a used 8-channel DDR4 server (fully populated with 256GB) plus one RTX 3090 reaches about 14 tokens/s, and a 12-channel DDR5 server with an RTX PRO 6000 reaches about 42. Only that 12-channel DDR5 setup can run 4-bit, at about 23 tokens/s. On machines generating a dozen to a few dozen tokens per second, turning thinking off pays off even more: short questions don't have to wait for a long stretch of reasoning first.
GeForce RTX 3090 + Dual EPYC DDR4
Best valueGeForce RTX 5090 + Dual EPYC DDR5
Flagship2 × RTX PRO 6000 + Dual EPYC DDR5
Giant modelsTesla V100 32GB + Dual Xeon E5 DDR4
BudgetGeForce RTX 3090 + Dual EPYC DDR4
Best valueGeForce RTX 5090 + Dual EPYC DDR5
Flagship4 × RTX PRO 6000 + Dual EPYC DDR5
Giant models4 × Tesla V100 32GB + Dual Xeon E5 8-GPU server
Budget- PSU
- Built-in 4 × 1,600 W
- Included
4 × GeForce RTX 5090 + Dual EPYC DDR5
Flagship4 × RTX PRO 6000 + Dual EPYC DDR5
Giant modelsDetailed calculation rules are on the Methodology page.
As an eBay Partner, VRAMGlass may be compensated if you buy through the eBay links on this page. The price you pay stays the same.
What to know before running GLM 5.2 locally
How it differs from GLM 5.3
Zhipu says 5.3 and 5.2 share the same base model, and all the gains come from post-training: 5.3 is clearly stronger at complex coding and long tasks, with a 50% improvement on Zhipu's internal coding benchmark. Parameters, architecture and file sizes are nearly identical, so moving from 5.2 to 5.3 doesn't require new hardware.
Turning off thinking is its strength
5.2 has three modes: no thinking, High and Max. To turn thinking off, pass
enable_thinking: falseviachat_template_kwargs; in llama.cpp you can also just add--reasoning off. 5.3's thinking can't be turned off, only adjusted between low, high and max, so services that need fast, short answers still have a use for 5.2.License
5.2 is plain MIT, and Zhipu explicitly states there are no regional restrictions. 5.3 switched to Zhipu's own license, which adds one clause: model API providers with very large revenue must pass Zhipu's safety review before commercial use. For individuals and ordinary companies deploying it for their own use, the two licenses make no practical difference.
llama.cpp needs a build from late July or later
The sparse attention in the GLM 5 series relies on an “indexer” to pick out what to look at, and that indexer only landed in mainline llama.cpp on July 24, 2026 (PR #25407). Earlier versions ignore it, and the original PR explicitly said quality suffers as a result. Unsloth GGUFs you've already downloaded don't need re-downloading; just update llama.cpp.
Launch commands
llama.cpp
- NVIDIA
- AMD
- Mac
- CPU
llama-server -hf unsloth/GLM-5.2-GGUF:Q4_K_M -c 8192Short on VRAM? Add --cpu-moe to keep the routed experts in system RAM (about 455 GB needed).
llama-server -hf unsloth/GLM-5.2-GGUF:Q4_K_M -c 8192 -ngl 99 --cpu-moe
vLLM
- Linux
- NVIDIA
Follow the deployment guide to prepare the required runtime and hardware.
vllm serve zai-org/GLM-5.2-FP8 \ --kv-cache-dtype fp8 \ --tensor-parallel-size 8 \ --speculative-config.method mtp \ --speculative-config.num_speculative_tokens 5 \ --tool-call-parser glm47 \ --reasoning-parser glm47 \ --enable-auto-tool-choice \ --served-model-name glm-5.2-fp8
MLX
- Apple Silicon
On a Mac, pip install mlx-lm first; this command downloads the MLX weights from Hugging Face and starts an OpenAI-compatible server.
mlx_lm.server --model mlx-community/GLM-5.2-4bitOllama
- Windows
- macOS
- Linux
Ollama only has a cloud version, glm-5.2:cloud, which runs on Ollama's servers rather than on your machine.
File names follow that week's model-library snapshot; the definitions are in the methodology. Methodology
Other models in the GLM family
| Model | Total params | Active params | 4-bit size |
|---|---|---|---|
| 30B | 3B | 18.3 GB | |
| 106B | 12B | 73 GB | |
| 320B | 18B | 199.7 GB | |
| 744B | 40B | 467.3 GB |