The short answer
Add the model's weights to its context cache and compare the total with the memory your Mac's GPU may use. Weights: about 0.6 GB per billion parameters at Q4_K_M, 1.1 GB at Q8_0, 2 GB at 16-bit, or simply the download size. Context: about 1 GiB per 8K tokens for an 8B Llama model at 16-bit, more for bigger models, and check which context length your runtime will actually use. The GPU's share is a large part of the Mac's memory but not all of it; in Apple's examples, 21 GB of 32 GB and 48 GB of 64 GB. Then subtract what your open apps hold. If the model only fits with everything else closed, pick a smaller quantisation or a shorter context.
On this page
Will it fit? Calculator
Fits. Needs about 11 GB of the 16 GB it can have.
- Weights
- 8.9 GB
- Context cache
- 1.3 GB
- Working buffers
- 0.5 GB
- GPU limit (assumed)
- 16 GB
- Left after other apps
- 16 GB
- Limited by
- The GPU limit
The largest model in this list that fits with these settings: Qwen3 14B.
The arithmetic
needed = weights + context cache + working buffers
fits if: needed < GPU limit, and needed < memory your open apps leave free| Quantisation | GB per billion parameters | 14B model |
|---|---|---|
| Q4_K_M | about 0.6 | about 9 GB |
| Q5_K_M | about 0.7 | about 10.5 GB |
| Q8_0 | about 1.1 | about 15 GB |
| F16 / BF16 | 2 | 28 GB |
Q4_K_M
- GB per billion parameters
- about 0.6
- 14B model
- about 9 GB
Q5_K_M
- GB per billion parameters
- about 0.7
- 14B model
- about 10.5 GB
Q8_0
- GB per billion parameters
- about 1.1
- 14B model
- about 15 GB
F16 / BF16
- GB per billion parameters
- 2
- 14B model
- 28 GB
The download size is the most reliable figure for the weights, because it's the weights. A GGUF file of 9.0 GB needs about 9 GB of memory before any context.
The context is the part people forget
Runtimes reserve memory for the whole context length when they load a model. Llama 3.1 8B needs 128 KiB per token at 16-bit precision: 1 GiB at 8K, 4 GiB at 32K, 16 GiB at 128K. Bigger models with more layers need more per token. A model that fits easily at 8K can stop fitting at 32K.
Check which length your runtime will use, not only the one you have in mind. Ollama 0.15.5 and later choose a default from the GPU memory available: 4K tokens under 24 GiB, 32K from 24 GiB and 256K from 48 GiB, never more than the model supports, and stepped down if it doesn't fit. A quantised cache, such as Ollama's OLLAMA_KV_CACHE_TYPE=q8_0, roughly halves the cache where flash attention is on. See how much memory Ollama uses for the settings.
Find your Mac's GPU limit
macOS lets the GPU use a large share of unified memory, but not all of it. Metal reports the figure as the device's recommended working-set size, and runtimes such as llama.cpp, Ollama and MLX plan around it. Apple doesn't publish a fixed fraction. In one of its Metal talks, an M1 Pro or M1 Max with 32 GB can give the GPU 21 GB, about two thirds, and one with 64 GB can give it 48 GB, three quarters.
There's no built-in command that prints it. If you have MLX installed (pip install mlx), it reports the figure:
python3 -c "import mlx.core as mx; info = mx.device_info() if hasattr(mx, 'device_info') else mx.metal.device_info(); print(info['max_recommended_working_set_size'] / 1e9, 'GB')"Common models at Q4_K_M and 8K context
| Model | Needs, roughly | 16 GB Mac | 24 GB Mac | 36 GB Mac | 64 GB Mac |
|---|---|---|---|---|---|
| 7–8B | 6 GB | Fits | Fits | Fits | Fits |
| 14B | 10–11 GB | At the limit: may not fit | Fits | Fits | Fits |
| 32B | 22 GB | No | No | Fits | Fits |
| 70B | 46 GB | No | No | No | Tight: may not fit |
7–8B
- Needs, roughly
- 6 GB
- 16 GB Mac
- Fits
- 24 GB Mac
- Fits
- 36 GB Mac
- Fits
- 64 GB Mac
- Fits
14B
- Needs, roughly
- 10–11 GB
- 16 GB Mac
- At the limit: may not fit
- 24 GB Mac
- Fits
- 36 GB Mac
- Fits
- 64 GB Mac
- Fits
32B
- Needs, roughly
- 22 GB
- 16 GB Mac
- No
- 24 GB Mac
- No
- 36 GB Mac
- Fits
- 64 GB Mac
- Fits
70B
- Needs, roughly
- 46 GB
- 16 GB Mac
- No
- 24 GB Mac
- No
- 36 GB Mac
- No
- 64 GB Mac
- Tight: may not fit
“Fits” assumes your other apps leave the memory free. A browser with many tabs, Docker and an iOS simulator can hold 10 GB or more between them, and that comes out of the same pool. Check memory pressure after the model loads: if it turns yellow or red, it didn't really fit. With a longer context, add the cache for it.
When it doesn't fit
- Use a smaller quantisation: Q4_K_M instead of Q8_0 roughly halves the weights, for a small loss in quality.
- Shorten the context: 8K instead of 32K frees several GB.
- Quantise the context cache, if your runtime supports it.
- Unload other models, and quit apps holding a lot of memory.
- Pick the next size down: a 14B model at Q8 is often better than a 32B model that only runs half on the CPU.
The faster way: “Will it fit?” in iKnowMyMac
In iKnowMyMac's AI models section, “Will it fit?” takes an installed model or a size you type, such as 14B Q4. It reads the model's own metadata where the file is on your Mac, adds the context you choose, and compares the total with free memory and your Mac's GPU memory limit. It works offline.
Sources
- 1.recommendedMaxWorkingSetSize (Apple Developer, Metal)
- 2.Metal compute on MacBook Pro (Apple Developer tech talk)
- 3.Llama 3.1 model parameters (Meta, llama-models on GitHub)
- 4.llama.cpp (GitHub)
- 5.MLX (GitHub)
- 6.Ollama context length documentation at v0.40.1 (GitHub)
- 7.Model configurations the calculator reads: Qwen3, Qwen2.5 Coder, Llama 3.1 and 3.3, Mistral Small 3.2 (config.json on Hugging Face)