GLM-5.2
MoEToolsThinkingZ.ai · 753B (40B active) · Mixture of Experts
Frontier open-weight coder — top SWE-bench, 1M context
0
0
2026-06
1M tokens
Use cases
Your hardware
16 GB Reference Desktop
Quantization options
What is quantization?| Quant | Bits | VRAM | Disk | Quality | Status |
|---|---|---|---|---|---|
| Q2_K | 2 | 241.6 GB | 230.1 GB | low | Too heavy · ~1 t/s |
| Q3_K_M | 3 | 338 GB | 322.2 GB | moderate | Too heavy · ~1 t/s |
| Q4_K_M | 4 | 386.2 GB | 368.2 GB | good | Too heavy · ~1 t/s |
| Q5_K_M | 5 | 482.6 GB | 460.2 GB | good | Too heavy · ~1 t/s |
| Q6_K | 6 | 579.1 GB | 552.3 GB | excellent | Too heavy · ~1 t/s |
| Q8_0 | 8 | 771.9 GB | 736.4 GB | excellent | Too heavy · ~1 t/s |
| F16 | 16 | 1543.3 GB | 1472.7 GB | lossless | Too heavy · ~1 t/s |
About this model
GLM-5.2 (GLM-5.2) is a 753B sparse mixture-of-experts (MoE) model activating 40B active per token from Z.ai in the GLM family, designed primarily for chat, code, reasoning workflows. Native reasoning/thinking tokens expand output length per query, so reserve extra KV cache headroom. Supports structured tool calling; use Q4_K_M or higher when strict JSON schema adherence matters. Supports up to 1M context tokens; start at 4K–8K with Q8_0 KV cache on tight GPUs.
Hardware planning baselines start at 420.8 GB minimum memory and 701.3 GB recommended memory. At Q4_K_M, weights plus baseline runtime overhead use roughly 386.2 GB of RAM/VRAM and 368.2 GB of disk space. At 753B, GLM-5.2 belongs firmly in the workstation and multi-GPU tier. Running it comfortably requires 701.3 GB of total memory across dual RTX GPUs, high-memory Apple Silicon (Mac Studio Ultra/Max), or MoE hybrid CPU-RAM offloading—mobile devices and standard 16 GB laptops are too constrained for practical speeds.
Deploy GLM-5.2 locally via Ollama (`glm-5.2`), Ollama with Flash Attention enabled. Under MIT License, review official weight cards before commercial redistribution.
Highlights
- Local Fit Baseline420.8 GB minimum and 701.3 GB recommended RAM/VRAM.
- Primary QuantQ4_K_M targets 386.2 GB memory and 368.2 GB disk.
- Context & Capabilities1M max context · Sparse MoE · Tool calling · Reasoning.
System requirements by device
Memory planning targets 420.8 GB minimum RAM/VRAM and 701.3 GB recommended memory. The baseline quant is Q4_K_M, estimated at 386.2 GB memory and 368.2 GB disk. Actual runtime usage shifts with context length, KV cache precision, and OS background overhead.
| Device | Notes |
|---|---|
| Mac (Apple silicon) | Requires a 48 GB–192 GB Mac Studio or MacBook Pro Max/Ultra with enough unified wired budget for 386.2 GB. |
| Windows / Linux GPU | Use dual/multi-GPU CUDA splitting (--tensor-split) or MoE CPU expert offloading (-ot) paired with 32–128 GB DDR5 system RAM. |
| Phones & Compact Edge Boards | Not practical on phones (420.8 GB min RAM exceeds Android LMK and iOS Jetsam limits). Pick a 2B–4B model on mobile. |
Start with a short session and leave memory for the operating system. A file fitting on disk does not guarantee that it will load in memory.
Estimated memory by quantization
These are rough estimates, not tested minimum requirements. Check the actual file and runtime documentation; context, offloading and operating-system overhead can change the memory needed.
| Quant Tier | Estimated memory | Disk Size | Quality |
|---|---|---|---|
| Q2_K | 241.6 GB | 230.1 GB | low |
| Q3_K_M | 338.0 GB | 322.2 GB | moderate |
| Q4_K_M | 386.2 GB | 368.2 GB | good |
| Q5_K_M | 482.6 GB | 460.2 GB | good |
| Q6_K | 579.1 GB | 552.3 GB | excellent |
| Q8_0 | 771.9 GB | 736.4 GB | excellent |
| F16 | 1543.3 GB | 1472.7 GB | lossless |
How to run GLM-5.2 on your device
Start with a short prompt and the smallest quant that still gives the quality you need. A clean first run is more useful than loading a larger file with no memory headroom.
Run GLM-5.2 on Multi-GPU or High-RAM Desktop
- Plan for 420.8 GB minimum combined memory and 701.3 GB recommended memory for Q4_K_M.
- Use llama.cpp `-ot ".ffn_.*_exps.=CPU"` or `--tensor-split` across multiple GPUs so attention and KV cache remain in fast VRAM.
- Enable Flash Attention (`-fa on`) and Q8_0 KV cache (`-ctk q8_0 -ctv q8_0`) to prevent context buffers from exceeding GPU headroom.
- Avoid attempting to run workstation-scale weights on smartphones or 8 GB laptops; use a 2B–8B checkpoint on portable devices.
Run GLM-5.2 on High-Memory Apple Silicon Mac
- Verify you are on a 48 GB–192 GB Mac Studio or MacBook Pro Max/Ultra capable of holding 386.2 GB in wired unified memory.
- Launch via `llama-server` or LM Studio with MLX/Metal enabled and set initial context conservatively to 4K–8K.
- Monitor Activity Monitor Memory Pressure to confirm zero SSD swap thrashing during token generation.
- Step down to a lighter quantization (e.g., Q3_K_M or IQ4_XS) if total memory utilization exceeds 75%.
GLM-5.2 vs alternatives
| Model | Params | Context | Min RAM | License |
|---|---|---|---|---|
| GLM-5.2 | 753B (40B active) | 1M | 420.8 GB | MIT |
| GLM-5.3 | 753B (40B active) | 1M | 420.8 GB | MIT |
| GLM-5.1 | 754B (40B active) | 128K | 421.3 GB | MIT |
| GLM-5 | 744B (40B active) | 128K | 415.7 GB | MIT |
| GLM-4.6 | 357B (32B active) | 195K | 199.5 GB | MIT |
| GLM-4.5 Air | 106B (12B active) | 128K | 59.2 GB | MIT |
Use this table to choose the smallest nearby model that still matches the job. A related model with lower RAM can be the better local choice when the current page fits only at the edge of available memory.
Frequently asked questions
- What is GLM-5.2?
- GLM-5.2 is a 753B sparse mixture-of-experts model (40B active active per token) from Z.ai, supporting up to 1M tokens with 420.8 GB minimum RAM and 701.3 GB recommended RAM.
- How do I download and install GLM-5.2?
- Download a GGUF build for GLM-5.2, start with Q4_K_M, and confirm the model fits locally before increasing context or quant quality.
- How much VRAM or RAM does GLM-5.2 require?
- At Q4_K_M, GLM-5.2 occupies roughly 386.2 GB of active memory and 368.2 GB on disk. Add 2–6 GB of spare headroom for KV cache buffers, runtime scratch space, and OS apps (701.3 GB recommended).
- What is the best way to run GLM-5.2 locally?
- Use `ollama run glm-5.2` for a quick CLI/API setup, or load Q4_K_M in LM Studio or llama.cpp with Flash Attention enabled when you want explicit KV cache and layer control.
- Can GLM-5.2 run on a consumer laptop or smartphone?
- No smartphone or 8–16 GB laptop can hold GLM-5.2 cleanly in local memory. It targets multi-GPU NVIDIA workstations, high-RAM Mac Studios, or MoE CPU-RAM hybrid rigs with at least 420.8 GB total memory.
- How does GLM-5.2 compare to GLM-5.3?
- GLM-5.3 (753B, 420.8 GB min RAM) sits closest in size. Compare active parameters, context ceiling (1M vs 1M), and license terms (MIT) before switching.