Local LLMs on Apple Silicon: which Mac, RAM and speed

Six deep dives on this site measured how open models run on my 128 GB M4 Max and a GPU box. They cover which quantization fits which Mac, how fast decoding gets, what context costs and when the GPU is faster. This guide puts those measurements in the order I make the decisions.

A compact unbranded aluminium desktop computer beside a tall stack of translucent glass panes
Illustration: a compact unbranded aluminium desktop computer beside a tall stack of translucent glass panes.

Short answer

A 32 GB Mac can run a 27B 4-bit build with a modest context budget; the exact checkpoint and runtime still matter. My 128 GB M4 Max recorded 16.7 → 35.5 tok/s with DFlash 2 in the greedy lane and 47.2 in a separate sampled-thinking lane. Weights, context and runtime allocations share memory. The GPU comparison reports faster prefill in different deployments rather than a controlled chip benchmark.

Check if a model fits →Quantization guide →M4 Max vs RTX 5090 →

What a Mac buys you

The first advantage is unified memory. A 128 GB Mac holds the model weights, the growing context cache and the surrounding tools in one pool, larger than the memory on any consumer GPU. That is why a laptop can run a model in the same class as frontier cloud models on selected published benchmarks, with real wins and real losses.

Local inference can keep prompts and documents on the device. A cloud model, web search, connected tool, remote log or fallback route may still send data elsewhere. The private-AI data-flow checklist records those destinations; LM Studio’s policy illustrates the difference between local and cloud features.

The best Mac for local LLM work is usually the one with the most unified memory you can afford, because memory decides which models fit. MacBook Pro, Mac Studio and Mac mini can all run them, and memory bandwidth differs by chip, which affects speed. My measurements come from one 128 GB M4 Max MacBook Pro, so treat them as a guide for other machines.

For candidate downloads, the popular-models note is a selected-repository snapshot dated 2 October 2026, with memory estimates and derivative-specific caveats.

Pick the quantization your RAM can hold

My starting rule on Apple silicon is conservative. I keep model weights near or below half of unified memory, because macOS, the KV cache, activations and every open app need the rest. For a 27B-class model the current MLX weight files are about 16.1 GB at 4-bit, 29.5 GB at 8-bit and 54.7 GB at BF16. Memory use at run time starts from those figures and grows.

MLX weight files for a 27B-class model by precisionThree bars: about 16.1 GB at 4-bit, 29.5 GB at 8-bit and 54.7 GB at BF16.Weight files (GB)4-bit16.1 GB8-bit29.5 GBBF1654.7 GB054.7
The current MLX weight files for a 27B-class model at three precisions. Memory use at run time starts from these sizes and grows with context, so I keep the weights near or below half of unified memory.
Which quantization of a 27B model fits each amount of unified memory.
Unified memorySensible choiceWhy
16 GBA smaller modelThe 27B 4-bit weights alone are ~16.1 GB; it is not a sensible fit.
24 GBSmaller is safer27B 4-bit is a tight experiment, not a daily default.
32 GB27B at 4-bitModest context, memory-heavy apps closed, watch pressure during real tasks.
48–64 GB4-bit firstTrial 8-bit at 64 GB only if measured quality gains justify the smaller cushion.
96–128 GB27B at 8-bit~29.5 GB of weights leaves real room for context, cache, and tools.

The Qwen 3.8 dive has the full reasoning and the download record for my 128 GB M4 Max. It also covers Qwen's comparison with Claude Opus 4.6, which Anthropic released on 5 February 2026. The quantization guide explains what each format gives up. The Qwen dive's download rule: if you are unsure, choose the smaller quantization, because a model that finishes reliably beats a larger one that swaps, stalls or crashes. The quantization guide states the same trade from the other side: use the largest quantization that still leaves room for the context the task needs.

The same rule explains why the 180B Qwen3.8-Flash-Next is much harder to fit on a Mac: its smallest common builds are about 70 GB. Its system requirements show what runs at 64, 96, 128 and 192 GB. Smaller mixture-of-experts models follow the same rule: Nemotron 3.5 Lightning generates at small-model speed but still needs about 20 GB for its 4-bit build, so 32 GB is its practical floor.

Speed: speculative decoding on the M4 Max

Plain decoding on a big Mac is usable, if slow. The change that raised decode speed was speculative decoding, where a small drafter proposes tokens and the big model checks them. I measured it on my M4 Max on two builds of the model that cannot be combined, each against its own baseline:

