Run Llama 3.1 8B on M5 Max

Llama 3.1 8B runs at 102 tok/s on a 128 GB M5 Max, a published figure reported by vsesmart.cz (llama.cpp, 4-bit, random-token prompt, empty context). It needs about 5 GB of unified memory. It is Meta's 8B dense model, released under the Meta Custom licence.

Speed
sourced102
tok/s
First Token
—
seconds
RAM Needed
5
GB minimum
Engine
llama.cpp
of this figure
Want to run Llama 3.1 8B faster — or step up to bigger models? Find your Mac →

The figure

This is a published figure: a real run, reported by its source and linked below. The index records it as given and never adjusts it.

MetricValue
Tokens per secondsourced102 tok/s
Provenancepublished figure · vsesmart.cz
Quantization4-bit
Enginellama.cpp
Contextrandom-token prompt, empty context
Figure dated2026-11-02
Minimum RAM5 GB
Parameters8B
Chip bandwidth614 GB/s

Every figure for Llama 3.1 8B on the M5 Max

Each row as the index holds it, with its source. “Mac RAM” is the memory of the Mac a run used, not the model’s requirement (5 GB). The headline figure follows the reference rule: the lower-median measured plain-decode run at 5 bits or fewer (a run whose quant was not stated counts only when no stated-quant run qualifies), else the estimate; a run marked “not used to anchor estimates” is listed here but never becomes the headline.

SpeedQuantEngineMac RAMContextSourceNote
sourced115 tok/s4-bitMLX128 GBrandom-token prompt, empty contextvsesmart.czVse Smart review: MacBook Pro M5 Max (40-core GPU, 128 GB), macOS 27.2, High Power mode, on AC; mlx-lm 0.32.2 (MLX 0.32.4), median of 3. 4-bit MLX; the review does not name the repo.
sourced102 tok/s4-bitllama.cpp128 GBrandom-token prompt, empty contextvsesmart.czVse Smart review: MacBook Pro M5 Max (40-core GPU, 128 GB), macOS 27.2, High Power mode, on AC; llama.cpp build 11669 (Metal), mean of 3. 4-bit; the review does not name the GGUF type.
estimated91 tok/sQ4_K_MMLX128 GB—LLMCheck estimator—
estimated52 tok/sQ8_0Ollama64 GB—LLMCheck estimator—
Provenance key
sourced
Published figure — vendor or press review
estimated
community
Linked individual run — blog, forum or submission

Speed by context depth: Llama 3.1 8B on the M5 Max

Measured figures only, each from its source’s own session; the index does not estimate long-context or prefill speed, so a missing cell is —. Each @ column is plain decode with that many tokens already in the prompt, from the same session as the row’s short-context figure: decode slows as the KV cache it reads grows.

RunDecode (row)@32K
MLX · 4-bit · 128 GB Mac · vsesmart.czsourced115 tok/s
random-token prompt, empty context
sourced60 tok/s
llama.cpp · 4-bit · 128 GB Mac · vsesmart.czsourced102 tok/s
random-token prompt, empty context
sourced54 tok/s

Setup: run Llama 3.1 8B on a Mac

Ollama — install it (brew install ollama or the app from ollama.com), then pull the model by its tag, checked on ollama.com on 2026-11-14:

ollama run llama3.1:8b

MLX — pick a build from Hugging Face’s MLX listings, then run it with its repo id:

pip install -U mlx-lm
mlx_lm.generate --model <repo-id> --prompt "Hello"

Downloads: Ollama page → · Hugging Face model card →

The 102 tok/s figure above came from llama.cpp at 4-bit; other runtimes and quants run at different speeds.

Prefer a GUI? LM Studio downloads GGUF and MLX builds in one click. Step by step: install Ollama on a Mac.

Llama 3.1 8B on other Apple Silicon chips

ChipSpeedQuantEngineBandwidth
M2 Maxestimated62 tok/sQ4_K_MOllama400 GB/s
M3 Proestimated25 tok/sQ4_K_MOllama150 GB/s
M4estimated20 tok/sQ4_K_MOllama120 GB/s
M2estimated17 tok/sQ4_K_MOllama100 GB/s
M1estimated11 tok/sQ4_K_MOllama68 GB/s

For the estimated figures here, the bandwidth formula’s typical error for dense models is ±9%, against 75 measured runs of 20 models (how it is computed).

About Llama 3.1 8B

Meta's 8B model, ~91 tok/s on M5 Max. Meta Custom license, LLMCheck capability 12/50.

Meta Custom licence · 8B · 128K context · LLMCheck capability 12/50 · see its leaderboard rank →

System requirements

Macs with the M5 Max

🛒 Get a Mac that runs Llama 3.1 8B

Llama 3.1 8B needs about 5 GB of unified memory. These Apple Silicon Macs have enough to run it.

As an Amazon Associate, LLMCheck earns from qualifying purchases. These affiliate links cost you nothing extra and help keep the LLMCheck index free.

Compare More Models

See how Llama 3.1 8B stacks up against other models on your specific Mac hardware.

Open Compare Tool Full Leaderboard