What computer do you need to run local AI?
Memory decides which models you can run. Memory bandwidth decides how fast they answer. Here's how to size a computer for local AI coding.
Running an AI model locally comes down to two numbers: how much memory your computer has, which decides which models fit, and how fast that memory is, which decides how quickly the model writes its answer.
Memory: what fits
A model has to be loaded fully into memory to run well. Its size depends on its number of parameters and how compressed (quantised) it is. As Hugging Face explains, at full 16-bit precision each parameter takes 2 bytes, so an 8-billion-parameter model needs about 16 GB; at 8-bit, about 8 GB; and at the 4-bit compression most people use locally, about 4 to 5 GB. You also need room for the model's working context (longer conversations and bigger files need more) and for your other apps.
| Your memory | What runs comfortably | Examples |
|---|---|---|
| 8 GB | Only the smallest models, and tight | Very small models such as Qwen3 4B (about a 2.5 GB download) |
| 16 GB | Small models | Gemma 4 E2B, E4B or 12B |
| 32 GB | Capable 20B to 30B models, with a modest context length | Qwen3.8-27B, Devstral Small 2, Gemma 4 31B, gpt-oss-20b |
| 64 GB | The same models with long context, or larger ones at a squeeze | Qwen3-Coder-Next (short context, raised GPU memory limit) |
| 96 to 128 GB and up | Large models comfortably | Qwen3-Coder-Next, gpt-oss-120b |
A rough guide based on Ollama's download sizes in November 2026. Actual needs depend on the version and context length you use.
Bandwidth: how fast it answers
Once a model is loaded, the speed at which it writes is limited mostly by memory bandwidth, not processing power. Apple's machine learning researchers describe token generation as bounded by memory bandwidth. That's why chips with faster memory produce text faster, even with the same model.
Apple's current Macs show the range. The base M5 chip has 153 GB/s of memory bandwidth; the M5 Pro 307 GB/s; the M5 Max up to 614 GB/s; and the M5 Ultra in the Mac Studio 1.2 TB/s, with up to 512 GB of memory.
Mac or PC?
Apple silicon Macs use unified memory, shared between the processor and graphics. A Mac with 64 GB can give most of that to a model, which is why Macs are popular for running larger models. Apple's MLX framework is built for this design.
PCs with a dedicated graphics card are fast when the model fits entirely in the card's memory (VRAM). If it doesn't, part of the model spills into slower system memory and speed drops sharply. Ollama supports NVIDIA and AMD cards.
Practical recommendations
- Trying it out: any Apple silicon Mac or a PC with 8 GB or more can run small models.
- Everyday coding help: 32 GB of memory opens up the strong 20B to 30B models.
- Serious local work: 64 GB or more, with as much memory bandwidth as you can afford.
Running local models with Nexus
Nexus is a native Mac app for building with AI that runs on any Apple silicon Mac (M1 and newer) with macOS 12 or later (macOS 14 or later for local models and the Codex app, 13 or later for Claude Code). Its built-in MLX engine lets you download and run open models inside the app, or use your Ollama models, and you can switch to Claude Code by Anthropic or the Codex app by OpenAI when a task needs more than your Mac can run. Nexus will be a one-time purchase of $199 USD, with no Nexus subscription, and is coming soon. Connecting third-party AI services such as Claude Code or Codex is optional and at your own expense (see Nexus pricing).
Frequently asked questions
Can I run local AI on an 8 GB Mac?
Only the smallest models, and it will be tight. Ollama recommends 8 GB of available memory for Gemma 4 E2B (a 4.6 GB download for the default version), and an 8 GB Mac has less than that free for the model. 16 GB is comfortable for small models.
Is a Mac or a PC better for local AI?
Both work. Apple silicon Macs share one large pool of memory between the processor and graphics, which lets them load big models. PCs with a dedicated graphics card are fast when the model fits in the card's memory.