Will it run? / Code Llama 34B / Mac mini M5 Pro (24GB)

Can the Mac mini M5 Pro (24GB) run Code Llama 34B?

Usable, but slow Yes, at about 7.8 tokens/sec (estimated). It works, but you'll wait on longer answers. It only fits if you raise the GPU memory limit, and it'll be slower than usual.

7.8estimated tokens/sec
20.5 GBmemory needed
16.1 GBavailable to the model
307 GB/smemory bandwidth
ollama run codellama:34b

Check the Mac mini M5 Pro (24GB) price →

How we got this number

Each generated token reads the whole model from memory once: 19 GB. The Mac mini M5 Pro (24GB) moves 307 GB/s, so the ceiling is 16 tokens/sec. Real machines reach a fraction of that ceiling; we use 80%, calibrated against a measured Mac run. Send us your real numbers and we'll replace the estimate.

Faster machines for Code Llama 34B

Mac Studio M5 Ultra (96GB)52 tok/s$5,499Check price →
Mac Studio M5 Ultra (256GB)52 tok/s$9,499Check price →
Mac Studio M5 Max (40-core GPU, 64GB)26 tok/s$3,799Check price →
Mac mini M5 Pro (64GB)13 tok/sCheck price →

Other models on the Mac mini M5 Pro (24GB)

lfm 2.5 8B (A1B)Fast120+ tok/s
Llama 2 7BFast65 tok/s
Code Llama 7BFast65 tok/s
DeepSeek Coder 6.7BFast65 tok/s
Llama 2 uncensored 7BFast65 tok/s
orca mini 7BFast60 tok/s