← CanIRunLocal · All hardware

What local LLMs run on M4 24GB?

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

Best for coding: gpt-oss 20B (MoE, MXFP4) (gpt-oss:20b), DeepSeek Coder V2 Lite 16B (MoE) (deepseek-coder-v2:16b-lite-instruct-q5_K_M), Mistral Small 24B (mistral-small:24b).

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

Open the interactive checker for M4 24GB
#ModelQuantMemory neededFitSpeedCommand
1gpt-oss 20B (MoE, MXFP4)MXFP415.1 GBfits in fast memory~20 tok/sollama run gpt-oss:20b
2DeepSeek R1 Distill Qwen 14BQ4_K_M10.3 GBfits in fast memory~11 tok/sollama run deepseek-r1:14b
3Phi-4 14BQ4_K_M10.4 GBfits in fast memory~11 tok/sollama run phi4:14b
4Qwen3 14BQ4_K_M10.6 GBfits in fast memory~10 tok/sollama run qwen3:14b
5Mistral Small 24BQ4_K_M15.8 GBfits in fast memory~7 tok/sollama run mistral-small:24b
6Nimble v3 9B (Bespoke Labs, decision)Q8_010.6 GBfits in fast memory~10 tok/sollama run nimble-v3:9b-q8_0
7Qwen3 8BQ8_09.9 GBfits in fast memory~11 tok/sollama run qwen3:8b-q8_0
8DeepSeek R1 0528 Qwen3 8BQ8_09.9 GBfits in fast memory~11 tok/sollama run deepseek-r1:8b-0528-qwen3-q8_0
9DeepSeek R1 Distill Qwen 7BQ8_09.1 GBfits in fast memory~12 tok/sollama run deepseek-r1:7b-qwen-distill-q8_0
10Qwen 2.5 VL 7BQ8_010.4 GBfits in fast memory~10 tok/sollama run qwen2.5vl:7b-q8_0
11MiniCPM-V 2.6 8BQ8_010.1 GBfits in fast memory~11 tok/sollama run minicpm-v:8b-2.6-q8_0
12DeepSeek Coder V2 Lite 16B (MoE)Q5_K_M13 GBfits in fast memory~26 tok/sollama run deepseek-coder-v2:16b-lite-instruct-q5_K_M

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