GLM-4 32B 0414

Dense 32B GLM-4 model with grouped query attention using only 2 KV heads, so its KV cache stays small.

Z.ai·32.6B params·61 layers / 2 KV heads·Max 32K ctx·MIT
Local Run Command
zai-org/GLM-4-32B-0414 ↗
Q4_K_M minimum memory: 20.8 GB at 16K context.
Artificial Analysis Benchmarkartificialanalysis.ai ↗
Intelligence Index
—

Independent benchmark scores sourced from Artificial Analysis.

OpenRouter API & Cloud GPU
No live OpenRouter route synced.

VRAM by Quantization (16K context)

Q4_K_M (4-bit)18.3 GB
estimate
0.9 GB20.8 GB20.4 GBBest speed-to-quality balance for local inference (~98% quality)
Q6_K (6-bit)24.9 GB
estimate
0.9 GB27.7 GB27.2 GBNear-lossless quality with ~35% larger footprint than Q4
Q8_0 (8-bit)32.2 GB
estimate
0.9 GB35.4 GB34.9 GBVirtually indistinguishable from FP16 for coding & reasoning
FP16 / BF16 (16-bit)60.7 GB
estimate
0.9 GB65.1 GB64.6 GBFull native precision; standard for production GPU serving

Layer and head counts are read from the published config.json. KV cache is exact for this architecture.

Run GLM-4 32B 0414 with Ollama, LM Studio, llama.cpp, MLX or vLLM

Command
Ollama
Q4_K_M
18.3 GB
estimate
Not in the Ollama library.
LM Studio
Q4_K_M
unsloth/GLM-4-32B-0414-GGUF
18.3 GB
real file size
Not in LM Studio's catalog. Search for unsloth/GLM-4-32B-0414-GGUF in the app's Discover tab.
llama.cpp
Q4_K_M
unsloth/GLM-4-32B-0414-GGUF
18.3 GB
real file size
MLX
4-bit
mlx-community/GLM-4-32B-0414-4bit
17.1 GB
real file size
vLLM
INT4
19.7 GB
estimate
No INT4 build of this model found for vLLM.

Each runtime loads its own build of the model, so download sizes differ. Sizes marked as real are file sizes read from the Ollama registry or Hugging Face.

Hardware Compatibility Matrix (Q4_K_M · 16K context)

