Can Mac Studio M3 Ultra (256 GB) run GLM-4.7 (355B MoE)?

Only with tuning. At Q4_K_M GLM-4.7 (355B MoE) needs 213 GB, more than the 204 GB macOS gives the GPU by default on Mac Studio M3 Ultra (256 GB). It loads after raising the memory limit, but expect swapping and about 6.4–14.9 tok/s.

Asking through an AI agent? Point it at llms.txt or the JSON API.

Open in calculator
Over GPU memory limitQ4_K_M · 16K context
6.4–14.9 tok/s
213 GBof 204 GB usable memory
104% used
Weights202 GBKV cache5.8 GBOverhead5.3 GB
+8.6 GB over limit

Every quantization on M3 Ultra 256GB

Q4_K_M (4-bit)
202 GB
estimate
213 GBPartial offload—
6.4–14.9 tok/s
Estimate
Q6_K (6-bit)
274 GB
estimate
285 GBToo large—
—
Q8_0 (8-bit)
355 GB
estimate
366 GBToo large—
—
FP16 / BF16 (16-bit)
668 GB
estimate
679 GBToo large—
—

Mac Studio M3 Ultra (256 GB) has 204 GB usable for models out of 256 GB of unified memory. Max context is the longest window that still loads without spilling out of that memory. The label under each speed says whether it was measured, scaled from measurements on this hardware, or modelled.

GLM-4.7 (355B MoE) on M3 Ultra 256GB by runtime

Command
Ollama
Q4_K_M
202 GB
estimate
213 GBPartial offload6.4–14.9 tok/sNot in the Ollama library.
LM Studio
Q4_K_M
unsloth/GLM-4.7-GGUF
202 GB
real file size
213 GBPartial offload6.4–14.9 tok/sNot in LM Studio's catalog. Search for unsloth/GLM-4.7-GGUF in the app's Discover tab.
llama.cpp
Q4_K_M
unsloth/GLM-4.7-GGUF
202 GB
real file size
213 GBPartial offload6.4–14.9 tok/s
MLX
4-bit
mlx-community/GLM-4.7-4bit
185 GB
real file size
196 GBTight fit14.2–30 tok/s

Each runtime loads its own build, so sizes differ. Ollama, LM Studio and llama.cpp use GGUF files, MLX its own format. Numbers above this table are for Ollama.

Cost per 1M tokens at 1M tokens/day

Local on M3 Ultra 256GB
—

Does not fit

Rented cloud GPU
$47.41

4x H100 SXM (320 GB) on RunPod at $17.56/hr

OpenRouter API
$0.74

$0.40 in / $1.75 out per 1M

Local cost is not shown because the model does not fit. Assumes 75% input and 25% output tokens, one request at a time. Rent on RunPod · Open on OpenRouter

Questions and answers

Can Mac Studio M3 Ultra (256 GB) run GLM-4.7 (355B MoE)?

Only with tuning. At Q4_K_M GLM-4.7 (355B MoE) needs 213 GB, more than the 204 GB macOS gives the GPU by default on Mac Studio M3 Ultra (256 GB). It loads after raising the memory limit, but expect swapping and about 6.4–14.9 tok/s.

How fast is GLM-4.7 (355B MoE) on Mac Studio M3 Ultra (256 GB)?

It does not run at a usable speed: GLM-4.7 (355B MoE) does not fit into the memory of Mac Studio M3 Ultra (256 GB).

How much context can GLM-4.7 (355B MoE) use on Mac Studio M3 Ultra (256 GB)?

None of the standard quantizations fit Mac Studio M3 Ultra (256 GB), so there is no usable context length.