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.
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.7 | 19.4–40 tok/s | Calculate → | |
Qwen 4 35B A3B (MoE) 35B (3.8B active MoE) · 37.0 GB | Fits comfortably | 25.0 | 79–164 tok/s | Calculate → | |
Qwen 3.8 27B 27B · 19.0 GB | Fits comfortably | 20.1 | 55–75 tok/s | Calculate → | |
MiniMax M3 (428B MoE) 427B (23B active MoE) · 254 GB | Fits comfortably | 19.0 | 21–43 tok/s | Calculate → | |
Nemotron 3.5 Super 120B A12B 124.5B (12B active MoE) · 88.6 GB | Fits comfortably | 13.6 | 38–79 tok/s | Calculate → | |
Nemotron 3 Ultra 550B A55B (MoE) 560.5B (55B active MoE) · 340 GB | Fits comfortably | 11.8 | 12.0–25 tok/s | Calculate → | |
Command A 111B 111B · 67.8 GB | Fits comfortably | 6.2 | 17.6–24 tok/s | Calculate → | |
LFM3 1.7B 1.73B · 2.0 GB | Fits comfortably | 6.0 | 130–216 tok/s | Calculate → | |
Nemotron 3.5 Lightning 30B A3B 31.6B (3B active MoE) · 25.6 GB | Fits comfortably | 5.5 | 79–164 tok/s | Calculate → | |
Gemma 4 E4B 8B · 7.3 GB | Fits comfortably | 4.8 | 107–145 tok/s | Calculate → | |
Mistral Medium 3.5 (128B) 128B (24B active MoE) · 84.3 GB | Fits comfortably | 4.6 | 30–62 tok/s | Calculate → | |
Gemma 4 31B 31B · 22.6 GB | Fits comfortably | 4.4 | 50–67 tok/s | Calculate → | |
Mistral Small 4 (119B) 119B (22B active MoE) · 74.5 GB | Fits comfortably | 4.3 | 31–65 tok/s | Calculate → | |
Gemma 4 26B A4B (MoE) 26B (4B active MoE) · 19.5 GB | Fits comfortably | 4.0 | 79–164 tok/s | Calculate → | |
gpt-oss-120b (MoE) 117B (5.1B active MoE) · 64.9 GB | Fits comfortably | 3.8 | 60–126 tok/s | Calculate → | |
DeepSeek R1 (671B MoE) 671B (37B active MoE) · 383 GB | Tight fit | — | 13.5–28 tok/s | Calculate → | |
DeepSeek V3.2 (671B MoE) 671B (37B active MoE) · 383 GB | Tight fit | — | 13.5–28 tok/s | Calculate → | |
DeepSeek V3.1 (671B MoE) 671B (37B active MoE) · 383 GB | Tight fit | — | 13.5–28 tok/s | Calculate → | |
Qwen 3 Coder 480B A35B 480B (35B active MoE) · 279 GB | Fits comfortably | — | 16.9–35 tok/s | Calculate → | |
Llama 3.1 405B Instruct 405.9B · 240 GB | Fits comfortably | — | 5.1–6.9 tok/s | Calculate → | |
Qwen 3.5 397B A17B (MoE) 403.4B (17B active MoE) · 235 GB | Fits comfortably | — | 24–50 tok/s | Calculate → | |
Llama 4 Maverick (400B MoE) 400B (17B active MoE) · 236 GB | Fits comfortably | — | 24–50 tok/s | Calculate → | |
GLM-4.7 (355B MoE) 358.3B (32B active MoE) · 213 GB | Fits comfortably | — | 19.8–41 tok/s | Calculate → | |
MiMo V2 Flash (309B MoE) 309.8B (15B active MoE) · 180 GB | Fits comfortably | — | 29–60 tok/s | Calculate → | |
ERNIE 4.5 300B A47B (MoE) 300.5B (47B active MoE) · 176 GB | Fits comfortably | — | 16.9–35 tok/s | Calculate → | |
Qwen 3 235B A22B (MoE) 235B (22B active MoE) · 141 GB | Fits comfortably | — | 27–57 tok/s | Calculate → | |
MiniMax M2.7 (229B MoE) 228.7B (10B active MoE) · 140 GB | Fits comfortably | — | 37–77 tok/s | Calculate → | |
MiniMax M2.5 (229B MoE) 228.7B (10B active MoE) · 138 GB | Fits comfortably | — | 37–78 tok/s | Calculate → | |
Mixtral 8x22B Instruct (MoE) 140.6B (39B active MoE) · 89.7 GB | Fits comfortably | — | 22–45 tok/s | Calculate → | |
Nemotron 3 Super 120B A12B (MoE) 123.6B (12B active MoE) · 85.4 GB | Fits comfortably | — | 39–81 tok/s | Calculate → | |
Devstral 2 123B 123B · 79.1 GB | Fits comfortably | — | 15.9–22 tok/s | Calculate → | |
Mistral Large 2 (123B) 122.6B · 77.5 GB | Fits comfortably | — | 16.2–22 tok/s | Calculate → | |
Qwen 3.5 122B A10B (MoE) 122B (10B active MoE) · 80.3 GB | Fits comfortably | — | 44–91 tok/s | Calculate → | |
GLM-4.5 Air (106B MoE) 110.5B (12B active MoE) · 65.6 GB | Fits comfortably | — | 46–96 tok/s | Calculate → | |
Llama 4 Scout (109B MoE) 109B (17B active MoE) · 69.4 GB | Fits comfortably | — | 37–78 tok/s | Calculate → | |
Command R+ 104B 103.8B · 65.8 GB | Fits comfortably | — | 18.7–25 tok/s | Calculate → | |
Llama 3.2 90B Vision Instruct 88.6B · 60.2 GB | Fits comfortably | — | 21–29 tok/s | Calculate → | |
Qwen3 Next 80B A3B (MoE) 81.3B (3B active MoE) · 50.1 GB | Fits comfortably | — | 71–148 tok/s | Calculate → | |
Hunyuan A13B (80B MoE) 80.4B (13B active MoE) · 50.2 GB | Fits comfortably | — | 46–96 tok/s | Calculate → | |
Qwen3 Coder Next 80B A3B (MoE) 79.7B (3B active MoE) · 51.5 GB | Fits comfortably | — | 70–146 tok/s | Calculate → |
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 7B | Q4_0 | 80-core GPU | 179.1 tok/s | llama.cpp Apple Silicon scoreboard |
| Llama 2 7B | Q8_0 | 80-core GPU | 119.0 tok/s | llama.cpp Apple Silicon scoreboard |
| Llama 2 7B | F16 | 80-core GPU | 73.6 tok/s | llama.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.