Which AI Models Can You Run on Your Hardware?
A plain guide to running local coding models and image models on 8, 16 and 32 GB machines, including Macs with unified memory.
Josh Bradford4 min read
Whether a local AI model runs well on your machine mostly depends on whether it fits in memory. Use the sizing formula and hardware ranges below to pick a model.
These are ballpark numbers. Exact fit depends on the model, the runtime and how much context you use, so treat them as a starting point and test.
Estimating how much memory a model needs#
A model's memory use is mostly its parameter count times how many bits each parameter uses.
- Full precision (16-bit): about 2 GB per billion parameters.
- 8-bit: about 1 GB per billion.
- 4-bit (the most common way people run local models): roughly 0.5 to 0.6 GB per billion.
Then add room for context. Longer conversations and bigger files use more memory on top of the model itself.
So a 7 to 8B model at 4-bit is around 4 to 5 GB. A 14B model at 4-bit is around 8 to 9 GB. A 32B model at 4-bit is around 18 to 20 GB.
What "quantized" means#
Quantizing shrinks a model by storing its numbers with fewer bits. A 4-bit version is much smaller and only a little worse than the original for most tasks. When you download local models, you'll see names like Q4, Q5 or Q8. Lower number, smaller file, slightly lower quality. Q4 or Q5 is the usual sweet spot.
Coding assistants#
| Your GPU memory | Realistic local coding model |
|---|---|
| 8 GB | 7 to 8B models at 4-bit. Good for autocomplete and small edits. |
| 12 to 16 GB | 14B models at 4-bit, with room for decent context. |
| 24 GB | 32B models at 4-bit. This is where local coding starts to feel solid. |
If the model doesn't fully fit in VRAM, most runtimes will split it between GPU and system RAM. It works, but it gets a lot slower. With 32 GB RAM and 16 GB VRAM, you can run bigger models that spill into RAM. You'll be waiting on them more.
Local models are good for privacy, working offline and small edits. For changes across a bunch of files, the big hosted models are still noticeably better, so a lot of devs use local models for quick stuff and hosted ones for bigger refactors.
Image models#
| Your GPU memory | What works |
|---|---|
| 6 to 8 GB | Older, smaller models comfortably. Newer, larger models need memory-saving options or quantized versions, and run slower. |
| 12 GB | Most current image models with some optimization. |
| 16 GB and up | Current models comfortably, plus room for reference and pose tools at the same time. |
On 8 GB, look for "low VRAM" or "medvram" settings in your image tool, use smaller batch sizes and generate at the model's native resolution, then upscale separately.
Macs with unified memory#
Macs share one pool of memory between the CPU and GPU, which is great for local AI because the GPU can use most of it.
- A Mac with 16 GB can run 7 to 8B models comfortably and 14B models at 4-bit, as long as you're not running much else.
- macOS keeps some memory for the system, so you can't use all 16 GB for the model.
- More memory matters more than a faster chip for this. A 32 GB Mac can run noticeably bigger models than a faster 16 GB one.
Which runtime to use#
For running local language models, the common beginner-friendly options are tools like Ollama and LM Studio. They download models for you and pick sensible settings. llama.cpp is what a lot of these run on under the hood if you want more control. On Macs, look for builds that use Apple's MLX or Metal acceleration.
For images, ComfyUI and similar interfaces are the usual picks.
Quick checklist#
- Check your GPU memory (or total memory on a Mac).
- Pick a model whose 4-bit size is comfortably under that number.
- Leave a couple of GB free for context.
- Test with a real task from your project, not a demo prompt.
If it's too slow, go one size down. A smaller model that answers fast is more useful than a bigger one you're waiting on.
Comments
Loading comments