VRAMGlass contains affiliate links. As an eBay Partner, we may be compensated if you make a purchase.As an eBay Partner, we may be compensated.Learn more

GPUs tracked57Price history49 daysPrice points (24h)43,400 pointsBiggest 24h dropGeForce RTX 3060 12GB-11.1%Biggest 24h riseCMP 170HX 40GB+19.8%Updated
$ USD

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
NVFP4 repo (Blackwell)
nvidia/GLM-5.2-NVFP4
Layers
78
Hidden size
6,144
KV heads
64
Head dim
192

How much VRAM does GLM 5.2 need for local deployment?

QuantizationWeightsGB32K contextGB128K contextGB256K contextGB1M context (max)GB
1-bit228.5GGUF232.5241.4253.1323.8
2-bit253.9GGUF257.9266.8278.5349.2
3-bit343GGUF347355.9367.6438.3
4-bit465.8GGUF469.8478.7490.4561.1
5-bit560.8GGUF564.8573.7585.4656.1
8-bit801.4GGUF805.4814.3826896.7
BF16/FP161,508GGUF1,5121,520.91,532.61,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.

eBay
DevicePriceSpeed t/sMax context
Mac Studio M3 Ultra 512GBWhole system · 512 GB$22,90013 listings22.1900K

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.

eBay
DeviceCardsTotal priceTotal VRAMSpeed t/sTotal power
DGX Spark 128GB128 GB per unit4 units$32,960512 GB7.6960 W
Instinct MI21064 GB per card8 cards$39,952512 GB38.82,400 W
RTX PRO 5000 72GB72 GB per card8 cards$85,776576 GB32.92,400 W
A100 80GB PCIe80 GB per card8 cards$151,992640 GB44.32,400 W
RTX PRO 600096 GB per card8 cards$180,000768 GB41.74,800 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.

eBay

Tesla V100 32GB + Dual Xeon E5 DDR4

Budget
Generation speed5.2t/s
Memory bandwidth137GB/s
GPU
Tesla V100 32GB3 / 78 expert layers in 32 GB VRAM
$895
RAM
512 GB DDR4-213316 × 32 GB sticks
$2,608
CPU
2 × Intel Xeon E5-2680 v428 cores / 56 threads · 8-channel in total
$38
Board
Supermicro X10DRi16 DIMM slots
$193
PSU
Corsair RM750e750 W
$70
Reference build price$3,804

GeForce RTX 3090 + Dual EPYC DDR4

Best value
Generation speed11.1t/s
Memory bandwidth341GB/s
GPU
GeForce RTX 30902 / 78 expert layers in 24 GB VRAM
$1,799
RAM
512 GB DDR4-266616 × 32 GB sticks
$3,360
CPU
2 × AMD EPYC 753264 cores / 128 threads · 16-channel in total
$524
Board
Supermicro H12DSi-N616 DIMM slots
$1,100
PSU
Corsair RM1200x SHIFT1,200 W
$135
Reference build price$6,918

GeForce RTX 5090 + Dual EPYC DDR5

Flagship
Generation speed26t/s
Memory bandwidth922GB/s
GPU
GeForce RTX 50903 / 78 expert layers in 32 GB VRAM
$8,395
RAM
768 GB DDR5-480024 × 32 GB sticks
$29,328
CPU
2 × AMD EPYC 935464 cores / 128 threads · 24-channel in total
$3,386
Board
Gigabyte MZ73-LM024 DIMM slots
$1,300
PSU
Seasonic PRIME PX-16001,600 W
$516
Reference build price$42,925

4 × RTX PRO 6000 + Dual EPYC DDR5

Giant models
Generation speed39.3t/s
Memory bandwidth922GB/s
GPU
4 × RTX PRO 600067 / 78 expert layers in 384 GB VRAM
$90,000
RAM
384 GB DDR5-480024 × 16 GB sticks
$14,328
CPU
2 × AMD EPYC 935464 cores / 128 threads · 24-channel in total
$3,386
Board
Gigabyte MZ73-LM024 DIMM slots
$1,300
PSU
2 × Seasonic PRIME PX-22004,400 W
$1,320
Reference build price$110,334

Detailed 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

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

  2. Turning off thinking is its strength

    5.2 has three modes: no thinking, High and Max. To turn thinking off, pass enable_thinking: false via chat_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.

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

  4. 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
All on GPU
Terminal
llama-server -hf unsloth/GLM-5.2-GGUF:Q4_K_M -c 8192
MoE offloading

Short on VRAM? Add --cpu-moe to keep the routed experts in system RAM (about 455 GB needed).

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

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

Terminal
mlx_lm.server --model mlx-community/GLM-5.2-4bit

Ollama

  • 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

ModelTotal paramsActive params4-bit size
GLM 4.7 FlashMoE30B3B18.3 GB
GLM 4.5 AirMoE106B12B73 GB
GLM 5.3 FlashMoE320B18B199.7 GB
GLM 5.3MoE744B40B467.3 GB

About GLM