Best Local LLMs for Mac Studio M5 Ultra (512 GB)

Quad die M5 Ultra with 512 GB of unified memory at 1.2 TB/s, the top Mac Studio configuration.

Unified RAM
512 GB
Usable for LLMs
430 GB
Bandwidth
1229 GB/s
Power (TDP)
300W
Street price
$22,300
checked 2026-11-30

159 models that fit Studio M5 Ultra 512GB (Q4_K_M · 16K ctx)

Intelligence scores from Artificial Analysis
Open
GLM-5.3 Flash
321.3B (35.1B active MoE) · 187 GB
Fits comfortably
27.719.4–40 tok/sCalculate →
Qwen 4 35B A3B (MoE)
35B (3.8B active MoE) · 37.0 GB
Fits comfortably
25.079–164 tok/sCalculate →
Qwen 3.8 27B
27B · 19.0 GB
Fits comfortably
20.155–75 tok/sCalculate →
MiniMax M3 (428B MoE)
427B (23B active MoE) · 254 GB
Fits comfortably
19.021–43 tok/sCalculate →
Nemotron 3.5 Super 120B A12B
124.5B (12B active MoE) · 88.6 GB
Fits comfortably
13.638–79 tok/sCalculate →
Nemotron 3 Ultra 550B A55B (MoE)
560.5B (55B active MoE) · 340 GB
Fits comfortably
11.812.0–25 tok/sCalculate →
Command A 111B
111B · 67.8 GB
Fits comfortably
6.217.6–24 tok/sCalculate →
LFM3 1.7B
1.73B · 2.0 GB
Fits comfortably
6.0130–216 tok/sCalculate →
Nemotron 3.5 Lightning 30B A3B
31.6B (3B active MoE) · 25.6 GB
Fits comfortably
5.579–164 tok/sCalculate →
Gemma 4 E4B
8B · 7.3 GB
Fits comfortably
4.8107–145 tok/sCalculate →
Mistral Medium 3.5 (128B)
128B (24B active MoE) · 84.3 GB
Fits comfortably
4.630–62 tok/sCalculate →
Gemma 4 31B
31B · 22.6 GB
Fits comfortably
4.450–67 tok/sCalculate →
Mistral Small 4 (119B)
119B (22B active MoE) · 74.5 GB
Fits comfortably
4.331–65 tok/sCalculate →
Gemma 4 26B A4B (MoE)
26B (4B active MoE) · 19.5 GB
Fits comfortably
4.079–164 tok/sCalculate →
gpt-oss-120b (MoE)
117B (5.1B active MoE) · 64.9 GB
Fits comfortably
3.860–126 tok/sCalculate →
DeepSeek R1 (671B MoE)
671B (37B active MoE) · 383 GB
Tight fit
—13.5–28 tok/sCalculate →
DeepSeek V3.2 (671B MoE)
671B (37B active MoE) · 383 GB
Tight fit
—13.5–28 tok/sCalculate →
DeepSeek V3.1 (671B MoE)
671B (37B active MoE) · 383 GB
Tight fit
—13.5–28 tok/sCalculate →
Qwen 3 Coder 480B A35B
480B (35B active MoE) · 279 GB
Fits comfortably
—16.9–35 tok/sCalculate →
Llama 3.1 405B Instruct
405.9B · 240 GB
Fits comfortably
—5.1–6.9 tok/sCalculate →
Qwen 3.5 397B A17B (MoE)
403.4B (17B active MoE) · 235 GB
Fits comfortably
—24–50 tok/sCalculate →
Llama 4 Maverick (400B MoE)
400B (17B active MoE) · 236 GB
Fits comfortably
—24–50 tok/sCalculate →
GLM-4.7 (355B MoE)
358.3B (32B active MoE) · 213 GB
Fits comfortably
—19.8–41 tok/sCalculate →
MiMo V2 Flash (309B MoE)
309.8B (15B active MoE) · 180 GB
Fits comfortably
—29–60 tok/sCalculate →
ERNIE 4.5 300B A47B (MoE)
300.5B (47B active MoE) · 176 GB
Fits comfortably
—16.9–35 tok/sCalculate →
Qwen 3 235B A22B (MoE)
235B (22B active MoE) · 141 GB
Fits comfortably
—27–57 tok/sCalculate →
MiniMax M2.7 (229B MoE)
228.7B (10B active MoE) · 140 GB
Fits comfortably
—37–77 tok/sCalculate →
MiniMax M2.5 (229B MoE)
228.7B (10B active MoE) · 138 GB
Fits comfortably
—37–78 tok/sCalculate →
Mixtral 8x22B Instruct (MoE)
140.6B (39B active MoE) · 89.7 GB
Fits comfortably
—22–45 tok/sCalculate →
Nemotron 3 Super 120B A12B (MoE)
123.6B (12B active MoE) · 85.4 GB
Fits comfortably
—39–81 tok/sCalculate →
Devstral 2 123B
123B · 79.1 GB
Fits comfortably
—15.9–22 tok/sCalculate →
Mistral Large 2 (123B)
122.6B · 77.5 GB
Fits comfortably
—16.2–22 tok/sCalculate →
Qwen 3.5 122B A10B (MoE)
122B (10B active MoE) · 80.3 GB
Fits comfortably
—44–91 tok/sCalculate →
GLM-4.5 Air (106B MoE)
110.5B (12B active MoE) · 65.6 GB
Fits comfortably
—46–96 tok/sCalculate →
Llama 4 Scout (109B MoE)
109B (17B active MoE) · 69.4 GB
Fits comfortably
—37–78 tok/sCalculate →
Command R+ 104B
103.8B · 65.8 GB
Fits comfortably
—18.7–25 tok/sCalculate →
Fits comfortably
—21–29 tok/sCalculate →
Qwen3 Next 80B A3B (MoE)
81.3B (3B active MoE) · 50.1 GB
Fits comfortably
—71–148 tok/sCalculate →
Hunyuan A13B (80B MoE)
80.4B (13B active MoE) · 50.2 GB
Fits comfortably
—46–96 tok/sCalculate →
Qwen3 Coder Next 80B A3B (MoE)
79.7B (3B active MoE) · 51.5 GB
Fits comfortably
—70–146 tok/sCalculate →

Showing the 40 best rated. See all 159 models that fit, with filters

Measured speeds on this chip

Published llama.cpp runs that the speed estimates on this page are scaled to. How we calculate

Llama 2 7BQ4_080-core GPU179.1 tok/sllama.cpp Apple Silicon scoreboard
Llama 2 7BQ8_080-core GPU119.0 tok/sllama.cpp Apple Silicon scoreboard
Llama 2 7BF1680-core GPU73.6 tok/sllama.cpp Apple Silicon scoreboard

Hardware FAQ

What is the best local LLM for Mac Studio M5 Ultra (512 GB)?

Based on Artificial Analysis Intelligence scores and Q4_K_M memory fit, GLM-5.3 Flash is a top match for Mac Studio M5 Ultra (512 GB), using 187 GB of 430 GB usable memory at an estimated 19.4–40 tok/s.

How much usable LLM memory does Mac Studio M5 Ultra (512 GB) have?

Mac Studio M5 Ultra (512 GB) ships with 512 GB total unified RAM, of which roughly 430 GB is safely available for model weights, KV cache, and runtime buffers.

How fast is Mac Studio M5 Ultra (512 GB) for LLM inference?

Generation speed is limited by memory bandwidth, here 1229 GB/s, divided by the weights read per token. Of the models that fit, estimates range from 5.1–6.9 tok/s to 181–245 tok/s.