Skip to content
Black FridayBlack Friday: both apps $5.99, ends 1 Dec

Guide

Will this model fit on my Mac?

A local model fits when its weights plus its context fit in the memory the GPU may use, with room left for your other apps. Try the calculator, then read the arithmetic behind it, estimates for common sizes, and how to find your Mac's own limit.

By · Updated · 7 min read

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.

Worked out in your browser. Nothing is sent.
Estimates, not measurements. Weights use the rule of thumb below; each listed model's context cache comes from its config.json on Hugging Face, and a size you type borrows the nearest listed model's. We add 0.5 GB for working buffers and assume the GPU may use two thirds of memory up to 32 GB and three quarters from 36 GB, from Apple's two examples. Check your own Mac's limit with the MLX command below.

The arithmetic

What a model needs
needed  = weights + context cache + working buffers
fits if: needed < GPU limit, and needed < memory your open apps leave free
  • 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
Weights per billion parameters, by quantisation (rule of thumb)

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:

Your Mac's recommended GPU working set, from MLX
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

  • 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
Estimates, not measurements: Q4_K_M weights, an 8K context with a 16-bit cache, one request at a time, and a GPU share of two thirds to three quarters of memory

“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

  1. Use a smaller quantisation: Q4_K_M instead of Q8_0 roughly halves the weights, for a small loss in quality.
  2. Shorten the context: 8K instead of 32K frees several GB.
  3. Quantise the context cache, if your runtime supports it.
  4. Unload other models, and quit apps holding a lot of memory.
  5. 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.

FAQ

Questions

Something else? support@iknowmymac.com

Can a 16 GB Mac run a 14B model?

Only just, at Q4_K_M with a short context and few other apps open. The weights alone are about 9 GB, and the GPU's share of 16 GB is only part of it. A 7–8B model is the comfortable choice on 16 GB.

What size model can a 36 GB Mac run?

As an estimate, up to about 32B parameters at Q4_K_M with an 8K context, which needs around 22 GB, if the GPU's share is around 27 GB. A 70B model doesn't fit. Check your Mac's own limit to be sure.

Does quantisation change whether a model fits?

Yes, more than anything else. The same 14B model needs about 9 GB at Q4_K_M, 15 GB at Q8_0 and 28 GB at 16-bit.

Why does a model that fits still make my Mac slow?

Because the model and your apps share one pool of memory. If the model fits under the GPU limit but your apps need the rest, macOS compresses memory and swaps to disk. Watch memory pressure, not just the model's size.

Know why your Mac is slow.

macOS 15 Sequoia or later · Apple silicon. A 55.3 MB native app, notarized by Apple. No account, no analytics, no telemetry.

One-time purchase · every feature · 5-day refund