Skip to content

GLM 5 on M5 Ultra 512 GB: VRAM, speed and fit

GLM 5 at 3-bit runs on the M5 Ultra 512 GB with 198K of context at about 27 tokens a second.

Text generation · Chat · Ollama / LM Studio

Runs comfortably · on M5 Ultra 512 GB · 3-bit (Q3_K_M) · Ollama / LM Studio · Chat

GPU memory
491 GB
of 512 GB
Context
198K
auto
Speed
27 tok/s
16 when full
First reply
8.3 s
2K prompt

Where the memory goes

Model
343 GB
Context
18.9 GB
Overhead
751 MB
OS
128 GB
Free
21.3 GB
Memory
491 GB of 512 GB
Context
198K tokens · auto
Speed
27 tok/s · 16 when full
First reply
8.3 s for a 2K prompt
Running cost
$5.06/mo at home · $574/mo on a cloud 8× A40

Validation: Not validated

What GLM 5 on M5 Ultra 512 GB was checked against
CheckTargetResultStatus
Fits in GPU memory384 GB usable363 GB neededPass
Headroom5% free21.3 GB free (6%)Pass
Context for chat16K or more198KPass
Writing speed15 tok/s or more27 tok/sPass
First replyunder 3 s, 2K prompt8.3 sFails

Targets: a reply you can read along with, a first reply the use case tolerates, and 5% of memory left free. Calculated from published specs, not benchmarked.

The setup

Model
GLM 5
Parameters
754B, 42.4B active
Precision
3-bit (Q3_K_M)
Context
198K, auto
Chats at once
1
Use
Chat
Runs in
Ollama / LM Studio
Hardware
M5 Ultra 512 GB
GPU can use
384 GB of 512 GB

Running cost

At home
$5.06/mo
231 W at the wall
Renting instead
$574/mo
8× A40 at $4.72/h

4 h a day, power at $0.18 per kWh, cloud at RunPod on-demand prices as of Nov 22, 2026.

How to run it

llama.cpp
llama-server -hf unsloth/GLM-5-GGUF
vLLM
vllm serve zai-org/GLM-5
MLX (Mac)
mlx_lm.chat --model mlx-community/GLM-5-4bit

GLM 5 on similar machines

  • M5 Max 128 GBToo big
  • M3 Ultra 96 GBToo big
  • M3 Ultra 256 GBRuns
  • M3 Ultra 512 GBRuns
  • Ryzen AI Max+ 395 64 GBToo big
  • Ryzen AI Max+ 395 128 GBToo big
  • RTX SparkJust misses
  • DGX SparkJust misses

All machines: GLM 5 VRAM requirements. Everything that runs here: what can the M5 Ultra 512 GB run?

Other models that run on M5 Ultra 512 GB

Questions

Can GLM 5 run on M5 Ultra 512 GB?

GLM 5 at 3-bit runs on the M5 Ultra 512 GB with 198K of context at about 27 tokens a second.

Report VR-1KXETBE, calculated Nov 22, 2026 from published specs, not benchmarked.