1. Home
  2. Z.ai GLM-4.7
  3. Mac Studio M5 Ultra 512GB

Disclosure As an Amazon Associate I earn from qualifying purchases. Some links on this page are affiliate links. If you sign up or buy through them, LocalAI Moa may earn a commission at no extra cost to you.

Fast

Running Z.ai GLM-4.7 on Mac Studio M5 Ultra 512GB

Running Z.ai GLM-4.7 (Q6_K) on Mac Studio M5 Ultra 512GB at 8K context uses 307GB of memory at ~26 tok/s (est.). Fits cleanly in memory with headroom to spare—fast enough for interactive chat and coding.

Weights 299GB KV Cache 7.1GB Runtime 0.8GB Total 307GB
Tokens/sec
26 Est.
Free Headroom
76.7GB
Max Context
94K
Speed Rank
#2/ 2

Scaling Context Length

Required memory and verdict by context window
ContextRequiredStatus
8K307GBFast
16K314GBFast
32K329GBFast
64K357GBTight
128K413GBNo Fit

Switching Quantization

Required memory, verdict, and tokens/sec by quantization
QuantRequiredStatusTokens/s
Q3_K_M186GBFast39
Q4_K_M229GBFast33
Q5_K_M268GBFast29
Q6_K307GBFast26
Q8_0396GBNo Fit–

Other Options

Try Before Buying Affiliate link: LocalAI Moa earns a commission when you sign up and use RunPod at no extra cost to you.
Test Z.ai GLM-4.7 on a cloud GPU before upgrading

Before spending thousands on a new GPU or workstation, spin up an hourly RTX 5090, H100, or B200 on RunPod to verify real-world speed and output quality.

Referral perk · Spend your first $10 after signing up to unlock a $5–$500 random credit bonus.

After creating a RunPod account, paste this setup prompt into ChatGPT, Claude, or Gemini for step-by-step instructions.

I want to run Z.ai GLM-4.7 on a cloud GPU using RunPod. I have already created a RunPod account, and this is my first time setting up a pod. Please look up the current setup steps and guide me step by step—from choosing the right GPU and template to downloading the weights and running inference smoothly.