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.

QuantizationWeightsTotal at 8K contextTotal at 32K context
F161404.4 GB1545.6 GB1547.8 GB
Q8_0746.3 GB821.7 GB823.9 GB
Q4_K_MUnsloth dynamic file (UD-Q4_K_XL)435.2 GB479.4 GB481.6 GB
IQ4_XSUnsloth dynamic file (UD-IQ4_XS)340.2 GB375.0 GB377.2 GB
Q3_K_MUnsloth dynamic file (UD-Q3_K_XL)319.4 GB352.1 GB354.3 GB
Q2_KUnsloth dynamic file (UD-Q2_K_XL)236.4 GB260.8 GB263.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).

Hardware8K context32K context
Mac Studio M3 Ultra (256 GB)Doesn’t fitDoesn’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

Model
Your hardware
Context length (tokens)
Assumptions

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.

Bar: memory needed vs. usable memory (marker).
Memory breakdown
ComponentMemory
Weightsactual GGUF file: UD-Q3_K_XL319.4 GB
KV cache32K tokens × 1 seq, F162.91 GB
Runtime overhead10% of weights31.9 GB
Total needed354.3 GB
Usable on your hardware72% of 512.0 GB368.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.cpp
llama-server -hf unsloth/GLM-5.3-GGUF:UD-Q3_K_XL -c 32768 -ngl 999

Split file: llama.cpp downloads all parts automatically.

ollama
OLLAMA_CONTEXT_LENGTH=32768 ollama serve
ollama run hf.co/unsloth/GLM-5.3-GGUF:UD-Q3_K_XL

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