Apple M4 Max (40-core GPU) × Meta Llama 3.1 8B Instruct

Meta Llama 3.1 8B Instruct on Apple M4 Max (40-core GPU)

58.8best gen tok/s
704best prompt tok/s
4,352max context tested
14results

Measured · all numbers below come from the linked sources

llama.cpp

QuantGen tok/sPrompt tok/sSourceContext testedTTFTBuild
Q4_K - Medium58.8698LocalScore ↗4,3521,717 msllamafile 0.9.2
Q4_K - Medium56.1704LocalScore ↗512+1281,721 msllamafile 0.9.2
Q4_K - Medium55.6672LocalScore ↗512+1281,777 msllamafile 0.9.2
Q4_K - Medium55.5655LocalScore ↗512+1281,807 msllamafile 0.9.2
Q4_K - Medium54.8652LocalScore ↗512+1281,812 msllamafile 0.9.2
Q4_K - Medium54.2663LocalScore ↗512+1281,797 msllamafile 0.9.2
Q4_K - Medium53.1627LocalScore ↗512+1281,931 msllamafile 0.9.2
Q4_K - Medium52.4636LocalScore ↗512+1281,854 msllamafile 0.9.2
Q4_K - Medium51.6607LocalScore ↗512+1281,994 msllamafile 0.9.1
Q4_K - Medium51.2590LocalScore ↗512+1282,040 msllamafile 0.9.2
Q4_K - Medium49.6583LocalScore ↗4,3522,048 msllamafile 0.9.2
Q4_K - Medium48.6577LocalScore ↗4,3522,093 msllamafile 0.9.2
Q4_K - Medium43.0526LocalScore ↗512+1282,153 msllamafile 0.9.2
Q4_K - Medium41.8478LocalScore ↗512+1282,435 msllamafile 0.9.2

Ollama

No measured Ollama results yet. Submit yours →

MLX

No measured MLX results yet. Submit yours →

"Context tested" is the largest prompt+generation length actually benchmarked (tokens), not a memory-fit estimate.

What else can Apple M4 Max (40-core GPU) run? →

Includes results from LocalScore, a Mozilla Builders project by cjpais, mirrored in the cn0303/local-llm-speed-benchmarks dataset. LocalScore runs use llamafile, which is built on llama.cpp.