← CanIRunLocal · All hardware

What local LLMs run on Mac Studio M4 Max (40c GPU) 128GB?

With 128 GB unified memory (about 96.0 GB usable by the GPU), these are the best open models that fit. The top pick is gpt-oss 120B (MoE, MXFP4) at MXFP4 (~67.3 GB, ~77 tok/s): ollama run gpt-oss:120b.

Best for coding: gpt-oss 120B (MoE, MXFP4) (gpt-oss:120b), Qwen3-Coder 30B-A3B (MoE) (qwen3-coder:30b-a3b-q8_0), Qwen3 30B-A3B (MoE) (qwen3:30b-a3b-q8_0).

Runtimes available for this hardware: Ollama, LM Studio, llama.cpp, MLX.

Open the interactive checker for Mac Studio M4 Max (40c GPU) 128GB
#ModelQuantMemory neededFitSpeedCommand
1gpt-oss 120B (MoE, MXFP4)MXFP467.3 GBfits in fast memory~77 tok/sollama run gpt-oss:120b
2Llama 4 Scout 109B (MoE)Q4_K_M69.3 GBfits in fast memory~21 tok/sollama run llama4:16x17b
3Qwen3-Next 80B-A3B (MoE)Q8_087.3 GBfits in fast memory~69 tok/sollama run qwen3-next:80b-a3b-instruct-q8_0
4Qwen3 30B-A3B (MoE)Q8_034.4 GBfits in fast memory~61 tok/sollama run qwen3:30b-a3b-q8_0
5Qwen3-Coder 30B-A3B (MoE)Q8_033.4 GBfits in fast memory~63 tok/sollama run qwen3-coder:30b-a3b-q8_0
6gpt-oss 20B (MoE, MXFP4)MXFP415.1 GBfits in fast memory~91 tok/sollama run gpt-oss:20b
7Qwen3 32BQ8_037.2 GBfits in fast memory~12 tok/sollama run qwen3:32b-q8_0
8DeepSeek R1 Distill Qwen 32BQ8_037.2 GBfits in fast memory~12 tok/sollama run deepseek-r1:32b-qwen-distill-q8_0
9Gemma 3 27BQ8_032 GBfits in fast memory~15 tok/sollama run gemma3:27b-it-q8_0
10Clef 27B (Cloudflare, decision)Q8_031.9 GBfits in fast memory~15 tok/sollama run clef:27b-q8_0
11Qwen3.8 27BQ8_031.9 GBfits in fast memory~15 tok/sollama run qwen3.8:27b-q8_0
12Mistral Small 24BQ8_026.8 GBfits in fast memory~17 tok/sollama run mistral-small:24b-instruct-2501-q8_0

Estimates, not benchmarks. Model sizes are ollama.com download sizes; memory needed adds headroom for ~8k tokens of context; speeds are rough figures from memory bandwidth. Data updated 2026-10-14.

A project by OnDevice Labs · llms.txt