Advisor / Hardware / Mac Studio M5 Ultra 256GB

Best local LLMs for Mac Studio M5 Ultra 256GB

Mac Studio — M5 Ultra (80-core GPU) 256GB. Memory-fit math with KV cache, speeds labelled by how they were obtained, and commands you can paste.

178.7 GBusable for model + KV cache
1200 GB/smemory bandwidth
9measured data points on file

Best for Coding · 16k context

ModelQuantFitMemorySpeed (generation)
Ripple 65B PreviewQ5_K_Mfits fully47.1 GB~18 tok/s estimated
Nemotron 3.5 Super VL 120B-A12BQ4_K_Mfits fully70.4 GB~91 tok/s estimated
GLM-4.5-AirQ8_0fits fully120.5 GB~48 tok/s estimated
Nanbeige4.3 33BQ8_0fits fully38.7 GB~26 tok/s scaled from measured src
Qwen3.8 Flash NextUD-Q5_K_XLfits fully158.8 GB~117 tok/s estimated
llama.cpp · top pick
llama-server -hf prithivMLmods/Ripple-65B-Preview-GGUF:Q5_K_M -c 16384 -fa on --jinja -ngl 99
ollama · top pick
OLLAMA_CONTEXT_LENGTH=16384 ollama serve
ollama run hf.co/prithivMLmods/Ripple-65B-Preview-GGUF:Q5_K_M

Context length is an Ollama server setting: quit the Ollama app or stop the service first, or set it in its environment (launchctl on Mac, systemctl on Linux).

MLX: no MLX conversion yet for this model (none verified in mlx-community or from the publisher), so use llama.cpp or ollama above.

Highest-ranked pick here with an MLX conversion: GLM-4.5-Air (Q8_0 in GGUF).

MLX · mlx-lm · 8bit, 113.6 GB
pip install -U mlx-lm
mlx_lm.generate --model mlx-community/GLM-4.5-Air-8bit --prompt "Hello" --max-tokens 256
mlx_lm.server --model mlx-community/GLM-4.5-Air-8bit --port 8080

MLX runs on Apple Silicon only. Repo: mlx-community/GLM-4.5-Air-8bit (converted with mlx-lm, per its model card). These commands use MLX's default context handling; there is no MLX speed on this site yet.

Best for Chat / general · 16k context

ModelQuantFitMemorySpeed (generation)
Llama 3.3 70BQ5_K_Mfits fully55.3 GB~16 tok/s estimated
Ripple 65B PreviewQ5_K_Mfits fully47.1 GB~18 tok/s estimated
Nemotron 3.5 Super VL 120B-A12BQ4_K_Mfits fully70.4 GB~91 tok/s estimated
GLM-4.5-AirQ8_0fits fully120.5 GB~48 tok/s estimated
Nanbeige4.3 33BQ8_0fits fully38.7 GB~26 tok/s scaled from measured src
llama.cpp · top pick
llama-server -hf unsloth/Llama-3.3-70B-Instruct-GGUF:Q5_K_M -c 16384 -fa on --jinja -ngl 99
ollama · top pick
OLLAMA_CONTEXT_LENGTH=16384 ollama serve
ollama run hf.co/unsloth/Llama-3.3-70B-Instruct-GGUF:Q5_K_M

Context length is an Ollama server setting: quit the Ollama app or stop the service first, or set it in its environment (launchctl on Mac, systemctl on Linux).

MLX · mlx-lm · 4bit, 39.7 GB
pip install -U mlx-lm
mlx_lm.generate --model mlx-community/Llama-3.3-70B-Instruct-4bit --prompt "Hello" --max-tokens 256
mlx_lm.server --model mlx-community/Llama-3.3-70B-Instruct-4bit --port 8080

MLX runs on Apple Silicon only. Repo: mlx-community/Llama-3.3-70B-Instruct-4bit (converted with mlx-lm, per its model card). These commands use MLX's default context handling; there is no MLX speed on this site yet.

Best for Vision · 16k context

ModelQuantFitMemorySpeed (generation)
Nemotron 3.5 Super VL 120B-A12BQ4_K_Mfits fully70.4 GB~91 tok/s estimated
Qwen3.8 Flash NextUD-Q5_K_XLfits fully158.8 GB~117 tok/s estimated
Gemma 4 31BQ8_0fits fully34.8 GB~25 tok/s scaled from measured src
Qwen3.6 27BQ8_0fits fully29.8 GB~31 tok/s scaled from measured src
Qwen3.8 27BQ8_0fits fully30.3 GB~28 tok/s scaled from measured src
llama.cpp · top pick
llama-server -hf lmstudio-community/NVIDIA-Nemotron-3.5-Super-VL-120B-A12B-GGUF:Q4_K_M -c 16384 -fa on --jinja -ngl 99
ollama · top pick
OLLAMA_CONTEXT_LENGTH=16384 ollama serve
ollama run hf.co/lmstudio-community/NVIDIA-Nemotron-3.5-Super-VL-120B-A12B-GGUF:Q4_K_M

