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

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

Llama 2 7B (Q4_0) generates 83.1 tokens/s on the Apple M4 Max (40-core GPU) (Metal), and processes prompts at 886 tokens/s.

Measured results

ModelGenerate
tok/s
Prompt
tok/s
QuantBackendTestSource
Llama 2 7B83.1886Q4_0Metal FA offtg128llama.cpp #4167 details
Llama 2 7B54.0892Q8_0Metal FA offtg128llama.cpp #4167 details
Llama 2 7B31.6923F16Metal FA offtg128llama.cpp #4167 details
Llama 3.2 1B Instruct1803,817Q4_K_Mllamafile LocalScore avg · n=3LocalScore LocalScore LocalScore details
Llama 3.1 8B Instruct52.9632Q4_K_Mllamafile LocalScore avg · n=3LocalScore LocalScore LocalScore details
Qwen2.5 14B Instruct28.9328Q4_K_Mllamafile LocalScore avg · n=3LocalScore LocalScore LocalScore details

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

Estimates for this chip are scaled from a measured run: Llama 2 7B F16 at 31.6 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 GB58.7 estimate
gemma-4-12B-itQ6_K9.8 GB43.6 estimate
Qwen3.5-9BQ8_09.5 GB44.8 estimate
Qwen3.5-4BQ8_04.5 GB95.1 estimate
Qwen3.6-35B-A3BUD-IQ1_M10.0 GB248 estimate
gemma-4-26B-A4B-itUD-IQ2_M10.0 GB138 estimate
MiMo-V2.6-Distill-Qwen-9BQ8_09.5 GB44.7 estimate
gemma-4-E4B-itQ8_08.2 GB52.0 estimate

With 36 GB unified memory

ModelBest quant that fitsFileExpected tok/s
Qwen3.8-27BUD-Q6_K22.0 GB19.4 estimate
gemma-4-12B-itQ8_012.7 GB33.7 estimate
Qwen3.5-9BQ8_09.5 GB44.8 estimate
Qwen3.5-4BQ8_04.5 GB95.1 estimate
Qwen3.6-35B-A3BUD-Q5_K_S24.9 GB99.7 estimate
gemma-4-26B-A4B-itUD-Q6_K23.2 GB59.8 estimate
MiMo-V2.6-Distill-Qwen-9BQ8_09.5 GB44.7 estimate
gemma-4-E4B-itQ8_08.2 GB52.0 estimate

With 64 GB unified memory

ModelBest quant that fitsFileExpected tok/s
Qwen3.8-27BQ8_029.0 GB14.7 estimate
gemma-4-12B-itQ8_012.7 GB33.7 estimate
Qwen3.5-9BQ8_09.5 GB44.8 estimate
Qwen3.5-4BQ8_04.5 GB95.1 estimate
Qwen3.6-35B-A3BQ8_036.9 GB67.4 estimate
gemma-4-26B-A4B-itQ8_026.9 GB51.6 estimate
MiMo-V2.6-Distill-Qwen-9BQ8_09.5 GB44.7 estimate
gemma-4-E4B-itQ8_08.2 GB52.0 estimate

With 128 GB unified memory

ModelBest quant that fitsFileExpected tok/s
Qwen3.8-27BQ8_029.0 GB14.7 estimate
gemma-4-12B-itQ8_012.7 GB33.7 estimate
Qwen3.5-9BQ8_09.5 GB44.8 estimate
Qwen3.5-4BQ8_04.5 GB95.1 estimate
Qwen3.6-35B-A3BQ8_036.9 GB67.4 estimate
Qwen3.8-Flash-NextUD-IQ3_XXS82.0 GB5.2 estimate
gemma-4-26B-A4B-itQ8_026.9 GB51.6 estimate
MiMo-V2.6-Distill-Qwen-9BQ8_09.5 GB44.7 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)