To run an LLM on a Mac, install Ollama and run ollama run llama3.2 in Terminal: it downloads a 2.0 GB model and runs it on the Apple silicon GPU. The real limit is memory, because the model has to fit in your Mac's unified memory, so a 16 GB Mac is comfortable with 7B to 8B models at 4-bit and an 8 GB Mac should stay around 3B.
Four tools do the job well on Apple silicon. They all run the model locally, and they differ mainly in how much control you get.
| Tool | Best for | Model format | macOS requirement |
|---|---|---|---|
| Ollama | Simplest start, terminal plus local API | Ollama library (GGUF-based) | macOS 14 Sonoma or newer |
| LM Studio | A graphical app with a model browser | GGUF and MLX | macOS 14.0 or newer, Apple silicon only |
| llama.cpp | Full control over every setting | GGUF | Any recent macOS (Metal on by default) |
| MLX (mlx-lm) | Apple's own framework, from Python | MLX | macOS 14.0 or newer, Apple silicon |
Why Apple silicon Macs are good at running LLMs
On a PC, a model runs fast only if it fits in the graphics card's VRAM, which is usually 8 to 16 GB. An M-series Mac has no separate VRAM: the CPU and GPU share one pool of unified memory. Apple's MLX project describes the effect directly: arrays "live in shared memory" and operations can run on any supported device "without transferring data". In practice, a Mac with 32 GB of memory can load a model that would need a 32 GB graphics card on a PC, minus what macOS and your open apps are using.
llama.cpp calls Apple silicon "a first-class citizen", optimised through ARM NEON, Accelerate and Metal. Ollama's macOS docs state that M-series Macs get CPU and GPU support, while Intel Macs are CPU only. That is the main reason to avoid an Intel Mac for this.
Step 1: check how much memory your Mac has
Open Apple menu > About This Mac and read the Memory line, or run this in Terminal:
sysctl -n hw.memsize | awk '{print $1/1073741824 " GB"}'
Example output on a 16 GB Mac:
16 GB
Then pick a model size. The weights of a model take roughly parameters × bits per weight ÷ 8 bytes. An 8B model at 4-bit is about 8 × 4 ÷ 8 = 4 GB, plus some overhead and the context cache. Leave several gigabytes for macOS itself.
| Unified memory | Model size to start with (4-bit) |
|---|---|
| 8 GB | 1B to 3B |
| 16 GB | 7B to 8B |
| 32 GB | 14B, up to about 32B |
| 64 GB and up | 32B comfortably, larger models at lower bit widths |
These are starting points from the arithmetic above, not hard limits. Longer context windows need more memory, so a model that loads fine can still slow down when you paste in a long document. For the full calculation, see how much VRAM you need to run an LLM, and for what "4-bit" and Q4_K_M mean, see LLM quantization and GGUF explained.
Option 1: Ollama (easiest)
Download Ollama for macOS, open ollama.dmg and drag the app into Applications. On first launch it offers to link the ollama command into /usr/local/bin; accept so Terminal can find it. Then:
ollama run llama3.2
The default llama3.2 tag is the 3B model, a 2.0 GB download. On an 8 GB Mac, ollama run llama3.2:1b (1.3 GB) leaves more headroom. Type a message at the >>> prompt, and type /bye to exit.
To confirm the model is on the GPU, run this in a second Terminal window while it is loaded:
ollama ps
The PROCESSOR column should read 100% GPU. A split such as 48%/52% CPU/GPU means part of the model did not fit and is running more slowly on the CPU. Models live in ~/.ollama, and the local API listens on 127.0.0.1:11434. The full Ollama guide covers model management and the API.
Option 2: LM Studio (graphical app)
LM Studio is a desktop app with a search box for models, a chat window and a local server. Its system requirements are Apple silicon (M1 to M4 named), macOS 14.0 or newer and "16GB+ RAM recommended"; Intel Macs are not supported. On a Mac it can load both GGUF files and MLX models, so it is a quick way to try both formats without touching Terminal.
Option 3: llama.cpp (most control)
llama.cpp is the engine underneath many local-LLM tools. Install it with Homebrew:
brew install llama.cpp
The project also lists MacPorts (sudo port install llama.cpp), Nix, conda-forge and an install script. As of October 2026 the README's quick start downloads a model straight from Hugging Face:
llama cli -hf ggml-org/Qwen3.5-0.8B-GGUF
llama serve -hf ggml-org/Qwen3.5-0.8B-GGUF
The first command chats in the terminal; the second starts an OpenAI-compatible server with a web UI. Release builds also ship the separate llama-cli and llama-server programs used in older guides. On macOS, Metal is enabled by default in the build, so the GPU is used without extra flags; --n-gpu-layers 0 turns GPU inference off if you want to compare. Our llama.cpp getting-started guide walks through the flags and the server.
Option 4: MLX with mlx-lm (Apple's framework)
MLX is Apple's machine-learning framework for Apple silicon, and mlx-lm is its package for running language models. Requirements: an Apple silicon Mac, macOS 14.0 or later and a native arm64 Python 3.10 or newer. Check that Python is native, not running under Rosetta:
python3 -c "import platform; print(platform.processor())"
It must print arm. If it prints i386, you are using an Intel build of Python and MLX will not install. Then, inside a virtual environment:
pip install mlx-lm
mlx_lm.generate --prompt "How tall is Mt Everest?"
mlx_lm.chat
Without --model, the README's default is mlx-community/Llama-3.2-3B-Instruct-4bit. Pass --model with any MLX-format repository to use another one. mlx_lm.server starts a local HTTP server.
Running bigger models: the wired memory limit
mlx-lm speeds up large models by wiring (pinning) the memory they use, and macOS limits how much memory can be wired. If mlx-lm prints a warning that begins [WARNING] Generating with a model that requires, the model is large relative to your RAM and will probably be slow. The mlx-lm README says that on macOS 15.0 or higher you can raise the limit with:
sudo sysctl iogpu.wired_limit_mb=N
Set N above the model's size in megabytes but below your total memory. Raising it leaves less memory for macOS and your apps, so close other programs first, and if the Mac starts swapping heavily, use a smaller model or a lower-bit quantization instead.
If it is slow or will not load
- Very slow replies, Mac becomes sluggish: the model plus context does not fit in memory, and macOS is swapping to disk. Check Activity Monitor > Memory for memory pressure in yellow or red. Use a smaller model or a 4-bit version.
ollama psshows a CPU share: same cause. Close memory-hungry apps such as browsers with many tabs, or shorten the context length.- MLX fails to install: your Python is probably x86 under Rosetta, or older than 3.10. Re-run the
platform.processor()check. - Intel Mac: expect CPU-only speeds in Ollama and llama.cpp, and no LM Studio. Use 1B to 3B models.
Frequently asked questions
- Can an Intel Mac run a local LLM?
- Yes, but slowly. Ollama supports Intel Macs on the CPU only, with no GPU acceleration, and LM Studio does not support Intel Macs at all. Stick to small models of 1B to 3B parameters, or use an Apple silicon Mac if you want usable speed.
- How much RAM does a Mac need to run an LLM?
- 8 GB runs small models of around 1B to 3B parameters at 4-bit. 16 GB, which LM Studio recommends as a minimum, comfortably runs 7B to 8B models at 4-bit. 32 GB or more opens up models in the 14B to 32B range. The model file plus the context cache has to fit in memory alongside macOS and your other apps.
- Is MLX faster than llama.cpp on a Mac?
- It depends on the model, quantization and chip, so measure it on your own machine. Both run on the Apple GPU. Load the same model at a similar bit width in each and compare the tokens per second they report. LM Studio can run both MLX and GGUF models, which makes this comparison easy.
- Does running an LLM locally on a Mac send my prompts anywhere?
- No. Ollama, LM Studio, llama.cpp and mlx-lm run the model on your machine, and their local servers listen on 127.0.0.1 by default. The internet is only used to download the model files.