▚VRAM Calculator▋

// guides

Running LLMs on a Mac — How Much Unified Memory Do You Need?

How Apple Silicon unified memory works for local LLMs, how much of it the GPU can actually use, and which models fit on 16 GB to 512 GB Macs, from M4 to M5 and M6.

reviewed 2026-11-15 · by Bedino

Apple Silicon changed local LLMs for one reason: unified memory. The CPU and GPU share one pool of fast memory, so a Mac with 128 GB of RAM can load a model that would need four consumer GPUs. The trade-offs are a lower bandwidth than a top GPU, and a few macOS rules about how much of that pool the GPU may use.

How much of the memory is really available?

Not all of it. macOS reserves memory for itself, and by default it limits how much the GPU can “wire” for Metal. The calculator models the default as roughly two thirds of the total (the true value varies with the amount of RAM and the macOS version) and an OS reserve of the larger of 1.5 GiB or 12 percent. That gives:

Unified memory Usable by default (~67%) Usable with the limit raised
16 GB 10.7 GiB 14.1 GiB
24 GB 16.1 GiB 21.1 GiB
32 GB 21.4 GiB 28.2 GiB
36 GB 24.1 GiB 31.7 GiB
48 GB 32.2 GiB 42.2 GiB
64 GB 42.9 GiB 56.3 GiB
96 GB 64.3 GiB 84.5 GiB
128 GB 85.8 GiB 112.6 GiB
256 GB 171.5 GiB 225.3 GiB
512 GB 343.0 GiB 450.6 GiB

Raising the limit is done with sudo sysctl iogpu.wired_limit_mb=<megabytes>. It does not survive a reboot and it leaves the operating system less room, so keep a few gigabytes spare.

What fits where

Using the footprints from the VRAM guide (Q4_K_M, 8k context, one request):

  • Llama 3.1 8B (6.9 GiB) fits on every machine from 16 GB up.
  • Qwen3 14B (11.0 GiB) needs 24 GB or more by default; it just misses on 16 GB unless you raise the limit.
  • A 24B model (about 16 GiB) is comfortable on 32 GB.
  • Qwen3 32B (21.9 GiB) misses a 32 GB Mac by a hair with the default limit (21.4 GiB usable). A 36 GB Mac runs it; a 32 GB Mac needs the raised limit.
  • Llama 3.3 70B (43.9 GiB) needs 96 GB by default, or 64 GB with the limit raised (56.3 GiB usable).
  • gpt-oss-120b (about 59 GiB) fits on 96 GB by default and on 128 GB with room for long contexts.
  • The 512 GB Macs are for models in the hundreds of billions of parameters (large MoE models at 4-bit).

Long contexts add to all of these; the Mac calculator includes the context you choose and tells you if the raised limit would be enough.

Bandwidth by chip

Memory bandwidth decides generation speed (see the tokens-per-second guide). Published figures for recent chips:

Chip Bandwidth
M4 120 GB/s
M4 Pro 273 GB/s
M4 Max 410 or 546 GB/s (by GPU configuration)
M3 Ultra 819 GB/s
M5 153 GB/s
M5 Pro 307 GB/s
M5 Max 460 or 614 GB/s (by GPU configuration)
M5 Ultra 1,200 GB/s (Mac Studio, announced August 2026)
M6 170 GB/s (announced for the Mac mini, August 2026)

Within a generation the base chip is limited by bandwidth long before it runs out of capacity, which is why a base Mac with lots of memory is not the best LLM machine: you can load a big model, but it will generate slowly. The Pro, Max and Ultra variants buy the bandwidth that makes large models pleasant to use.

On the same Q4_K_M 70B model, the bandwidth-bound estimate is about 10 tokens per second on an M4 Max, 11 on an M5 Max, 14 on an M3 Ultra and 21 on an M5 Ultra — usable for chat, slow for long outputs.

Where Macs are weaker

Prompt processing. Reading a long prompt is compute-bound, and Apple’s GPUs have far fewer TFLOPS than a desktop card. A 30,000-token prompt can take noticeably longer to start answering than on a GPU with similar generation speed. Newer chips with neural accelerators in each GPU core narrow this gap for matrix-heavy work.

Software support. The major runtimes work well, but new quantization formats and serving features often arrive for CUDA first.

A buying rule of thumb

Decide the biggest model you want to run at Q4, add 20 to 30 percent for context and overhead, then add about a third because of the default GPU limit (or plan to raise it). If that lands between two sizes, take the bigger one: unified memory cannot be upgraded later.

Then check the bandwidth of the chip you are considering. If a Max or Ultra is out of budget, a smaller model on a Pro chip is usually a better experience than a huge model on a base chip.

Check your configuration

Use the Mac unified memory tool to pick a chip and memory size, a model and a quantization, and see whether it runs with the default or the raised limit. The figures for the newest chips are marked as estimates in the data where Apple has not published all details.

faq
Why can't a 16 GB Mac use all 16 GB for a model?
macOS and your apps need memory too, and by default the GPU is only allowed to wire a fraction of the total (roughly two thirds on smaller machines, more on larger ones; the exact limit depends on the macOS version). With the default limit a 16 GB Mac has about 10 to 11 GB usable for a model.
Can I raise the GPU memory limit?
Yes. The iogpu.wired_limit_mb setting, changed with sudo sysctl, lets the GPU wire more of the unified memory. It resets at reboot and leaves less for the OS, so keep a few gigabytes free. Setting it too high can make the system unstable.
Is a Mac faster or slower than an NVIDIA GPU for LLMs?
For generating text, speed follows memory bandwidth, so a Max or Ultra chip with 400 to 1,200 GB/s is competitive with mid-range GPUs, and far below a datacenter card. Where Macs lag is prompt processing on long inputs. What a Mac offers that GPUs do not is a very large amount of fast-ish memory in one box.
Which runtimes should I use?
llama.cpp (and the tools built on it, such as Ollama and LM Studio) with GGUF models, or Apple's MLX framework with MLX-format models. Both use the GPU through Metal.
more guides