Details
11.5 GBToo large——GLM-4 32B 0414 on M1 16GB →
48.0 GBFits comfortably12.0–16.2 tok/s—GLM-4 32B 0414 on M1 Max 64GB →
98.0 GBFits comfortably22–30 tok/s—GLM-4 32B 0414 on M1 Ultra 128GB →
18.0 GBPartial offload1.3–3.1 tok/s—GLM-4 32B 0414 on M2 24GB →
48.0 GBFits comfortably14.4–19.5 tok/s—GLM-4 32B 0414 on M2 Max 64GB →
152 GBFits comfortably24–33 tok/s—GLM-4 32B 0414 on M2 Ultra 192GB →
27.0 GBFits comfortably5.8–7.8 tok/s—GLM-4 32B 0414 on M3 Pro 36GB →
48.0 GBFits comfortably14.5–19.6 tok/s—GLM-4 32B 0414 on M3 Max 64GB →
98.0 GBFits comfortably14.5–19.6 tok/s—GLM-4 32B 0414 on M3 Max 128GB →
11.5 GBToo large——GLM-4 32B 0414 on M4 16GB →
24.0 GBTight fit4.2–5.6 tok/s—GLM-4 32B 0414 on M4 32GB →
36.0 GBFits comfortably10.3–13.9 tok/s—GLM-4 32B 0414 on M4 Pro 48GB →
48.0 GBFits comfortably10.3–13.9 tok/s—GLM-4 32B 0414 on M4 Pro 64GB →
48.0 GBFits comfortably19.7–27 tok/s—GLM-4 32B 0414 on M4 Max 64GB →
98.0 GBFits comfortably19.7–27 tok/s—GLM-4 32B 0414 on M4 Max 128GB →
98.0 GBFits comfortably19.7–27 tok/s—GLM-4 32B 0414 on Studio M4 Max 128GB →
204 GBFits comfortably25–34 tok/s—GLM-4 32B 0414 on M3 Ultra 256GB →
430 GBFits comfortably25–34 tok/s—GLM-4 32B 0414 on M3 Ultra 512GB →
24.0 GBTight fit6.9–9.4 tok/s—GLM-4 32B 0414 on M1 Pro 32GB →
24.0 GBTight fit7.2–9.7 tok/s—GLM-4 32B 0414 on M2 Pro 32GB →
27.0 GBFits comfortably11.7–15.9 tok/s—GLM-4 32B 0414 on M3 Max 36GB →
11.5 GBToo large——GLM-4 32B 0414 on Air M4 16GB →
24.0 GBTight fit4.2–5.6 tok/s—GLM-4 32B 0414 on Air M4 32GB →
18.0 GBPartial offload3.5–8.3 tok/s—GLM-4 32B 0414 on M4 Pro 24GB →
11.5 GBToo large——GLM-4 32B 0414 on Air M5 16GB →
24.0 GBTight fit5.7–7.7 tok/s—GLM-4 32B 0414 on Air M5 32GB →
48.0 GBFits comfortably13.4–18.1 tok/s—GLM-4 32B 0414 on M5 Pro 64GB →
98.0 GBFits comfortably26–36 tok/s—GLM-4 32B 0414 on M5 Max 128GB →
24.0 GBTight fit6.5–8.8 tok/s—GLM-4 32B 0414 on mini M6 32GB →
48.0 GBFits comfortably13.4–18.1 tok/s—GLM-4 32B 0414 on mini M5 Pro 64GB →
98.0 GBFits comfortably26–36 tok/s—GLM-4 32B 0414 on Studio M5 Max 128GB →
430 GBFits comfortably51–69 tok/s—GLM-4 32B 0414 on Studio M5 Ultra 512GB →
11.2 GBToo large—2×GLM-4 32B 0414 on RTX 3060 12GB →
9.2 GBToo large—3×GLM-4 32B 0414 on RTX 3080 10GB →
22.8 GBTight fit29–39 tok/s1×GLM-4 32B 0414 on RTX 3090 24GB →
15.0 GBToo large—2×GLM-4 32B 0414 on RTX 4060 Ti 16GB →
15.0 GBToo large—2×GLM-4 32B 0414 on RTX 4070 Ti S 16GB →
15.0 GBToo large—2×GLM-4 32B 0414 on RTX 4080 S 16GB →
22.8 GBTight fit33–45 tok/s1×GLM-4 32B 0414 on RTX 4090 24GB →
15.0 GBToo large—2×GLM-4 32B 0414 on RTX 5070 Ti 16GB →
15.0 GBToo large—2×GLM-4 32B 0414 on RTX 5080 16GB →
30.5 GBFits comfortably60–82 tok/s1×GLM-4 32B 0414 on RTX 5090 32GB →
22.8 GBTight fit36–49 tok/s1×GLM-4 32B 0414 on RX 7900 XTX 24GB →
15.0 GBToo large—2×GLM-4 32B 0414 on RX 9070 XT 16GB →
10.2 GBToo large—3×GLM-4 32B 0414 on RTX 2080 Ti 11GB →
7.3 GBToo large—4×GLM-4 32B 0414 on RTX 3060 Ti 8GB →
7.3 GBToo large—4×GLM-4 32B 0414 on RTX 3070 8GB →
11.2 GBToo large—2×GLM-4 32B 0414 on RTX 3080 Ti 12GB →
22.8 GBTight fit33–44 tok/s1×GLM-4 32B 0414 on RTX 3090 Ti 24GB →
7.3 GBToo large—4×GLM-4 32B 0414 on RTX 4060 8GB →
7.3 GBToo large—4×GLM-4 32B 0414 on RTX 4060 Ti 8GB →
11.2 GBToo large—2×GLM-4 32B 0414 on RTX 4070 12GB →
11.2 GBToo large—2×GLM-4 32B 0414 on RTX 4070 S 12GB →
11.2 GBToo large—2×GLM-4 32B 0414 on RTX 4070 Ti 12GB →
15.0 GBToo large—2×GLM-4 32B 0414 on RTX 4080 16GB →
15.0 GBToo large—2×GLM-4 32B 0414 on RTX 5060 Ti 16GB →
11.2 GBToo large—2×GLM-4 32B 0414 on RTX 5070 12GB →
15.0 GBToo large—2×GLM-4 32B 0414 on RX 7800 XT 16GB →
18.9 GBPartial offload5.0–11.7 tok/s2×GLM-4 32B 0414 on RX 7900 XT 20GB →
15.0 GBToo large—2×GLM-4 32B 0414 on RX 9070 16GB →
15.0 GBToo large—2×GLM-4 32B 0414 on RX 9060 XT 16GB →
46.2 GBFits comfortably26–36 tok/s1×GLM-4 32B 0414 on RTX A6000 48GB →
46.2 GBFits comfortably34–46 tok/s1×GLM-4 32B 0414 on RTX 6000 Ada 48GB →
93.0 GBFits comfortably59–79 tok/s1×GLM-4 32B 0414 on PRO 6000 96GB →
15.0 GBToo large—2×GLM-4 32B 0414 on RTX A4000 16GB →
22.8 GBTight fit24–33 tok/s1×GLM-4 32B 0414 on RTX A5000 24GB →
18.9 GBPartial offload2.6–6.0 tok/s2×GLM-4 32B 0414 on RTX 4000 Ada 20GB →
30.5 GBFits comfortably22–30 tok/s1×GLM-4 32B 0414 on RTX 5000 Ada 32GB →
46.2 GBFits comfortably33–55 tok/s1×GLM-4 32B 0414 on PRO 5000 48GB →
46.2 GBFits comfortably26–35 tok/s1×GLM-4 32B 0414 on PRO W7900 48GB →
30.5 GBFits comfortably24–32 tok/s1×GLM-4 32B 0414 on AI PRO R9700 32GB →
22.8 GBTight fit10.5–17.5 tok/s1×GLM-4 32B 0414 on L4 24GB →
46.2 GBFits comfortably28–38 tok/s1×GLM-4 32B 0414 on L40S 48GB →
38.5 GBFits comfortably35–59 tok/s1×GLM-4 32B 0414 on A100 40GB →
77.5 GBFits comfortably40–53 tok/s1×GLM-4 32B 0414 on A100 80GB →
77.5 GBFits comfortably49–66 tok/s1×GLM-4 32B 0414 on H100 80GB →
137 GBFits comfortably55–92 tok/s1×GLM-4 32B 0414 on H200 141GB →
175 GBFits comfortably61–102 tok/s1×GLM-4 32B 0414 on B200 180GB →
15.0 GBToo large—2×GLM-4 32B 0414 on T4 16GB →
46.2 GBFits comfortably23–31 tok/s1×GLM-4 32B 0414 on A40 48GB →
46.2 GBFits comfortably30–41 tok/s1×GLM-4 32B 0414 on L40 48GB →
115 GBFits comfortably10.3–14.0 tok/s—GLM-4 32B 0414 on DGX Spark 128GB →
96.0 GBFits comfortably9.2–12.4 tok/s—GLM-4 32B 0414 on Ryzen AI Max+ 395 128GB →
48.0 GBFits comfortably9.2–12.4 tok/s—GLM-4 32B 0414 on Ryzen AI Max+ 395 64GB →

Frequently asked questions

How much VRAM does GLM-4 32B 0414 require?

At Q4_K_M quantization with a 16K context window, GLM-4 32B 0414 needs 20.8 GB total VRAM (18.3 GB weights + 0.9 GB KV cache + runtime overhead). In full FP16 precision, it requires 65.1 GB.

Can an RTX 4090 (24 GB) run GLM-4 32B 0414?

Yes. At Q4_K_M with 16K context GLM-4 32B 0414 needs 20.8 GB, which fits a single 24 GB RTX 4090 at an estimated 33–45 tok/s.

How do I run GLM-4 32B 0414 locally with Ollama?

GLM-4 32B 0414 is not in the Ollama library. Download the weights from Hugging Face (zai-org/GLM-4-32B-0414) and serve them with llama.cpp or vLLM.