2026-11-01 · Local AI · Take

Running Local LLMs on a 16GB MacBook Air: Do the Memory Math First

My main machine is a MacBook Air M5 with 16GB of unified memory and a 512GB SSD. When I set out to run LLMs locally as a writing aid, the first question wasn't “which model is strongest” — it was “what size actually fits”. This piece records the math I did and the conclusions I landed on.

Unified memory is one shared pool

On Apple Silicon, memory is unified: the CPU, GPU, the OS, your apps and the model weights all compete for the same 16GB. Whether a model “fits” is not just its file size — add up:

  • The OS and resident apps: roughly 4–6GB
  • Model weights: the size of the quantized file
  • The KV cache: grows with context length; a 32K context is another sizable chunk

So “16GB of RAM can run a 16GB model” is a fallacy — sized that way, nothing is left after loading.

The size ladder, using Qwen3.5 as the example

  • This generation has no 14B — sizes jump straight from 9B to 27B, with nothing in between
  • The 9B at Q4_K_M quantization is about 5–6GB on disk; with the OS and cache on top, it runs comfortably in 16GB — the sweet spot for this machine
  • The 27B at Q4_K_M is about 16GB for the file alone — over budget before the OS even loads. Squeezing it in at Q3 quantization (~13GB) works on paper, at the cost of a small context window and noticeably slower generation

The conclusion is direct: on 16GB, stay in the 7B–9B class. If you want the 27B-class “write the whole chapter in one shot” experience, the entry ticket is 32GB+ of memory, or the cloud.

What model size actually buys you

In practice, a bigger model mainly improves control: characters and settings drift less, long passages repeat less, instructions are followed more closely. It does not automatically improve style — style comes from the examples in your prompt and from tuning afterwards. So the picking order should be: first choose the largest size that fits with good control, then solve style separately with prompts and material, instead of blindly chasing parameter count.

A practical workflow: generate in segments

At the 9B level, asking for several thousand words at once invites repetition and drift. My approach is to split the work: generate one 250–800-word segment at a time, entering right at the action point, then stitch and edit by hand. It's slower per step, but every segment's quality is controllable — and overall it beats “generate the whole chapter, then rewrite most of it”. The same lesson applies to big cloud models, only less visibly.

Summary

  • 16GB unified memory: pick 7B–9B at Q4/Q8 quantization, and leave room for the OS and the KV cache
  • A 27B isn't “a bit slower” — it doesn't fit. Check the file size before debating performance
  • Size buys control; style is a separate problem solved with examples and tuning
  • For long pieces, segmented generation is the small model's most practical mode