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.

Updated 16 November 2026

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.

Assumes 4-bit quantization (Q4_K_M or similar) and that you leave about a fifth of memory for macOS and apps.
Your Mac's memoryWhat runs wellGood enough for agent work?
8 GBTiny models (3–4 billion parameters) with short contextNo
16 GBSmall chat models (7–8B) at 4-bit, with room to spareNo
24 GBUp to about 14B comfortably; a 27B model only with short contextNot with the 64,000-token context agents need
32–36 GB30–35B mixture-of-experts models at 4-bit with a 64K contextYes
48–64 GBThe same with 256K context, or a 70B model at 4-bit with modest contextYes, comfortably
96–128 GBFrontier-scale open models (100B+ total parameters) at low bit-widthsYes
192 GB and moreThe largest open modelsYes

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):

Bits per weight measured on Llama 3.1 8B. Real files vary a little by model, because some layers are kept at higher precision.
FormatBits per weightBytes per billion parametersTypical use
F16 / BF1616.02.0 GBReference quality; rarely run locally
Q8_08.51.06 GBNear-lossless; needs twice the memory of 4-bit
Q6_K6.560.82 GBVery close to full quality
Q5_K_M5.700.71 GBA good middle ground
Q4_K_M4.890.61 GBThe usual default for local use
IQ4_XS4.460.56 GBSlightly smaller 4-bit
Q3_K_M4.000.50 GBNoticeable quality loss starts
Q2_K3.160.39 GBLast resort for very large models

Multiply out, and you get the weights for any model:

Parameters × bits per weight ÷ 8. Weights only; context and headroom come on top.
ParametersQ4_K_MQ8_016-bit
4B2.4 GB4.3 GB8 GB
8B4.9 GB8.5 GB16 GB
14B8.6 GB14.9 GB28 GB
27B16.5 GB28.7 GB54 GB
35B21.4 GB37.2 GB70 GB
70B42.8 GB74.4 GB140 GB
120B73.4 GB127.5 GB240 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:

Llama 3.1 8B. A 70B model with 80 layers needs 320 KB per token: 20 GB at 64K tokens in 16-bit.
Context lengthWhat fits in itKV cache, 16-bitKV cache, 8-bit
8,000 tokensA long chat1 GB0.5 GB
32,000 tokensA few web pages4 GB2 GB
64,000 tokensAn agent task: instructions, tool results, several pages8 GB4 GB
128,000 tokensA long research task or a book chapter16 GB8 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):

The 8B and 70B rows use the same formulas with Llama 3.1's published shapes.
MacModelWeightsVision + runtimeContextTotalBudget (80%)Fits?
24 GBQwen3.8 27B, 4-bit15.3 GB0.9 + 1.5 GB2.8 GB at 64K20.5 GB19.2 GBNo
32 GBQwen3.6 35B-A3B, 4-bit21.1 GB0.8 + 1.5 GB0.9 GB at 64K24.4 GB25.6 GBYes, at 64K
36 GBQwen3.6 35B-A3B, 4-bit21.1 GB0.8 + 1.5 GBgrows to 256Kunder 28.8 GB28.8 GBYes, at 256K
16 GBLlama 3.1 8B, Q4_K_M (chat)4.9 GBabout 1 GB1 GB at 8Kabout 7 GB12.8 GBYes
64 GBA 70B model, Q4_K_M42.8 GBabout 1.5 GB5 GB at 32K (8-bit)about 49 GB51.2 GBYes, 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.

Bandwidth ÷ bytes per token. Bandwidth figures from Apple. Upper bounds from arithmetic, not measurements.
Chip (memory bandwidth)Dense 27B at 4-bit: ceilingMoE 35B-A3B at 4-bit: ceiling
M5 (153 GB/s)about 9 tokens/sabout 45 tokens/s
M5 Pro (307 GB/s)about 19 tokens/sabout 90 tokens/s
M5 Max, 40-core GPU (614 GB/s)about 37 tokens/sabout 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

Sources: Apple's MacBook Pro (M5 Pro or M5 Max) specifications, Apple's MacBook Air specifications, TidBITS on the M6 Mac mini and M5 Ultra Mac Studio. Regional configurations differ; check Apple's store for yours.
Mac (2025–2026)Memory optionsBandwidthPrivate AI agent?
MacBook Air (M5)16, 24 or 32 GB153 GB/sWith 32 GB
MacBook Pro 14-inch (M5)16, 24 or 32 GB153 GB/sWith 32 GB
MacBook Pro (M5 Pro)24 to 64 GB307 GB/sWith 32 GB or more
MacBook Pro (M5 Max)36 to 128 GB460 or 614 GB/sYes, every configuration
Mac mini (M6)Up to 32 GBSee Apple's pageWith 32 GB
Mac mini (M5 Pro)Up to 64 GB307 GB/sWith 32 GB or more
Mac Studio (M5 Max)36 to 128 GB614 GB/sYes
Mac Studio (M5 Ultra)96 to 512 GBUp to 1.2 TB/sYes, 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:

From the engine's catalog shipped with Kaairos (Hermes Agent 0.23.1). The catalog is updated over time, so the pick can change.
Your Mac's memoryWhat Kaairos sets upDownload
8, 16 or 24 GBNo 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 GBQwen3.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 moreQwen3.8 Flash Next, a frontier-scale mixture-of-experts modelAbout 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.