Home › GPUs & Macs › Apple M4 Pro (20-core GPU) vs Apple M5 Pro (16-core GPU)

Apple M4 Pro (20-core GPU) vs Apple M5 Pro (16-core GPU) for local LLMs

Across 5 tests measured on both, the Apple M5 Pro (16-core GPU) is faster in 5 and generates a median 1.27× the tokens/s of the Apple M4 Pro (20-core GPU).

On Llama 2 7B (F16, llama-bench) the Apple M4 Pro (20-core GPU) generates 17.2 tokens/s and the Apple M5 Pro (16-core GPU) 21.4 tokens/s (measured).

Same model, same quant, same test

ModelQuant / testM4 Pro (20-core GPU)
tok/s
M5 Pro (16-core GPU)
tok/s
FasterSources and run details
Llama 2 7BF16
llama-bench
17.2
Metal
21.4
Metal
M5 Pro (16-core GPU) +25%llama.cpp #4167 M4 Pro (20-core GPU) · llama.cpp #4167 M5 Pro (16-core GPU)
Llama 2 7BQ4_0
llama-bench
50.7
Metal
67.6
Metal
M5 Pro (16-core GPU) +33%llama.cpp #4167 M4 Pro (20-core GPU) · llama.cpp #4167 M5 Pro (16-core GPU)
Llama 2 7BQ8_0
llama-bench
30.7
Metal
38.9
Metal
M5 Pro (16-core GPU) +27%llama.cpp #4167 M4 Pro (20-core GPU) · llama.cpp #4167 M5 Pro (16-core GPU)
Llama 3.1 8B InstructQ4_K_M
LocalScore
32.7
llamafile
43.5
llamafile
M5 Pro (16-core GPU) +33%LocalScore M4 Pro (20-core GPU) · LocalScore M5 Pro (16-core GPU)
Qwen2.5 14B InstructQ4_K_M
LocalScore
18.0
llamafile
22.1
llamafile
M5 Pro (16-core GPU) +23%LocalScore M4 Pro (20-core GPU) · LocalScore M5 Pro (16-core GPU)

Generation speed in tokens/s, best measured backend for each chip (shown under the number). Backends can differ between the two chips; check them before drawing conclusions. Measured results only, nothing estimated.

Specs

Apple M4 Pro (20-core GPU)Apple M5 Pro (16-core GPU)
MemoryUnified memoryUnified memory
Memory bandwidth273 GB/s307 GB/s

All results for the Apple M4 Pro (20-core GPU) · All results for the Apple M5 Pro (16-core GPU) · More comparisons