Skip to content
Llama Builds

Recommendations · October 2026

The best local LLMs for the M5 Ultra 256GB

Every model worth running on 256GB of unified memory (about 192GB usable by the GPU by default), which quantization to pick, and how fast each one generates text.

By Updated

Our picks at a glance

We may earn a commission when you buy through links on this page. It never changes what we recommend. How we make money

01 · Best overall · also coding, reasoning

DeepSeek V4 Flash

Runs well284B (13B active)DeepSeekMIT license

DeepSeek V4 Flash (284B (13B active)) fits comfortably in the M5 Ultra 256GB's memory at FP4, using about 168GB with 8K context and generating ~45 tokens/sec. It is the most capable model in our catalog that runs well on this card. It is also our top pick for coding and reasoning.

DeepSeek V4 Flash is the smaller model of DeepSeek's April 2026 V4 generation: 284B total parameters, 13B active, a 1M-token context, and a toggleable thinking mode, refreshed with improved 0731 weights in July. Its compressed attention makes long contexts remarkably cheap, and its expert weights ship natively in FP4, so the full-quality build is only about 162GB. Running it at full quality takes a 256GB Mac Studio or a multi-GPU server with about 170GB of memory; 3-bit dynamic builds of roughly 103GB to 110GB fit 128GB machines with some quality loss. DeepSeek's September V4.1 Flash is larger (552B, including 196B of Engram memory), so V4 Flash remains the easier DeepSeek to run locally.

Quantization
FP4
Memory used
167.5 GB
Speed (est.)
~45 tok/s
Max context
~1M

02 · Runner-up · also vision

Qwen3.8 27B

Runs well27BAlibaba QwenApache 2.0 license

Qwen3.8 27B (27B) fits comfortably in the M5 Ultra 256GB's memory at Q8_0, using about 32GB with 8K context and generating ~22 tokens/sec. It is the next-best model that runs well here, and the one to try if the top pick doesn't suit you. It is also our top pick for working with images.

Qwen3.8 27B, released in August 2026, is one of the strongest open models that fits a single 24GB GPU, with image input, a 262K native context, and switchable thinking. It uses the same hybrid layout as the Qwen3.5 and 3.6 27B models, where three of every four layers use linear attention, so long contexts cost far less memory than on older dense models. At Q4_K_M it needs about 18GB with 8K context, leaving room for 64K or more of context on a 24GB card, and 32GB cards can run Q6_K. It supersedes Qwen3.6 27B and Qwen3 32B, but its long reasoning traces make speed on slower hardware a real consideration.

Quantization
Q8_0
Memory used
31.6 GB
Speed (est.)
~22 tok/s
Max context
~256K
$ ollama run qwen3.8:27bModel details →

03 · Fastest good model

gpt-oss-20b

Runs well20.9B (3.6B active)OpenAIApache 2.0 license

gpt-oss-20b (20.9B (3.6B active)) fits comfortably in the M5 Ultra 256GB's memory at MXFP4, using about 15GB with 8K context and generating ~105 tokens/sec. Pick it when responsiveness matters more than squeezing out maximum quality.

gpt-oss-20b is OpenAI's small open-weight reasoning model, a 21B mixture-of-experts with 3.6B active parameters whose expert weights ship natively in 4-bit MXFP4. OpenAI has not released a successor, and it remains one of the best reasoning and tool-calling models that fits a 16GB GPU. The native weights take about 14GB, so 16GB cards and Macs with 24GB or more run it fully in memory, and 12GB cards run it with a little CPU offload. Reasoning effort is adjustable (low, medium, high) but cannot be turned off.

Quantization
MXFP4
Memory used
15.0 GB
Speed (est.)
~105 tok/s
Max context
~128K
$ ollama run gpt-oss:20bModel details →

04 · Largest model that fits

GLM-5.3-Flash

Runs well320B (18B active)Z.aiMIT license

GLM-5.3-Flash (320B (18B active)) fits comfortably in the M5 Ultra 256GB's memory at Q3_K_M, using about 161GB with 8K context and generating ~39 tokens/sec. It is the largest model that runs fully on this GPU.