Measured decode on a 128 GB M4 Max, each build against its own baseline.
Build (mutually exclusive)Measured decode
Native multi-token prediction (MTP) build18.5 → 22.9 tokens per second, about +24%
DFlash 2 drafter build16.7 → up to 47.2 tokens per second, up to +183%

MTP and DFlash are alternative paths in the builds tested here. Compare decode with decode to isolate the drafter’s effect, and also measure TTFT and time to a completed answer that passes the task. End-to-end throughput includes prompt processing, so it cannot be compared directly with a decode-only baseline; it remains relevant to how long the job takes.

Context length and the KV cache

The KV cache has its own precision setting. My published RTX 5090 configurations used FP8 and passed the stated checks, but did not include a matched BF16 comparison. The KV-cache note separates published FP4 results on other models from settings I have not tested. Choose and validate weight precision, KV precision and recurrent-state precision separately.

Two more context rules held up when I measured them. The usable window can be shorter than the advertised one: it is the smaller of the declared length and the memory left after the weights load. A long window is also worth paying for only if the model still behaves well deep into it. A 40-check graded suite at four depths of a 262k window found clean tool calls at every depth, and the test harness failed before the model did. That suite ran on the GPU workstation with a different model, one cold pass per depth, and its write-up is labelled that way. The same applies to any long window: grade the output with a test.

When the Mac is the wrong tool

I run the same 27B family on a 128 GB M4 Max and a 32 GB RTX 5090. The size of the gap depends on the phase of inference, so I route work by phase:

Phase-specific observations from two different deployments.
PhasePublished observationLimit
PrefillApproximately 46× quotient between reported ratesDifferent prompts and deployment settings
Baseline decode5.1× quotientDifferent target builds and runtimes
DFlash decode, displayed lanes3.9× quotientExcludes the sampled-thinking result
Cached repeatRoughly 90% TTFT reduction within each setupNo matched cross-machine parity result

Interactive, private and conversational work goes to the Mac, and prefill-heavy batch work goes to the GPU box. The servers, recipes and remote access on the 5090 side have their own dive, the RTX 5090 workstation build.

How I test a configuration before trusting it

Every number above comes from a recorded configuration, with its limits stated beside it. The checklist I work from is the quantization guide's nine-point test. It covers model identity and quantization, configured context, the real task, recall, tool calling, instruction following, latency and memory, observed failure and a cloud comparison. I log each result as one of my dated field notes. A configuration that returns fluent text but breaks tool calls fails the test, however fast it runs.

Common questions

Which Mac do I need to run a local LLM well?

A 32 GB Mac runs a 27B model at 4-bit with modest context. 96–128 GB runs the 8-bit conversion with real headroom for context and tools. On 16 GB, choose a smaller model: the 27B 4-bit weights alone are about 16.1 GB.

How fast is local inference on a Mac?

On my 128 GB M4 Max, the external-drafter target went from 16.7 to 35.5 tok/s in its greedy lane. A separate sampled-thinking lane reached 47.2 tok/s. Another target’s native-MTP comparison measured 18.5 → 22.9, about +24%. These results use different targets or generation modes.

Is a local model as good as a cloud model?

On selected published benchmarks a 27B open model is now in the same class as a frontier cloud model, with real wins and real losses. Benchmarks cover selected tests only, so test the model on your own task.

Do I need speculative decoding?

It produced the largest decode gains among the Mac configurations tested here: 18.5 → 22.9 tok/s with native MTP on one target, and 16.7 → 35.5 with DFlash 2 in another target’s greedy lane. The separate sampled-thinking result was 47.2. Compare TTFT and total task latency as well.

When should I use a GPU box instead?

The GPU deployment recorded faster prefill and decode in these tests, but its weights, runtime and prompts differed from the Mac’s. Use the phase-specific observations to choose a configuration to test; warm-cache hardware parity was not measured.

Suhail Mohebi · published 28 August 2026 · the cover is a generated illustration

Use this

Check if a model fits →

Want this inside your team’s workflow? The Verified AI Operations Sprint tests one workflow in ten working days. See the sprint →

What a Mac buys you
  1. What a Mac buys you
  2. Pick the quantization your RAM can hold
  3. Speed: speculative decoding on the M4 Max
  4. Context length and the KV cache
  5. When the Mac is the wrong tool
  6. How I test a configuration before trusting it
  7. Common questions