# Is a Mac good for local AI?

> Yes, especially for big models, because the GPU can use most of the unified memory. The weak spot is reading long prompts.

A Mac is one of the best machines for running big models at home. The GPU can use most of the system memory, so a Mac with 64 or 128 GB holds models no consumer graphics card can. The weak spot is compute: long prompts take a while to read.

## Unified memory

On a Mac, the CPU and GPU share one pool of memory. There is no separate VRAM to fill. A MacBook Pro with 64 GB gives the GPU most of those 64 GB, while a PC with a 24 GB graphics card stops at 24 GB.

That pool is also fast. Apple's larger chips have a much wider memory bus than a desktop PC, so bandwidth is several times what a CPU-only PC gets. Bandwidth decides how fast tokens come out, which [How do I judge a machine for local AI?](https://localagi.co/three-numbers) explains.

So Macs punch above their weight on large models. A 70B dense model or a 100B+ mixture of experts loads and runs on one quiet machine. On a PC, the same model needs several GPUs or spills into slow system RAM.

**Rule of thumb.** 
On a Mac, your memory is your model budget. Plan on using about three quarters of it for the model and context, and keep the rest for macOS and your apps.

## The lineup

Every Apple silicon chip comes in four tiers. The tier sets the memory ceiling and the bandwidth, and bandwidth roughly doubles at each step.

| Chip tier | Where you find it | Memory ceiling | Bandwidth | Good for |
| --- | --- | --- | --- | --- |
| Base (M-series) | MacBook Air, base MacBook Pro, Mac mini, iMac | Lowest, up to about 32 GB | Lowest | Small models, mid models slowly |
| Pro | MacBook Pro, Mac mini | Medium, up to about 64 GB | About twice base | Mid class with headroom |
| Max | MacBook Pro, Mac Studio | High, up to about 128 GB | About twice Pro | 70B dense, 100B+ MoE |
| Ultra | Mac Studio | Highest, hundreds of GB | About twice Max | The largest MoE models one box can hold |

Ceilings change with each generation, so check Apple's tech specs page for the exact figures before you buy. The current configurations and measured speeds are in these tier cards.

**Tier 2: Strong laptop or Mac** ($2,000 to $7,000+). 27 to 31B dense with headroom on 48 GB. 70B Q4 or gpt-oss-120b on 64 to 128 GB. M5 Max (measured, Mac Studio): 70B Q4 about 13 tok/s, gpt-oss-120b about 76, Qwen3 30B-A3B about 130. RTX Spark (measured): gpt-oss-120b about 65, dense 27B 13 to 15.

**Tier 4: Unified-memory workstation** ($3,400 to $22,300+). gpt-oss-120b or Qwen3.8-Flash-Next on 128 GB. DeepSeek V4-Flash, GLM-5.3-Flash and MiMo-V2.6-Flash on 192 to 256 GB. MiniMax M3.1 Flash, Beam and quantized GLM-5.3 on 512 GB. gpt-oss-120b: 31 to 59 tok/s (Strix Halo, DGX Spark). M5 Ultra 256 GB: DeepSeek V4-Flash about 39 to 45, GLM-5.3-Flash about 41. Dense 70B: 3 to 5.

Memory is fixed at purchase. You cannot add more later, so buy one step above what you need today. The jump from base to Pro, or Pro to Max, also buys bandwidth, which you feel on every token.

**The catch.** 
Apple charges a lot for memory upgrades, and a Max with 128 GB costs as much as a used multi-GPU rig. You pay for quiet, low power and one box that just works.

If you only need the mid class, a 24 GB graphics card is cheaper per token. See [What should I buy?](https://localagi.co/buying-guide).

## MLX versus llama.cpp on a Mac

Two engines matter on a Mac. [MLX](https://localagi.co/mlx) is Apple's own machine learning framework. [llama.cpp](https://localagi.co/llama-cpp) is the cross-platform engine behind Ollama and most GGUF files, with a Metal backend for Apple GPUs.

**MLX.** 
Built for Apple silicon and often a little faster at writing tokens, and new Apple chip features tend to land here first. Models come as MLX folders on Hugging Face, usually labelled 4bit or 8bit. LM Studio runs them directly.

**llama.cpp.** 
Runs everywhere, so one GGUF file works on your Mac and your friend's PC. The widest model support and the most quantization options. Ollama and LM Studio both use it.

We think you should start with whichever your app picks, then try the other on the model you use most. The difference is real but rarely decisive. [How do I benchmark my own setup?](https://localagi.co/benchmarking) shows how to measure it on your own prompts.

**Try it.** 

```bash
pip install mlx-lm
mlx_lm.generate --model mlx-community/Qwen3-4B-4bit --prompt "Explain unified memory in two sentences."
```

## Where Macs are weak

Macs read prompts slowly. Prefill, the step before the first token, is compute-bound, and Apple GPUs have less raw compute than a high-end NVIDIA card.

A chat feels instant. A coding agent that sends a large codebase every turn can sit for many seconds before it starts writing.

There is no CUDA. Most training code, many research projects and serving engines such as [vLLM](https://localagi.co/vllm-and-sglang) assume an NVIDIA GPU.

For running models through Ollama, LM Studio or MLX, this does not matter. For [Should I fine-tune a model?](https://localagi.co/fine-tuning) and for serving many users at once, it does.

Macs also do not scale out cheaply. You cannot add a second GPU. Linking several Macs works, and [What are the ways to split work across machines?](https://localagi.co/three-ways-to-cluster) covers how, but each one is a full computer.

## Go deeper

### How much memory the GPU may use

macOS caps how much memory the GPU can lock for itself, by default around two thirds to three quarters of the total. That is why a model nearly the size of your memory fails to load even with nothing else open.

The cap can be raised with a system setting that resets on reboot.

```bash
sudo sysctl iogpu.wired_limit_mb=57344
```

This example lets the GPU use 56 GB on a 64 GB Mac. Leave at least 8 GB for macOS, or the whole machine starts swapping.

### Why prefill is slow and decode is not

Decode reads every weight once per token, so it waits on bandwidth. Apple has plenty of that.

Prefill does many multiplications for each weight it reads, so it waits on compute. Newer Apple GPUs add matrix hardware that narrows this gap, but a desktop NVIDIA card still reads long prompts faster.

### Intel Macs

Intel Macs do not have unified memory, and their GPUs are not supported by most runtimes. They run small models on the CPU, slowly. [Can I run models without a GPU?](https://localagi.co/cpu-and-npu) covers what that feels like.
