← CanIRunLocal · All hardware

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

With 64 GB unified memory (about 48.0 GB usable by the GPU), these are the best open models that fit. The top pick is Qwen3-Next 80B-A3B (MoE) at Q4_K_M (~52.4 GB, ~116 tok/s): ollama run qwen3-next:80b.

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

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

Open the interactive checker for Mac Studio M4 Max (40c GPU) 64GB
#ModelQuantMemory neededFitSpeedCommand
1Qwen3-Next 80B-A3B (MoE)Q4_K_M52.4 GBraise~116 tok/sollama run qwen3-next:80b
2Qwen3 30B-A3B (MoE)Q8_034.4 GBfits in fast memory~61 tok/sollama run qwen3:30b-a3b-q8_0
3Qwen3-Coder 30B-A3B (MoE)Q8_033.4 GBfits in fast memory~63 tok/sollama run qwen3-coder:30b-a3b-q8_0
4Llama 3.3 70BQ4_K_M47.1 GBfits in fast memory~10 tok/sollama run llama3.3:70b
5DeepSeek R1 Distill Llama 70BQ4_K_M47.1 GBfits in fast memory~10 tok/sollama run deepseek-r1:70b
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