How to Deploy GLM 5.2 Locally
GLM 5.2 is Zhipu's 744B flagship MoE, released in June 2026; at 4-bit it is about 466 GB, too big for any single GPU or 128GB machine. GLM 5.3, released in August, uses the same base model, needs almost the same hardware and is more capable, so new 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-bit468 GB · 8K
- 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 for local deployment?
| 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 it: even 2-bit needs about 254 GB, far beyond the largest 96GB cards. The one single machine that can is the 512GB Mac Studio M3 Ultra. 2-bit and 3-bit fit outright, while 4-bit goes past the share of memory macOS lets the GPU use by default, so you have to raise that limit with a system setting first. Since it's an MoE that reads 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, your options are multiple cards or one big card paired with a large-memory server that holds the experts.
| Device | Price | Speed t/s | Max context |
|---|---|---|---|
| Mac Studio M3 Ultra 512GBWhole system · 512 GB | $22,90013 listings | 37 | 1M |
| Device | Price | Speed t/s | Max context |
|---|---|---|---|
| Mac Studio M3 Ultra 512GBWhole system · 512 GB | $22,90013 listings | 22.1 | 900K |
Only common GPUs and systems are listed, one set for models under 50B and another for larger ones, sorted by price from low to high.
How many GPUs do you need to run GLM 5.2?
Multi-GPU setups carry over directly from GLM 5.3, since the files are nearly the same size. 4-bit takes eight high-memory cards: eight 96GB RTX PRO 6000 cards run at about 42 tokens/s and eight 80GB A100s at about 44. With 32K of context it needs about 470 GB, more than four 96GB cards' 384GB. If you only have four, run 2-bit, which is actually faster. Consumer 24GB and 32GB cards can't hold even 2-bit with eight in one box. Four DGX Sparks can hold 4-bit but crawl at around 8 tokens/s, and that's where 5.2's ability to switch thinking off completely pays off: short questions don't sit behind a long reasoning pass.
| Device | Cards | Total price | Total VRAM | Speed t/s | Total power |
|---|---|---|---|---|---|
| 4 units | $32,960 | 512 GB | 13 | 960 W | |
| 8 cards | $39,192 | 384 GB | 33 | 2,400 W | |
| Instinct MI21064 GB per card | 8 cards | $39,952 | 512 GB | 59.8 | 2,400 W |
| 4 cards | $42,888 | 288 GB | 51.7 | 1,200 W | |
| 4 cards | $75,996 | 320 GB | 67.2 | 1,200 W | |
| 4 cards | $90,000 | 384 GB | 63.8 | 2,400 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 | $32,960 | 512 GB | 7.6 | 960 W | |
| Instinct MI21064 GB per card | 8 cards | $39,952 | 512 GB | 38.8 | 2,400 W |
| 8 cards | $85,776 | 576 GB | 32.9 | 2,400 W | |
| 8 cards | $151,992 | 640 GB | 44.3 | 2,400 W | |
| 8 cards | $180,000 | 768 GB | 41.7 | 4,800 W |
| Device | Cards | Total price | Total VRAM | Speed t/s | Total power |
|---|---|---|---|---|---|
| Mac Studio M3 Ultra 512GB512 GB per unit | 2 units | $45,800 | 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?
The expert-offloading setups are also the same as for GLM 5.3. At 2-bit, a used 8-channel DDR4 server (fully populated with 256GB) plus one RTX 3090 does about 14 tokens/s, and a 12-channel DDR5 server with an RTX PRO 6000 about 42. Only the latter can run 4-bit, at about 23. On machines that generate a dozen or so to a few dozen tokens per second, being able to turn 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 |