GLM-5.3-Flash is Z.ai's August 2026 mid-size model and its first natively multimodal one: 320B total parameters with 18B active, a 1M-token context, a thinking mode, and an MIT license. It ranks just behind the largest open models on the Artificial Analysis Intelligence Index while needing well under half their memory. Most of its layers use linear attention with a fixed-size state, so long contexts are cheap. Expect about 200GB at Q4_K_M with 8K context, which means a 256GB Mac Studio or a multi-GPU server; the smallest 1-bit GGUF is 93GB and fits 128GB machines, at a clear quality cost.

Quantization
Q3_K_M
Memory used
161.4 GB
Speed (est.)
~39 tok/s
Max context
~1M

The full list

Every model that runs on the M5 Ultra 256GB

#ModelBest quantMemorySpeedFit
1DeepSeek V4 Flash284B (13B active)FP4167.5 GB~45 tok/sRuns well
2Qwen3.8 27B27BQ8_031.6 GB~22 tok/sRuns well
3Qwen3.5 122B-A10B122B (10B active)Q8_0134.3 GB~33 tok/sRuns well
4Qwen3.6 35B-A3B35B (3B active)Q8_041.0 GB~83 tok/sRuns well
5GLM-5.3-Flash320B (18B active)Q3_K_M161.4 GB~39 tok/sRuns well
6Gemma 4 31B31BQ8_035.9 GB~20 tok/sRuns well
7gpt-oss-120b117B (5.1B active)MXFP468.3 GB~93 tok/sRuns well
8Gemma 4 26B A4B26B (3.8B active)Q8_029.5 GB~73 tok/sRuns well
9GLM-4.5-Air106B (12B active)Q8_0118.1 GB~28 tok/sRuns well
10gpt-oss-20b20.9B (3.6B active)MXFP415.0 GB~105 tok/sRuns well
11Qwen3.5 9B9BQ8_012.0 GB~57 tok/sRuns well
12Gemma 4 E4B8BQ8_010.5 GB~64 tok/sRuns well
13Llama 4 Scout109B (17B active)Q8_0120.2 GB~21 tok/sRuns well
14Phi-414.7BQ8_018.3 GB~41 tok/sRuns well

Ranked by our capability score, adjusted for quantization and speed. Memory includes 8K context. Speeds are estimates for a single user; seemethodology.

Limits

Popular models that don't run well on 256GB

Setup

Best settings and software for the M5 Ultra 256GB

Macs run local models through Metal, and MLX gives the best speed on Apple silicon. With DeepSeek V4 Flash at FP4, you can fit roughly 1M tokens of context with a 16-bit KV cache; an 8-bit KV cache about doubles that.

  • LM Studio (MLX): the fastest point-and-click option on a Mac.
  • Ollama: simple CLI and API, runs GGUF models on Metal.
  • mlx-lm: Apple's own framework, for scripting and fine-tuning.
  • llama.cpp: broadest model and quantization support on Metal.

New to quantization? Q4_K_M is the safe default; read our quantization explainer to see when Q5, Q6, or Q8 is worth the extra memory.

Upgrade path

Need more memory?

Memory capacity decides which models you can run. These are the most popular options with more memory than the M5 Ultra 256GB.

Thinking of buying one?

Apple Mac Studio M5 Ultra 256GB

Specs, benchmarks, and our full take

Frequently asked questions

What is the best LLM for the M5 Ultra 256GB?

DeepSeek V4 Flash is the best all-round model for the M5 Ultra 256GB. At FP4 it uses about 168GB with 8K context and generates ~45 tokens/sec.

What quantization should I use on the M5 Ultra 256GB?

Use the highest-precision quant that leaves room for your context. Q4_K_M is the best default: it is about a quarter the size of the original 16-bit weights with only a small quality loss. If a model fits at Q5_K_M, Q6_K, or Q8_0 with room to spare, use that instead. Avoid going below Q3 except for very large models.

How much context can I use with DeepSeek V4 Flash on the M5 Ultra 256GB?

At FP4 with a 16-bit KV cache, roughly 1M tokens fit in 256GB unified memory. Quantizing the KV cache to 8-bit (for example with llama.cpp's --cache-type-k q8_0 --cache-type-v q8_0) roughly doubles that.

Can the M5 Ultra 256GB run GLM-5.3?

No. GLM-5.3 needs about 466GB at Q4_K_M with 8K context, which is far more than 256GB unified memory.