Advisor / Hardware / Mac mini / iMac M4 16GB

Best local LLMs for Mac mini / iMac M4 16GB

Mac mini (2024) — M4 16GB. Memory-fit math with KV cache, speeds labelled by how they were obtained, and commands you can paste.

10.7 GBusable for model + KV cache
120 GB/smemory bandwidth
9measured data points on file
Sponsor slot. No sponsor yet and no link.

Best for Coding · 16k context

ModelQuantFitMemorySpeed (generation)
Qwen3.5 9BQ4_K_Mfits fully6.3 GB~14 tok/s scaled from measured src
llama.cpp · top pick
llama-server -hf unsloth/Qwen3.5-9B-GGUF:Q4_K_M -c 16384 -fa on --jinja -ngl 99
ollama · top pick
OLLAMA_CONTEXT_LENGTH=16384 ollama run hf.co/unsloth/Qwen3.5-9B-GGUF:Q4_K_M

Best for Chat / general · 16k context

ModelQuantFitMemorySpeed (generation)
Qwen3.5 4BQ8_0fits fully5.1 GB~24 tok/s scaled from measured src
Gemma 4 12BQ4_K_Mfits fully7.7 GB~11 tok/s scaled from measured src
Qwen3.5 9BQ4_K_Mfits fully6.3 GB~14 tok/s scaled from measured src
llama.cpp · top pick
llama-server -hf unsloth/Qwen3.5-4B-GGUF:Q8_0 -c 16384 -fa on --jinja -ngl 99
ollama · top pick
OLLAMA_CONTEXT_LENGTH=16384 ollama run hf.co/unsloth/Qwen3.5-4B-GGUF:Q8_0

Best for Vision · 16k context

ModelQuantFitMemorySpeed (generation)
Qwen3.5 4BQ8_0fits fully5.1 GB~24 tok/s scaled from measured src
Gemma 4 12BQ4_K_Mfits fully7.7 GB~11 tok/s scaled from measured src
Qwen3.5 9BQ4_K_Mfits fully6.3 GB~14 tok/s scaled from measured src
Qwen3-VL 8BQ4_K_Mfits fully7.4 GB~16 tok/s scaled from measured src
llama.cpp · top pick
llama-server -hf unsloth/Qwen3.5-4B-GGUF:Q8_0 -c 16384 -fa on --jinja -ngl 99
ollama · top pick
OLLAMA_CONTEXT_LENGTH=16384 ollama run hf.co/unsloth/Qwen3.5-4B-GGUF:Q8_0

All 4 models that fit, fastest first · 16k context

Click a column header to sort. 4 of 4 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 →

ModelParamsQuantFitMemoryTok/sSource
Qwen3.5 4B4.66BQ8_0fits fully5.1 GB~24scaled from measured
Qwen3-VL 8B8.77BQ4_K_Mfits fully7.4 GB~16scaled from measured
Qwen3.5 9B9.65BQ4_K_Mfits fully6.3 GB~14scaled from measured
Gemma 4 12B11.96BQ4_K_Mfits fully7.7 GB~11scaled from measured

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

ModelNative maxMax ctx f16Max ctx q8_0Max ctx q4_0Est. tok/s at max f16 ctx
Qwen3.5 4B Q8_0256k128k256k512k extended~14 estimated
Qwen3.5 9B Q4_K_M256k128k256k512k extended~9 estimated
Gemma 4 12B Q4_K_M256k128k256k256k~9 estimated
Qwen3-VL 8B Q4_K_M256k32k64k128k~9 estimated
Affiliate box: “cheapest upgrade” for Mac mini / iMac M4 16GB. No affiliate links yet.

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/121555) × an efficiency factor of 0.67 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-10-14. Ranking = fits and fast enough first, then larger; not a quality benchmark.

Page generated 2026-10-16 by tools/generate_pages.js