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.
Best for Coding · 16k context
| Model | Quant | Fit | Memory | Speed (generation) |
|---|---|---|---|---|
| Ripple 65B Preview | Q5_K_M | fits fully | 47.1 GB | ~18 tok/s estimated |
| Nemotron 3.5 Super VL 120B-A12B | Q4_K_M | fits fully | 70.4 GB | ~91 tok/s estimated |
| GLM-4.5-Air | Q8_0 | fits fully | 120.5 GB | ~48 tok/s estimated |
| Nanbeige4.3 33B | Q8_0 | fits fully | 38.7 GB | ~26 tok/s scaled from measured src |
| Qwen3.8 Flash Next | UD-Q5_K_XL | fits fully | 158.8 GB | ~117 tok/s estimated |
llama-server -hf prithivMLmods/Ripple-65B-Preview-GGUF:Q5_K_M -c 16384 -fa on --jinja -ngl 99
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).
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
| Model | Quant | Fit | Memory | Speed (generation) |
|---|---|---|---|---|
| Llama 3.3 70B | Q5_K_M | fits fully | 55.3 GB | ~16 tok/s estimated |
| Ripple 65B Preview | Q5_K_M | fits fully | 47.1 GB | ~18 tok/s estimated |
| Nemotron 3.5 Super VL 120B-A12B | Q4_K_M | fits fully | 70.4 GB | ~91 tok/s estimated |
| GLM-4.5-Air | Q8_0 | fits fully | 120.5 GB | ~48 tok/s estimated |
| Nanbeige4.3 33B | Q8_0 | fits fully | 38.7 GB | ~26 tok/s scaled from measured src |
llama-server -hf unsloth/Llama-3.3-70B-Instruct-GGUF:Q5_K_M -c 16384 -fa on --jinja -ngl 99
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).
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
| Model | Quant | Fit | Memory | Speed (generation) |
|---|---|---|---|---|
| Nemotron 3.5 Super VL 120B-A12B | Q4_K_M | fits fully | 70.4 GB | ~91 tok/s estimated |
| Qwen3.8 Flash Next | UD-Q5_K_XL | fits fully | 158.8 GB | ~117 tok/s estimated |
| Gemma 4 31B | Q8_0 | fits fully | 34.8 GB | ~25 tok/s scaled from measured src |
| Qwen3.6 27B | Q8_0 | fits fully | 29.8 GB | ~31 tok/s scaled from measured src |
| Qwen3.8 27B | Q8_0 | fits fully | 30.3 GB | ~28 tok/s scaled from measured src |
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_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).
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 →
| Model | Params | Quant | Fit | Memory | Tok/s | Source |
|---|---|---|---|---|---|---|
| LFM3 1.7B | 1.73B | Q8_0 | fits fully | 2.1 GB | ~443 | estimated |
| Mellum2.1 12B-A2.5B Instruct | 12.15B MoE | Q8_0 | fits fully | 13.2 GB | ~232 | estimated |
| gpt-oss 120B | 116.83B MoE | Q8_0 | fits fully | 64.0 GB | ~223 | estimated |
| gpt-oss 20B | 20.91B MoE | Q8_0 | fits fully | 12.5 GB | ~210 | scaled from measured |
| Ornith 1.5 35B-A3B | 35.95B MoE | Q8_0 | fits fully | 38.2 GB | ~196 | estimated |
| LFM2.5 24B-A2B | 23.97B MoE | Q8_0 | fits fully | 25.8 GB | ~168 | scaled from measured |
| Nemotron 3 Nano 30B-A3B | 31.58B MoE | Q8_0 | fits fully | 33.7 GB | ~166 | estimated |
| Gemma 4 26B-A4B | 25.81B MoE | Q8_0 | fits fully | 27.4 GB | ~156 | estimated |
| GLM-4.7-Flash | 31.22B MoE | Q8_0 | fits fully | 32.7 GB | ~143 | scaled from measured |
| Laguna XS 2.1 | 33.44B MoE | Q8_0 | fits fully | 36.3 GB | ~137 | scaled from measured |
| Nemotron 3.5 Lightning 30B-A3B | 31.58B MoE | Q8_0 | fits fully | 35.2 GB | ~132 | scaled from measured |
| Qwen3-Coder 30B-A3B | 30.53B MoE | Q8_0 | fits fully | 34.1 GB | ~125 | scaled from measured |
| Qwen3.8 Flash Next | 180B MoE | UD-Q5_K_XL | fits fully | 158.8 GB | ~117 | estimated |
| Nemotron 3 Nano 4B | 3.97B | Q8_0 | fits fully | 4.6 GB | ~109 | scaled from measured |
| Inkling 2 Mini | 26.39B MoE | Q8_0 | fits fully | 28.5 GB | ~108 | estimated |
| Ling-3.2-air 124B-A5.5B | 127.92B MoE | Q8_0 | fits fully | 135.8 GB | ~106 | estimated |
| Qwen3.5 4B | 4.66B | Q8_0 | fits fully | 5.1 GB | ~102 | scaled from measured |
| DeepSeek R1 Distill Qwen 7B | 7.62B | Q8_0 | fits fully | 9.0 GB | ~101 | scaled from measured |
| Gemma 4 E4B | 8B | Q8_0 | fits fully | 8.5 GB | ~100 | scaled from measured |
| Qwen3-VL 8B | 8.77B | Q8_0 | fits fully | 11.1 GB | ~94 | scaled from measured |
| Nemotron 3.5 Super VL 120B-A12B | 124.45B MoE | Q4_K_M | fits fully | 70.4 GB | ~91 | estimated |
| Qwen3.5 9B | 9.65B | Q8_0 | fits fully | 10.1 GB | ~86 | scaled from measured |
| Ornith 1.5 9B | 9.65B | Q8_0 | fits fully | 10.1 GB | ~85 | scaled from measured |
| Qwen3.6 35B-A3B | 35.95B MoE | Q8_0 | fits fully | 37.3 GB | ~81 | scaled from measured |
| Flint 40B-A2.5B | 39.79B MoE | Q8_0 | fits fully | 42.8 GB | ~68 | scaled from measured |
| Gemma 4 12B | 11.96B | Q8_0 | fits fully | 13.3 GB | ~64 | scaled from measured |
| GLM-4.5-Air | 110.47B MoE | Q8_0 | fits fully | 120.5 GB | ~48 | estimated |
| Mistral Small 3.2 24B | 24.01B | Q8_0 | fits fully | 27.7 GB | ~36 | scaled from measured |
| Qwen3.6 27B | 27.78B | Q8_0 | fits fully | 29.8 GB | ~31 | scaled from measured |
| Qwen3.8 27B | 27.78B | Q8_0 | fits fully | 30.3 GB | ~28 | scaled from measured |
| Nanbeige4.3 33B | 33.12B | Q8_0 | fits fully | 38.7 GB | ~26 | scaled from measured |
| Gemma 4 31B | 31.27B | Q8_0 | fits fully | 34.8 GB | ~25 | scaled from measured |
| DeepSeek R1 Distill Qwen 32B | 32.76B | Q8_0 | fits fully | 39.1 GB | ~24 | estimated |
| Ripple 65B Preview | 64.78B | Q5_K_M | fits fully | 47.1 GB | ~18 | estimated |
| Llama 3.3 70B | 70.55B | Q5_K_M | fits fully | 55.3 GB | ~16 | estimated |
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
| Model | Native max | Max ctx f16 | Max ctx q8_0 | Max ctx q4_0 | Est. tok/s at max f16 ctx |
|---|---|---|---|---|---|
| Qwen3-Coder 30B-A3B Q8_0 | 256k | 1M extended | 1M extended | 1M extended | ~6 estimated |
| Inkling 2 Mini Q8_0 | 1M | 1M | 1M | 1M | ~21 estimated |
| Qwen3.5 4B Q8_0 | 256k | 1M extended | 1M extended | 1M extended | ~16 estimated |
| Qwen3-VL 8B Q8_0 | 256k | 1M extended | 1M extended | 1M extended | ~7 estimated |
| Nemotron 3.5 Super VL 120B-A12B Q4_K_M | 1M | 1M | 1M | 1M | ~48 estimated |
| Qwen3.5 9B Q8_0 | 256k | 1M extended | 1M extended | 1M extended | ~24 estimated |
| Qwen3.6 35B-A3B Q8_0 | 256k | 1M extended | 1M extended | 1M extended | ~14 estimated |
| Qwen3.6 27B Q8_0 | 256k | 1M extended | 1M extended | 1M extended | ~12 estimated |
| Qwen3.8 27B Q8_0 | 256k | 1M extended | 1M extended | 1M extended | ~10 estimated |
| Ripple 65B Preview Q5_K_M | 2M | 1M | 1M | 1M | ~9 estimated |
| Nanbeige4.3 33B Q8_0 | 512k | 512k | 512k | 512k | ~8 estimated |
| LFM3 1.7B Q8_0 | 256k | 256k | 256k | 256k | ~194 estimated |
| Ornith 1.5 35B-A3B Q8_0 | 256k | 256k | 256k | 256k | ~87 estimated |
| Nemotron 3 Nano 30B-A3B Q8_0 | 256k | 256k | 256k | 256k | ~126 estimated |
| Gemma 4 26B-A4B Q8_0 | 256k | 256k | 256k | 256k | ~76 estimated |
| Laguna XS 2.1 Q8_0 | 256k | 256k | 256k | 256k | ~39 estimated |
| Nemotron 3.5 Lightning 30B-A3B Q8_0 | 256k | 256k | 256k | 256k | ~97 estimated |
| Qwen3.8 Flash Next UD-Q5_K_XL | 256k | 256k | 256k | 256k | ~61 estimated |
| Nemotron 3 Nano 4B Q8_0 | 256k | 256k | 256k | 256k | ~62 estimated |
| Ling-3.2-air 124B-A5.5B Q8_0 | 256k | 256k | 256k | 256k | ~83 estimated |
| Ornith 1.5 9B Q8_0 | 256k | 256k | 256k | 256k | ~51 estimated |
| Flint 40B-A2.5B Q8_0 | 256k | 256k | 256k | 256k | ~22 estimated |
| Gemma 4 12B Q8_0 | 256k | 256k | 256k | 256k | ~51 estimated |
| Gemma 4 31B Q8_0 | 256k | 256k | 256k | 256k | ~17 estimated |
| Mellum2.1 12B-A2.5B Instruct Q8_0 | 128k | 128k | 128k | 128k | ~151 estimated |
| gpt-oss 120B Q8_0 | 128k | 128k | 128k | 128k | ~97 estimated |
| gpt-oss 20B Q8_0 | 128k | 128k | 128k | 128k | ~98 estimated |
| LFM2.5 24B-A2B Q8_0 | 128k | 128k | 128k | 128k | ~95 estimated |
| GLM-4.7-Flash Q8_0 | 198k | 128k | 128k | 128k | ~53 estimated |
| DeepSeek R1 Distill Qwen 7B Q8_0 | 128k | 128k | 128k | 128k | ~60 estimated |
| Gemma 4 E4B Q8_0 | 128k | 128k | 128k | 128k | ~83 estimated |
| GLM-4.5-Air Q8_0 | 128k | 128k | 128k | 128k | ~20 estimated |
| Mistral Small 3.2 24B Q8_0 | 128k | 128k | 128k | 128k | ~22 estimated |
| DeepSeek R1 Distill Qwen 32B Q8_0 | 128k | 128k | 128k | 128k | ~14 estimated |
| Llama 3.3 70B Q5_K_M | 128k | 128k | 128k | 128k | ~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.
- File size. MLX's default quantization is affine with a group size of 64, and every group stores a scale and a bias (MLX docs). With 16-bit scales and biases that works out to about 4.5 bits per weight at 4-bit and 8.5 at 8-bit. llama.cpp lists Q4_K_M at about 4.89 and Q8_0 at about 8.50 bits per weight (llama.cpp quantize README). So an MLX 4-bit repo is usually a little smaller than Q4_K_M and MLX 8-bit is about the same size as Q8_0. Real repos differ because some layers (embeddings, vision towers, MoE experts in MXFP4 for gpt-oss) are stored differently, so we show each repo's actual size.
- Quality. They are different schemes. MLX 4-bit applies one bit width with per-group scale and bias, while Q4_K_M is a K-quant mix that keeps some tensors at higher precision (llama.cpp k-quants PR). We have not found a rigorous like-for-like quality comparison, so we only pair them by bit class: MLX 4-bit with Q4-class GGUF and MLX 8-bit with Q8_0.
- Speed. MLX speeds are not shown on this site yet. Published comparisons often find MLX faster than llama.cpp on Macs: an M2 Ultra study measured about 230 tok/s for MLX against about 150 for llama.cpp (short context) on Qwen-2.5 models (arXiv 2511.05502), and an M4 Max table shows mlx-lm ahead of llama.cpp on most 4-bit text models but behind on Gemma 3 4B (arXiv 2601.19139). So MLX may well run faster than the llama.cpp numbers shown here, but not for every model, and we do not estimate by how much.
- Which package. Text-only conversions run with mlx-lm. Many recent mlx-community repos (Gemma 4, Qwen3.5/3.6/3.8, Qwen3-VL) were converted with mlx-vlm and their model cards say to run them with it, so the command we show follows each repo's card.
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