Skip to content

Free tool

LLM memory calculator for Mac

Pick a model, a quantization and a context length. See how much unified memory it needs and which of our Macs can run it. No signup, nothing leaves your browser.

Your model

Quantization

Q4_K_M, MLX 4-bit, AWQ

Context length
Concurrent sequences

Parallel requests that each keep their own context.

Estimated memory

Total: 42.0 GB. Smallest configuration that fits: 64 GB.

Weights
37.0 GB
KV cache
2.7 GB
Runtime and buffers
2.2 GB

Which Mac fits

  • 24 GB M6

    Does not fit

    GPU can use about 16 GB by default

    More than the default GPU limit. Choose a smaller model or lower quantization, or a bigger Mac.

    €129/mo excl. VATor €10 per 24 hours€156.09 incl. 21% VAT per month for consumers

  • 64 GB M5 Pro

    Tight

    GPU can use about 48 GB by default

    Fits within the default GPU limit with little headroom. Expect to lower the context or quantization.

    €219/mo excl. VATor €19 per 24 hours€264.99 incl. 21% VAT per month for consumers

  • 36 GB M5 Max

    Does not fit

    GPU can use about 24 GB by default

    More than the default GPU limit. Choose a smaller model or lower quantization, or a bigger Mac.

    €349/mo excl. VATor €29 per 24 hours€422.29 incl. 21% VAT per month for consumers

  • 128 GB M5 Max

    Fits

    GPU can use about 96 GB by default

    Comfortable room to spare.

    €649/mo excl. VATor €49 per 24 hours€785.29 incl. 21% VAT per month for consumers

  • 256 GB M5 Ultra

    Fits

    GPU can use about 192 GB by default

    Comfortable room to spare.

    €1,149/mo excl. VATor €89 per 24 hours€1,390.29 incl. 21% VAT per month for consumers

How we estimate

These are estimates, not measurements. Real usage varies with the runtime (MLX, llama.cpp, LM Studio, Ollama), the exact quantization scheme and the model build.

  • Weights

    parameters x bits / 8 x quantization factor

    The factor is about 1.05 for 4 to 6-bit group quantization, which stores scales next to the weights, and 1.0 for 8 and 16-bit.

  • KV cache

    2 x layers x KV heads x head dim x context x sequences x 2 bytes

    Keys and values for every token, stored as 16-bit numbers. Layers that use sliding-window attention only keep a short window, and DeepSeek's latent attention caches a compressed vector, so those presets use their own figures. A quantized KV cache would use less.

  • Runtime and buffers

    1.5 GB + 2% of the weights

    Framework, Metal buffers, tokenizer and scratch space.

The GPU limit

By default macOS lets the GPU use most, not all, of unified memory: roughly two thirds on machines up to 36 GB and about three quarters above that. Apple does not publish exact figures. On a Mac you rent from us you are the administrator and can raise the limit with sudo sysctl iogpu.wired_limit_mb, at the cost of less headroom for macOS. We mark a configuration Fits when the total stays under 85% of the default limit, Tight when it stays under the limit, and Does not fit above it. On macOS 27.2, a 256 GB Mac Studio reported a default GPU limit of 240 GB (Bohemian Silicon, 12 Nov 2026), so this tool is conservative at 256 GB.

Frequently asked questions

Why can the GPU not use all of the memory?

macOS keeps part of unified memory for the system and the CPU. By default it lets the GPU wire most, not all, of it. On a 128 GB Mac that is roughly three quarters. The limit can be raised with the iogpu.wired_limit_mb sysctl, but if you leave too little for macOS the machine can become unstable.

Do Mixture-of-experts models need less memory?

No. Every expert has to be loaded, so a 235B MoE model needs memory for 235B parameters. Only a few experts run for each token, which makes generation faster than a dense model of the same size. Memory and speed are separate questions.

What do I lose with 4-bit quantization?

Some quality. Well-made 4-bit builds usually stay close to the original on everyday tasks, but small differences show up in long reasoning, code and non-English text. 6-bit and 8-bit are safer when you have the memory; going below 4-bit loses noticeably more. Test your own prompts.

Why does the context length matter so much?

The KV cache grows linearly with the number of tokens and with each concurrent sequence. At 8k tokens it is small for most models. At 128k tokens, or with several parallel requests, it can add tens of gigabytes.

Is memory the only limit?

No. Memory decides whether a model loads; memory bandwidth mostly decides how fast it generates. A model that fits tightly may still be slow, so leave headroom and check the speed of your runtime.