Context length is an Ollama server setting: quit the Ollama app or stop the service first, or set it in its environment (launchctl on Mac, systemctl on Linux).

MLX: no MLX conversion yet for this model (none verified in mlx-community or from the publisher), so use llama.cpp or ollama above.

Highest-ranked pick here with an MLX conversion: Qwen3.8 Flash Next (UD-Q5_K_XL in GGUF).

MLX · mlx-vlm · 4bit, 111.5 GB
pip install -U mlx-vlm
mlx_vlm.generate --model mlx-community/Qwen3.8-Flash-Next-4bit --prompt "Hello" --max-tokens 256
mlx_vlm.server --model mlx-community/Qwen3.8-Flash-Next-4bit

MLX runs on Apple Silicon only. Repo: mlx-community/Qwen3.8-Flash-Next-4bit (converted with mlx-vlm, per its model card). These commands use MLX's default context handling; there is no MLX speed on this site yet.

All 35 models that fit, fastest first · 16k context

Click a column header to sort. 21 of 35 speeds here are measured or scaled from measured; the rest are bandwidth estimates. Filter by use case, speed source, fit, license and more in the interactive advisor →

ModelParamsQuantFitMemoryTok/sSource
LFM3 1.7B1.73BQ8_0fits fully2.1 GB~443estimated
Mellum2.1 12B-A2.5B Instruct12.15B MoEQ8_0fits fully13.2 GB~232estimated
gpt-oss 120B116.83B MoEQ8_0fits fully64.0 GB~223estimated
gpt-oss 20B20.91B MoEQ8_0fits fully12.5 GB~210scaled from measured
Ornith 1.5 35B-A3B35.95B MoEQ8_0fits fully38.2 GB~196estimated
LFM2.5 24B-A2B23.97B MoEQ8_0fits fully25.8 GB~168scaled from measured
Nemotron 3 Nano 30B-A3B31.58B MoEQ8_0fits fully33.7 GB~166estimated
Gemma 4 26B-A4B25.81B MoEQ8_0fits fully27.4 GB~156estimated
GLM-4.7-Flash31.22B MoEQ8_0fits fully32.7 GB~143scaled from measured
Laguna XS 2.133.44B MoEQ8_0fits fully36.3 GB~137scaled from measured
Nemotron 3.5 Lightning 30B-A3B31.58B MoEQ8_0fits fully35.2 GB~132scaled from measured
Qwen3-Coder 30B-A3B30.53B MoEQ8_0fits fully34.1 GB~125scaled from measured
Qwen3.8 Flash Next180B MoEUD-Q5_K_XLfits fully158.8 GB~117estimated
Nemotron 3 Nano 4B3.97BQ8_0fits fully4.6 GB~109scaled from measured
Inkling 2 Mini26.39B MoEQ8_0fits fully28.5 GB~108estimated
Ling-3.2-air 124B-A5.5B127.92B MoEQ8_0fits fully135.8 GB~106estimated
Qwen3.5 4B4.66BQ8_0fits fully5.1 GB~102scaled from measured
DeepSeek R1 Distill Qwen 7B7.62BQ8_0fits fully9.0 GB~101scaled from measured
Gemma 4 E4B8BQ8_0fits fully8.5 GB~100scaled from measured
Qwen3-VL 8B8.77BQ8_0fits fully11.1 GB~94scaled from measured
Nemotron 3.5 Super VL 120B-A12B124.45B MoEQ4_K_Mfits fully70.4 GB~91estimated
Qwen3.5 9B9.65BQ8_0fits fully10.1 GB~86scaled from measured
Ornith 1.5 9B9.65BQ8_0fits fully10.1 GB~85scaled from measured
Qwen3.6 35B-A3B35.95B MoEQ8_0fits fully37.3 GB~81scaled from measured
Flint 40B-A2.5B39.79B MoEQ8_0fits fully42.8 GB~68scaled from measured
Gemma 4 12B11.96BQ8_0fits fully13.3 GB~64scaled from measured
GLM-4.5-Air110.47B MoEQ8_0fits fully120.5 GB~48estimated
Mistral Small 3.2 24B24.01BQ8_0fits fully27.7 GB~36scaled from measured
Qwen3.6 27B27.78BQ8_0fits fully29.8 GB~31scaled from measured
Qwen3.8 27B27.78BQ8_0fits fully30.3 GB~28scaled from measured
Nanbeige4.3 33B33.12BQ8_0fits fully38.7 GB~26scaled from measured
Gemma 4 31B31.27BQ8_0fits fully34.8 GB~25scaled from measured
DeepSeek R1 Distill Qwen 32B32.76BQ8_0fits fully39.1 GB~24estimated
Ripple 65B Preview64.78BQ5_K_Mfits fully47.1 GB~18estimated
Llama 3.3 70B70.55BQ5_K_Mfits fully55.3 GB~16estimated

Long context on this hardware · up to 1M tokens

