GPUs & Macs › Apple M5 Max (40-core GPU)

Apple M5 Max (40-core GPU): local LLM speed

Llama 2 7B (Q4_0) generates 120 tokens/s on the Apple M5 Max (40-core GPU) (Metal), and processes prompts at 3,220 tokens/s.

Measured results

ModelGenerate
tok/s
Prompt
tok/s
QuantBackendTestSource
Llama 2 7B1203,220Q4_0Metal FA offtg128llama.cpp #4167 details
Llama 2 7B72.43,144Q8_0Metal FA offtg128llama.cpp #4167 details
Llama 2 7B37.13,158F16Metal FA offtg128llama.cpp #4167 details
Llama 3.2 1B Instruct2624,307Q4_K_Mllamafile LocalScore avg · n=2LocalScore LocalScore details
Llama 3.1 8B Instruct71.2718Q4_K_Mllamafile LocalScore avgLocalScore details
Qwen2.5 14B Instruct39.5392Q4_K_Mllamafile LocalScore avg · n=2LocalScore LocalScore details

What fits on the Apple M5 Max (40-core GPU)

Estimates for this chip are scaled from a measured run: Llama 2 7B Q8_0 at 72.4 tok/s (Metal, source). Fit assumes the whole model in GPU memory with ~8K context.

With 16 GB unified memory

ModelBest quant that fitsFileExpected tok/s
Qwen3.8-27BUD-IQ2_XXS7.3 GB71.4 estimate
gemma-4-12B-itQ6_K9.8 GB53.0 estimate
Qwen3.5-9BQ8_09.5 GB54.4 estimate
Qwen3.5-4BQ8_04.5 GB116 estimate
Qwen3.6-35B-A3BUD-IQ1_M10.0 GB301 estimate
gemma-4-26B-A4B-itUD-IQ2_M10.0 GB168 estimate
MiMo-V2.6-Distill-Qwen-9BQ8_09.5 GB54.3 estimate
gemma-4-E4B-itQ8_08.2 GB63.3 estimate

With 36 GB unified memory

ModelBest quant that fitsFileExpected tok/s
Qwen3.8-27BUD-Q6_K22.0 GB23.6 estimate
gemma-4-12B-itQ8_012.7 GB40.9 estimate
Qwen3.5-9BQ8_09.5 GB54.4 estimate
Qwen3.5-4BQ8_04.5 GB116 estimate
Qwen3.6-35B-A3BUD-Q5_K_S24.9 GB121 estimate
gemma-4-26B-A4B-itUD-Q6_K23.2 GB72.8 estimate
MiMo-V2.6-Distill-Qwen-9BQ8_09.5 GB54.3 estimate
gemma-4-E4B-itQ8_08.2 GB63.3 estimate

With 64 GB unified memory

ModelBest quant that fitsFileExpected tok/s
Qwen3.8-27BQ8_029.0 GB17.9 estimate
gemma-4-12B-itQ8_012.7 GB40.9 estimate
Qwen3.5-9BQ8_09.5 GB54.4 estimate
Qwen3.5-4BQ8_04.5 GB116 estimate
Qwen3.6-35B-A3BQ8_036.9 GB82.0 estimate
gemma-4-26B-A4B-itQ8_026.9 GB62.8 estimate
MiMo-V2.6-Distill-Qwen-9BQ8_09.5 GB54.3 estimate
gemma-4-E4B-itQ8_08.2 GB63.3 estimate

With 128 GB unified memory

ModelBest quant that fitsFileExpected tok/s
Qwen3.8-27BQ8_029.0 GB17.9 estimate
gemma-4-12B-itQ8_012.7 GB40.9 estimate
Qwen3.5-9BQ8_09.5 GB54.4 estimate
Qwen3.5-4BQ8_04.5 GB116 estimate
Qwen3.6-35B-A3BQ8_036.9 GB82.0 estimate
Qwen3.8-Flash-NextUD-IQ3_XXS82.0 GB6.3 estimate
gemma-4-26B-A4B-itQ8_026.9 GB62.8 estimate
MiMo-V2.6-Distill-Qwen-9BQ8_09.5 GB54.3 estimate

Open in the picker

Similar hardware

Apple M1 (7-core GPU) · Apple M1 (8-core GPU) · Apple M1 Pro (14-core GPU) · Apple M1 Pro (16-core GPU) · Apple M1 Max (24-core GPU) · Apple M1 Max (32-core GPU) · Apple M1 Ultra (48-core GPU) · Apple M1 Ultra (64-core GPU)