Can Mac Studio M5 Ultra (512 GB) run Qwen 3 235B A22B (MoE)?

Yes. Mac Studio M5 Ultra (512 GB) runs Qwen 3 235B A22B (MoE) at Q8_0 with a 16K context, using 241 GB of 430 GB usable memory at an estimated 17.0–35 tok/s. The largest context that still fits at Q8_0 is 128K.

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

Open in calculator
Fits comfortablyQ8_0 · 16K context
17.0–35 tok/s
241 GBof 430 GB usable memory
56% used
Weights233 GBKV cache2.9 GBOverhead5.3 GB
189 GB free

Every quantization on Studio M5 Ultra 512GB

Q4_K_M (4-bit)
qwen3:235b
132 GB
real file size
141 GBFits comfortably128K
27–57 tok/s
Estimate
Q6_K (6-bit)
180 GB
estimate
188 GBFits comfortably128K
21–44 tok/s
Estimate
Q8_0 (8-bit)
qwen3:235b-a22b-q8_0
233 GB
real file size
241 GBFits comfortably128K
17.0–35 tok/s
Estimate
FP16 / BF16 (16-bit)
qwen3:235b-a22b-fp16
438 GB
real file size
446 GBPartial offload—
4.4–10.4 tok/s
Estimate

Mac Studio M5 Ultra (512 GB) has 430 GB usable for models out of 512 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.

Qwen 3 235B A22B (MoE) on Studio M5 Ultra 512GB by runtime

Command
Ollama
Q8_0
qwen3:235b-a22b-q8_0
233 GB
real file size
241 GBFits comfortably17.0–35 tok/s
LM Studio
Q8_0
unsloth/Qwen3-235B-A22B-Instruct-2507-GGUF
233 GB
real file size
241 GBFits comfortably17.0–35 tok/s
llama.cpp
Q8_0
unsloth/Qwen3-235B-A22B-Instruct-2507-GGUF
233 GB
real file size
241 GBFits comfortably17.0–35 tok/s
MLX
8-bit
mlx-community/Qwen3-235B-A22B-Instruct-2507-8bit
233 GB
real file size
241 GBFits comfortably17.0–35 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 Studio M5 Ultra 512GB
$20.79

$4.19/mo power + $22,300 hardware over 36 months

Rented cloud GPU
$54.44

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

OpenRouter API
$0.31

$0.14 in / $0.80 out per 1M

Counting the hardware, the API stays cheaper at every volume this machine can serve. Local still wins on privacy and offline use. Assumes 75% input and 25% output tokens, one request at a time. Rent on RunPod · Open on OpenRouter

Questions and answers

Can Mac Studio M5 Ultra (512 GB) run Qwen 3 235B A22B (MoE)?

Yes. Mac Studio M5 Ultra (512 GB) runs Qwen 3 235B A22B (MoE) at Q8_0 with a 16K context, using 241 GB of 430 GB usable memory at an estimated 17.0–35 tok/s. The largest context that still fits at Q8_0 is 128K.

How fast is Qwen 3 235B A22B (MoE) on Mac Studio M5 Ultra (512 GB)?

About 17.0–35 tok/s at Q8_0. Modelled from memory bandwidth and model size. No published measurement covers this setup.

How much context can Qwen 3 235B A22B (MoE) use on Mac Studio M5 Ultra (512 GB)?

At Q8_0 the largest context that fits is 128K tokens. Q4_K_M: 128K, Q6_K: 128K.