Largest context whose KV cache still fits next to the weights (same placement as the 16k result, KV types f16 / q8_0 / q4_0). Models are capped at their verified maximum; extended means beyond the native maximum using YaRN, only listed where the model card documents it. Long context needs flash attention (-fa on, already in the commands) and a lot of memory; a quantized KV cache saves memory but can cost accuracy. Speed at depth is an estimate (penalty fitted to measured depth runs up to 128k).

Try it in the advisor: 128k · 256k · 512k · 1M

ModelNative maxMax ctx f16Max ctx q8_0Max ctx q4_0Est. tok/s at max f16 ctx
Qwen3-Coder 30B-A3B Q8_0256k1M extended1M extended1M extended~6 estimated
Inkling 2 Mini Q8_01M1M1M1M~21 estimated
Qwen3.5 4B Q8_0256k1M extended1M extended1M extended~16 estimated
Qwen3-VL 8B Q8_0256k1M extended1M extended1M extended~7 estimated
Nemotron 3.5 Super VL 120B-A12B Q4_K_M1M1M1M1M~48 estimated
Qwen3.5 9B Q8_0256k1M extended1M extended1M extended~24 estimated
Qwen3.6 35B-A3B Q8_0256k1M extended1M extended1M extended~14 estimated
Qwen3.6 27B Q8_0256k1M extended1M extended1M extended~12 estimated
Qwen3.8 27B Q8_0256k1M extended1M extended1M extended~10 estimated
Ripple 65B Preview Q5_K_M2M1M1M1M~9 estimated
Nanbeige4.3 33B Q8_0512k512k512k512k~8 estimated
LFM3 1.7B Q8_0256k256k256k256k~194 estimated
Ornith 1.5 35B-A3B Q8_0256k256k256k256k~87 estimated
Nemotron 3 Nano 30B-A3B Q8_0256k256k256k256k~126 estimated
Gemma 4 26B-A4B Q8_0256k256k256k256k~76 estimated
Laguna XS 2.1 Q8_0256k256k256k256k~39 estimated
Nemotron 3.5 Lightning 30B-A3B Q8_0256k256k256k256k~97 estimated
Qwen3.8 Flash Next UD-Q5_K_XL256k256k256k256k~61 estimated
Nemotron 3 Nano 4B Q8_0256k256k256k256k~62 estimated
Ling-3.2-air 124B-A5.5B Q8_0256k256k256k256k~83 estimated
Ornith 1.5 9B Q8_0256k256k256k256k~51 estimated
Flint 40B-A2.5B Q8_0256k256k256k256k~22 estimated
Gemma 4 12B Q8_0256k256k256k256k~51 estimated
Gemma 4 31B Q8_0256k256k256k256k~17 estimated
Mellum2.1 12B-A2.5B Instruct Q8_0128k128k128k128k~151 estimated
gpt-oss 120B Q8_0128k128k128k128k~97 estimated
gpt-oss 20B Q8_0128k128k128k128k~98 estimated
LFM2.5 24B-A2B Q8_0128k128k128k128k~95 estimated
GLM-4.7-Flash Q8_0198k128k128k128k~53 estimated
DeepSeek R1 Distill Qwen 7B Q8_0128k128k128k128k~60 estimated
Gemma 4 E4B Q8_0128k128k128k128k~83 estimated
GLM-4.5-Air Q8_0128k128k128k128k~20 estimated
Mistral Small 3.2 24B Q8_0128k128k128k128k~22 estimated
DeepSeek R1 Distill Qwen 32B Q8_0128k128k128k128k~14 estimated
Llama 3.3 70B Q5_K_M128k128k128k128k~10 estimated

MLX on this Mac

MLX is Apple's machine-learning framework for Apple Silicon. Where a verified MLX conversion exists (mlx-community or the model's own publisher), the commands above include an MLX block next to llama.cpp and ollama.

Repos are checked against the Hugging Face API (how).

FAQ

What is the best local LLM for Mac Studio M5 Ultra 256GB?

Of the 35 models that fit fully at 16k context, LFM3 1.7B Q8_0 is the fastest at ~443 tok/s (estimated); the largest is Qwen3.8 Flash Next UD-Q5_K_XL.

How much memory can Mac Studio M5 Ultra 256GB use for a model?

About 178.7 GB usable for the model and KV cache, with 1200 GB/s memory bandwidth.

Can Mac Studio M5 Ultra 256GB run long contexts?

See the long-context table above: it lists the largest context whose KV cache fits next to the weights for every model, up to 1M tokens where the model supports it.

Open the interactive advisor with this hardware →

Speeds marked measured are medians of real runs (short-context generation) from these sources; scaled from measured means a measurement of a same-size or same-model-different-quant run, scaled by bytes read; estimated comes from memory bandwidth (spec source: https://support.apple.com/en-us/128107) × an efficiency factor of 0.68 calibrated to measured runs on this hardware. 9 measured data points on file for this hardware · submit your benchmark. Memory size on this page is an example configuration; check what your machine has. Model data last verified 2026-11-30. Ranking = fits and fast enough first, then larger; not a quality benchmark.

Page generated 2026-11-30 by tools/generate_pages.js