← Your AI Blog

Running AI locally on Apple silicon: how much memory do you need?

By DeskHead Inc., the makers of Your AI · · 6 min read

If you want to run AI on your own Mac, one spec matters more than any other: memory (RAM). Not the chip generation, not the disk, not the number of cores. This article explains why, does the basic math in plain terms, and says what Your AI runs on Macs with 16, 24 and 32 GB or more.

Why memory is the bottleneck

A language model is, at heart, a huge list of numbers called parameters. To write each word of an answer, the model has to read through a large share of those numbers. If they don't all fit in memory, the computer has to keep fetching them from the much slower disk, and answers slow to a crawl.

Researchers at Apple put the problem clearly in a 2023 paper about running models on devices:

"Currently, the standard approach is to load the entire model into DRAM (Dynamic Random Access Memory) for inference (Rajbhandari et al., 2021; Aminabadi et al., 2022). However, this severely limits the maximum model size that can be run."

Keivan Alizadeh, Iman Mirzadeh, Dmitry Belenko and colleagues (Apple), LLM in a flash: Efficient Large Language Model Inference with Limited Memory, arXiv:2312.11514

They also give a concrete example of how fast the numbers add up:

"For example, a 7 billion parameter model requires over 14GB of memory just to load the parameters in half-precision floating point format, exceeding the capabilities of most personal devices such as smartphones."

arXiv:2312.11514

That paper is about clever ways to run models bigger than memory by streaming parts of them from flash storage. It's promising research. But for everyday use today, the practical rule is simple: the model has to fit in memory, with room to spare for macOS and your other apps.

Why Apple silicon is good at this

On most PCs, the graphics card has its own separate memory, often 8 to 16 GB, and that is the limit for running a model on the GPU. Apple silicon Macs (M1 and newer) use unified memory: the CPU and GPU share one pool. A Mac with 32 GB of memory can give a large part of it to the model, and the GPU can work on it directly.

That's why a normal MacBook Pro or Mac mini can run models that would need an expensive graphics card on a PC. It is also why the amount of memory you chose when you bought your Mac matters so much. You can't add more later.

The basic math

You can estimate a model's size with one multiplication:

parameters × bits per parameter ÷ 8 = bytes

At full "half precision" (16 bits), each parameter takes 2 bytes, which is how a 7-billion-parameter model ends up over 14 GB, as the Apple paper says. That would put a 27-billion-parameter model at over 50 GB, which no laptop is going to hold comfortably.

The fix is quantization: storing each number with fewer bits. At about 4 bits per parameter, the same model is roughly a quarter of the size. The question is how much quality you lose. A University of Washington study tested this across many model families and sizes:

"Our main finding is that 4-bit parameters yield optimal performance for a fixed number of model bits across all model scales and model families tested."

Tim Dettmers and Luke Zettlemoyer, The case for 4-bit precision: k-bit Inference Scaling Laws, arXiv:2212.09720

The same paper frames the trade-off with a memorable example:

"For example, a 30B 8-bit model and a 60B 4-bit model have the same number of bits but may have very different zero-shot accuracies."

arXiv:2212.09720

In their results, the bigger model at 4 bits generally came out ahead. That's the logic behind most local AI today: run a larger model, compressed to around 4 bits, rather than a small model at full precision.

Memory isn't only the model file

Two other things take memory while a model runs:

So a model file of 18 GB ends up using about 20 GB while it runs, and you want some headroom beyond that.

What Your AI runs on your Mac

Your AI checks your Mac's memory on first launch and picks the best model that fits. These numbers come from the app itself:

Your Mac's memory Model Download Memory in use
16 to 24 GB Swift 1.5 27B (compact, about 2-bit) 8.9 GB about 11 GB
24 to 32 GB Swift 1.5 27B (4-bit) 18 GB about 20 GB
32 GB or more Qwen 3.6 35B-A3B (mixture of experts) 17.7 GB about 20 GB

What to expect from each:

16 GB. Your AI works, using a heavily compressed version of Swift 1.5 27B. It's good for chat, writing and summaries. It is a little less reliable with tools and multi-step tasks than the 4-bit version. Close heavy apps for the best speed.

24 GB. This is where local AI gets comfortable. The 4-bit Swift 1.5 27B is a strong all-rounder that handles tools well. Answers are slower than the 32 GB option, because every parameter works on every word.

32 GB or more. Your AI runs Qwen 3.6 35B-A3B. It has about 35 billion parameters but uses only about 3 billion for each word, so it answers several times faster than the dense 27B model. If you're buying a Mac partly for local AI, 32 GB is the sweet spot for Your AI today.

Below 16 GB, current models that are good enough for real work don't fit well, so Your AI requires at least 16 GB. Disk space matters too: keep about 20 GB free for the model download and room to spare.

If your Mac is short on memory

Our take

We think the Mac you already own should be enough to have a private AI. Apple's unified memory and good 4-bit models make that true for a lot of people today, and research like Apple's own flash-memory work points to even more running on device in the future. Our job is to pick the right model for your machine and be honest about what it can do.

Try it

Your AI is a free download for Macs with Apple silicon and 16 GB of memory or more. It picks the right model automatically. Download Your AI or see pricing.

Join the Your AI waiting list

Get an email when new versions, features and articles are ready. No spam, unsubscribe anytime.

We only use your email to send Your AI news. See our privacy policy.