Guide
How much memory does local AI need on a Mac?
Short answer: 16 GB runs small chat models well; a local model that's good enough to act as an agent needs 32 GB; 64 GB gives it room for long documents; 96 GB and up runs frontier-scale open models. Here's the arithmetic behind those numbers, so you can check any model yourself.
The answer
A local AI model needs memory for three things: its weights (roughly parameters × bits per weight ÷ 8), its context (the text it's working with, which grows with every page an agent reads), and room for macOS and your apps. On a Mac, all three share the same unified memory.
| Your Mac's memory | What runs well | Good enough for agent work? |
|---|---|---|
| 8 GB | Tiny models (3–4 billion parameters) with short context | No |
| 16 GB | Small chat models (7–8B) at 4-bit, with room to spare | No |
| 24 GB | Up to about 14B comfortably; a 27B model only with short context | Not with the 64,000-token context agents need |
| 32–36 GB | 30–35B mixture-of-experts models at 4-bit with a 64K context | Yes |
| 48–64 GB | The same with 256K context, or a 70B model at 4-bit with modest context | Yes, comfortably |
| 96–128 GB | Frontier-scale open models (100B+ total parameters) at low bit-widths | Yes |
| 192 GB and more | The largest open models | Yes |
1. The weights: parameters × bits
A model's size in memory is its number of parameters times the bits used to store each one. Full-precision weights use 16 bits (2 bytes) each, so an 8-billion-parameter model is 16 GB. Almost nobody runs that locally: quantization stores weights in fewer bits, with a small loss of quality at 4–6 bits and a growing one below that. These are the bits per weight llama.cpp measures for its common formats (from llama.cpp's quantization table):
| Format | Bits per weight | Bytes per billion parameters | Typical use |
|---|---|---|---|
| F16 / BF16 | 16.0 | 2.0 GB | Reference quality; rarely run locally |
| Q8_0 | 8.5 | 1.06 GB | Near-lossless; needs twice the memory of 4-bit |
| Q6_K | 6.56 | 0.82 GB | Very close to full quality |
| Q5_K_M | 5.70 | 0.71 GB | A good middle ground |
| Q4_K_M | 4.89 | 0.61 GB | The usual default for local use |
| IQ4_XS | 4.46 | 0.56 GB | Slightly smaller 4-bit |
| Q3_K_M | 4.00 | 0.50 GB | Noticeable quality loss starts |
| Q2_K | 3.16 | 0.39 GB | Last resort for very large models |
Multiply out, and you get the weights for any model:
| Parameters | Q4_K_M | Q8_0 | 16-bit |
|---|---|---|---|
| 4B | 2.4 GB | 4.3 GB | 8 GB |
| 8B | 4.9 GB | 8.5 GB | 16 GB |
| 14B | 8.6 GB | 14.9 GB | 28 GB |
| 27B | 16.5 GB | 28.7 GB | 54 GB |
| 35B | 21.4 GB | 37.2 GB | 70 GB |
| 70B | 42.8 GB | 74.4 GB | 140 GB |
| 120B | 73.4 GB | 127.5 GB | 240 GB |
A real check: Qwen3.6-35B-A3B, a 35-billion-parameter model, is 22.1 GB at UD-Q4_K_M, 36.9 GB at Q8_0 and 69.4 GB at BF16 (Unsloth's Qwen3.6-35B-A3B GGUF files on Hugging Face). The arithmetic predicts 21.4, 37.2 and 70 GB.
Apple's “32 GB” of memory is 32 × 2³⁰ bytes (what engineers call GiB). Model files are usually listed in decimal gigabytes, which are about 7% smaller. This guide uses GB loosely and rounds; the difference never decides whether a model fits.
2. The context: why agents need more memory than chat
While a model works, it keeps a KV cache: two numbers per layer, per attention head, for every token of context. The formula is 2 × layers × KV heads × head size × bytes per value × tokens. It's why the same model needs far more memory for an agent than for a chat.
Take Llama 3.1 8B: 32 layers, 8 KV heads of size 128 (Meta's Llama 3.1 8B model card). At 16 bits that's 2 × 32 × 8 × 128 × 2 bytes = 128 KB per token:
| Context length | What fits in it | KV cache, 16-bit | KV cache, 8-bit |
|---|---|---|---|
| 8,000 tokens | A long chat | 1 GB | 0.5 GB |
| 32,000 tokens | A few web pages | 4 GB | 2 GB |
| 64,000 tokens | An agent task: instructions, tool results, several pages | 8 GB | 4 GB |
| 128,000 tokens | A long research task or a book chapter | 16 GB | 8 GB |
Agents need long context because every step adds to it: the instructions and tool descriptions, each search result, each page it reads, each file. The Hermes Agent engine (which Kaairos is built on) measured this over 161 real agent sessions: 66% finished within 64,000 tokens, 82% within 96,000 and 91% within 144,000. So it guarantees at least 64K and aims for 144K (the Hermes Agent engine's model catalog and fit rules).
Newer models cut this cost. Qwen's recent models use a mix of ordinary attention layers and “linear” layers that don't grow with context. In the engine's catalog, Qwen3.8 27B keeps a growing cache in only 16 of its 64 layers, so 64K tokens costs about 2.8 GB, where a design with a cache in every layer would need 8–16 GB. That's why the catalog prefers them.
3. Headroom: macOS, your apps and the runtime
Unified memory is shared. Your browser, mail and macOS itself need several gigabytes, and the runtime needs working space beyond the weights and cache. The Hermes engine budgets conservatively: it plans to use at most 80% of your Mac's memory, and sets aside 1.5 GB for the runtime's working buffers on top of the model and its cache.
macOS also limits how much memory the GPU may use by default. The limit is commonly reported at around two-thirds to three-quarters of memory and can be raised with an undocumented system setting; we don't recommend changing it, because a model that crowds out macOS makes the whole Mac swap and stall.
Worked examples
Here's the engine's own arithmetic for its models, which is exactly what Kaairos uses to decide what to download (all figures from the Hermes Agent engine's model catalog and fit rules):
| Mac | Model | Weights | Vision + runtime | Context | Total | Budget (80%) | Fits? |
|---|---|---|---|---|---|---|---|
| 24 GB | Qwen3.8 27B, 4-bit | 15.3 GB | 0.9 + 1.5 GB | 2.8 GB at 64K | 20.5 GB | 19.2 GB | No |
| 32 GB | Qwen3.6 35B-A3B, 4-bit | 21.1 GB | 0.8 + 1.5 GB | 0.9 GB at 64K | 24.4 GB | 25.6 GB | Yes, at 64K |
| 36 GB | Qwen3.6 35B-A3B, 4-bit | 21.1 GB | 0.8 + 1.5 GB | grows to 256K | under 28.8 GB | 28.8 GB | Yes, at 256K |
| 16 GB | Llama 3.1 8B, Q4_K_M (chat) | 4.9 GB | about 1 GB | 1 GB at 8K | about 7 GB | 12.8 GB | Yes |
| 64 GB | A 70B model, Q4_K_M | 42.8 GB | about 1.5 GB | 5 GB at 32K (8-bit) | about 49 GB | 51.2 GB | Yes, at 32K; not at 64K |
The 24 GB row is the important one. A 24 GB Mac has the memory to load a capable 27B model, but not with the context an agent needs: the model loads, then stalls or forgets once a task fills its window. That's the gap between “runs a local model” and “runs a local agent”.
Memory decides what fits. Bandwidth decides how fast.
To write each token, the Mac reads the model's active weights from memory once. So the most tokens per second you can expect is roughly memory bandwidth ÷ bytes read per token. That's a ceiling, not a benchmark: real speeds are lower, and they drop as the context grows. For measured numbers on many Macs, see llama.cpp's Apple silicon performance thread.
This is why mixture-of-experts (MoE) models suit Macs. Qwen3.6 35B-A3B has 35 billion parameters but uses only about 3 billion for each token; the engine counts about 15% of its 22.7 GB file as read per token, about 3.4 GB. A dense 27B model reads all 16.5 GB every token.
| Chip (memory bandwidth) | Dense 27B at 4-bit: ceiling | MoE 35B-A3B at 4-bit: ceiling |
|---|---|---|
| M5 (153 GB/s) | about 9 tokens/s | about 45 tokens/s |
| M5 Pro (307 GB/s) | about 19 tokens/s | about 90 tokens/s |
| M5 Max, 40-core GPU (614 GB/s) | about 37 tokens/s | about 180 tokens/s |
Reading a long page into the context (“prompt processing”) is limited by the GPU's compute rather than bandwidth, so a Pro or Max chip also helps an agent that reads a lot. For reference, people read at roughly 4–5 words a second; around 20 tokens a second is where an agent stops feeling slow, and that's the floor the engine uses when it recommends a model.
Every current Mac, and what it can run
| Mac (2025–2026) | Memory options | Bandwidth | Private AI agent? |
|---|---|---|---|
| MacBook Air (M5) | 16, 24 or 32 GB | 153 GB/s | With 32 GB |
| MacBook Pro 14-inch (M5) | 16, 24 or 32 GB | 153 GB/s | With 32 GB |
| MacBook Pro (M5 Pro) | 24 to 64 GB | 307 GB/s | With 32 GB or more |
| MacBook Pro (M5 Max) | 36 to 128 GB | 460 or 614 GB/s | Yes, every configuration |
| Mac mini (M6) | Up to 32 GB | See Apple's page | With 32 GB |
| Mac mini (M5 Pro) | Up to 64 GB | 307 GB/s | With 32 GB or more |
| Mac Studio (M5 Max) | 36 to 128 GB | 614 GB/s | Yes |
| Mac Studio (M5 Ultra) | 96 to 512 GB | Up to 1.2 TB/s | Yes, including frontier-scale models |
Older Apple silicon Macs (M1 to M4) follow the same rules by memory size: what matters is the number on the Memory line in Apple menu › About This Mac. They're slower per token; for example, M4 Pro has 273 GB/s and M4 Max 546 GB/s, against 307 and 614 for the M5 generation. Intel Macs aren't practical for local models.
What Kaairos does on each Mac
Kaairos doesn't ask you to pick a model. When you press Set it up, its engine prices every model in its curated catalog against your Mac's memory with the arithmetic above, and downloads the best one that fits and is fast enough:
| Your Mac's memory | What Kaairos sets up | Download |
|---|---|---|
| 8, 16 or 24 GB | No private AI: nothing in the catalog fits with agent-sized context. Connect an AI account instead (Sign in with ChatGPT, or a key for Claude, Gemini and others) | None |
| 32 to 64 GB | Qwen3.6 35B-A3B, 4-bit, with vision. Context from 64K (32 GB) up to 256K (36 GB and more) | About 24 GB |
| 96 GB and more | Qwen3.8 Flash Next, a frontier-scale mixture-of-experts model | About 99 GB |
On a smaller Mac, Kaairos works the same way with an online AI: routines run on that account's fast, inexpensive model. See what hybrid AI is for how the jobs are split.
If you're buying a Mac for local AI
- Buy memory, not storage. Memory can't be upgraded later. Storage can be added with an external drive.
- 32 GB is the floor for a local agent. 24 GB is a common trap: enough to load a good model, not enough to use it as an agent.
- 64 GB is the comfortable choice. Long context, a second model, and your other apps, without swapping.
- Pro or Max chips for speed. Twice or four times the bandwidth of the base chip means roughly that much faster replies on the same model.
- 128 GB and up only if you know you need it: frontier-scale models, several models at once, or research.
- Leave disk space: models are 20–100 GB each, and you'll want room to try another.
And if you already own a 16 GB Mac, you don't need a new one to have an AI agent: connect an online AI, and keep private work in mind when you choose what to ask.
Fair questions
Is 16 GB enough for local AI?
For chatting with small models (7–8 billion parameters at 4-bit), yes. For a local model capable of agent work, with tools, long context and multi-step tasks, plan on 32 GB.
Is 24 GB enough for a local AI agent?
Not quite. A 24 GB Mac can load a capable 27B model at 4-bit, but with the 64,000-token context agents need, it comes to about 20.5 GB against a safe budget of about 19 GB.
Should I get 32 GB or 64 GB?
32 GB runs a capable agent model with the context it needs. 64 GB adds long context (up to 256K tokens), room for your other apps and for a second model. If you can afford it, 64 GB.
How much memory does a 70B model need?
About 43 GB for the weights at Q4_K_M, plus context: around 49 GB in all at 32K tokens with an 8-bit cache. A 64 GB Mac runs it; a 48 GB Mac doesn't, comfortably.
Does quantization make the model worse?
A little. At 4–6 bits per weight the loss is small for most uses; at 3 bits and below it becomes noticeable. Q4_K_M is the usual default for a reason.
Does MLX use less memory than llama.cpp?
About the same at the same precision. MLX's common 4-bit format stores about 4.5 bits per weight once its scaling values are counted, close to llama.cpp's 4-bit formats.
How do I check my Mac's memory?
Apple menu › About This Mac. The Memory line shows it. Activity Monitor's Memory tab shows how much is in use, and memory pressure turning yellow or red means a model is too big.
Why does Kaairos need 32 GB when other apps run on 16 GB?
Chat apps run small models with short context. An agent needs a stronger model and a 64,000-token context, which by the engine's arithmetic needs 32 GB. On smaller Macs, Kaairos uses an online AI account instead.
Can I raise the GPU memory limit on a Mac?
There's an undocumented system setting for it. We don't recommend it: squeezing macOS makes the whole Mac swap, which is slower than running a smaller model.
Download and go
Your AI agent, already set up.
One button to set up. Its own private AI, free. Claude, ChatGPT or Gemini when you want more.
A Mac with Apple silicon (M1 or later), macOS 15 Sequoia or later. 14-day refund.