Can I run GLM-5.3 locally?
GLM-5.3 is a very large mixture-of-experts model with multi-head latent attention (MLA) and DeepSeek-style sparse attention: 21 of its 78 layers also store one lightning-indexer key per token. llama.cpp supports it, and the GGUF files come from Unsloth.
The weights dominate. Long context still adds up, because every layer keeps a compressed MLA cache for every token: about 3 GB at 32K tokens and about 93 GB at 1M tokens at FP16.
Estimates with default assumptions: 10% runtime overhead, ~90% usable VRAM (~72% on Macs), FP16 KV cache, one sequence. Model data synced from Hugging Face on 2026-11-23. Methodology.
GLM-5.3 (MoE): memory by quantization
754B parameters, 78 layers. Weights are real GGUF file sizes from unsloth/GLM-5.3-GGUF.
| Quantization | Weights | Total at 8K context | Total at 32K context |
|---|---|---|---|
| F16 | 1404.4 GB | 1545.6 GB | 1547.8 GB |
| Q8_0 | 746.3 GB | 821.7 GB | 823.9 GB |
| Q4_K_MUnsloth dynamic file (UD-Q4_K_XL) | 435.2 GB | 479.4 GB | 481.6 GB |
| IQ4_XSUnsloth dynamic file (UD-IQ4_XS) | 340.2 GB | 375.0 GB | 377.2 GB |
| Q3_K_MUnsloth dynamic file (UD-Q3_K_XL) | 319.4 GB | 352.1 GB | 354.3 GB |
| Q2_KUnsloth dynamic file (UD-Q2_K_XL) | 236.4 GB | 260.8 GB | 263.0 GB |
Which hardware runs GLM-5.3 (MoE)?
Highest-quality quantization that fits fully. “Offload” means it runs only with part of the model in system RAM (64 GB assumed).
| Hardware | 8K context | 32K context |
|---|---|---|
| Mac Studio M3 Ultra (256 GB) | Doesn’t fit | Doesn’t fit |
| Mac Studio M5 Ultra (512 GB) | Q3_K_M (352.1 GB) | Q3_K_M (354.3 GB) |
| 4× NVIDIA H100 SXM (80 GB) | Q2_K (260.8 GB, big quality loss) | Q2_K (263.0 GB, big quality loss) |
| 4× NVIDIA H200 (141 GB) | Q4_K_M (479.4 GB) | Q4_K_M (481.6 GB) |
| 4× AMD Instinct MI300X (192 GB) | Q4_K_M (479.4 GB) | Q4_K_M (481.6 GB) |
| 8× NVIDIA H200 (141 GB) | Q8_0 (821.7 GB) | Q8_0 (823.9 GB) |
Try your own setup
Result
Fits fully
GLM-5.3 (MoE) · Q3_K_M · 32K → Mac Studio M5 Ultra (512 GB). 14.4 GB of headroom.
Borderline: within 5% of the limit. It may work with a headless GPU, a smaller context or less overhead — or fail. Test before buying.
| Component | Memory |
|---|---|
| Weightsactual GGUF file: UD-Q3_K_XL | 319.4 GB |
| KV cache32K tokens × 1 seq, F16 | 2.91 GB |
| Runtime overhead10% of weights | 31.9 GB |
| Total needed | 354.3 GB |
| Usable on your hardware72% of 512.0 GB | 368.6 GB |
- Only an Unsloth “dynamic” file exists at this level (UD-Q3_K_XL); its size is used.
- Mixture-of-experts: all experts must be in memory, so memory uses total parameters. Speed depends on active parameters.
Run it
Starting point, not a guarantee. Downloads the GGUF from Hugging Face.
llama-server -hf unsloth/GLM-5.3-GGUF:UD-Q3_K_XL -c 32768 -ngl 999Split file: llama.cpp downloads all parts automatically.
OLLAMA_CONTEXT_LENGTH=32768 ollama serve
ollama run hf.co/unsloth/GLM-5.3-GGUF:UD-Q3_K_XLThis GGUF is split into several files; if Ollama refuses it, use llama.cpp.
Model details
- Parameters
- 754BDerived from the BF16 GGUF size (1507988027936 bytes / 2 bytes per weight), text model only
- Layers
- 78
- Attention
- MLA + sparse-attention indexer (DSA)21× MLA (576 + indexer 128) · 57× MLA (576)
- Max context
- 1024K
- License
- other
- Config source
- zai-org/GLM-5.3synced 2026-10-24
Questions
What is the smallest setup that can run GLM-5.3?
Q2_K needs about 261 GB with overhead at 8K context. Four 80 GB H100s hold it; a Mac Studio with 512 GB holds Q3_K_M (about 352 GB). Machines with 256 GB or less need offload or cannot run it.
How much memory does Q4_K_M need?
About 435 GB of weights and about 479 GB in total at 8K context, which fits four 141 GB H200s. Q8_0 needs about 822 GB, which fits eight H200s or eight MI300X.
Does long context change the picture?
Yes, at very long context. The MLA cache stores 576 values per token in every layer, plus 128 indexer values in 21 layers. That is about 3 GB at 32K tokens but about 93 GB at 1M tokens at FP16. A Q8_0 KV cache roughly halves it.