induwara.lk
induwara.lkAI · Local models

Mac / Apple Silicon LLM Calculator — Can I Run This Model?

Tells you whether an open LLM will actually run on your Apple Silicon Mac. It models the macOS unified-memory GPU cap — the part that trips people up — along with the model's quantized weight size, KV cache, and runtime overhead, then gives a clear verdict and the biggest model your Mac can handle.

By Induwara AshinsanaUpdated Jul 9, 2026
Can I run this model?
Unified-memory aware
67% · 10.7 GB usable
Runs comfortablyLlama 3.1 8B · Q4_K_M · 8,192 ctx
Weights 4.5 GBKV cache 1.0 GBOverhead 1.0 GBUsable cap 10.7 GB
Required
6.5 GB
Usable GPU memory
10.7 GB
Free after load
4.2 GB
for other apps + longer context
Est. speed
10–17 tok/s
bandwidth-bound estimate (M2, 100 GB/s)
Memory componentSize
Model weights (Q4_K_M, 4.83 bpw)4.5 GB
KV cache (fp16, 8,192 ctx)1.0 GB
Runtime overhead1.0 GB
Total required6.5 GB

Best quant that fits this Mac at these settings: Q8_0 near-lossless; indistinguishable from f16.

Biggest model this Mac can run

QuantEffective bpwLargest that fits
F16163B
Q8_08.58B
Q6_K6.568B
Q5_K_M5.678B
Q4_K_M4.838B
Q4_04.514B
Q3_K_M3.914B
Q2_K3.3514B

Sources: Apple Mac specs (chip memory + bandwidth), Apple Metal recommendedMaxWorkingSetSize, Ollama macOS GPU-memory FAQ, and llama.cpp GGUF quant sizes. Speed is a bandwidth-bound estimate, not a benchmark. Full citations are listed below the calculator.

How it works

On an Apple Silicon Mac there is no separate graphics card. The CPU, GPU, and Neural Engine share one pool of unified memory. That is what lets a Mac hold large models cheaply — but it also means the GPU cannot use all of the RAM, because macOS keeps a slice for the operating system and everything else you have open. Apple exposes this budget to apps as Metal's recommendedMaxWorkingSetSize. Runtimes like Ollama translate it to a rule of thumb: give the GPU about two-thirds (≈67%) of unified memory on machines up to 36 GB, and about three-quarters (≈75%) above that.

The calculator estimates four numbers and compares them:

  1. Weights. Model size in bytes is params × bpw ÷ 8, where bpw is the effective bits-per-weight of the GGUF quant. We use measured real-file values (Q4_K_M ≈ 4.83, Q8_0 ≈ 8.5, Q2_K ≈ 3.35), which run a little above the nominal block sizes because embedding and output tensors stay at higher precision — so estimates match the file sizes Ollama and Hugging Face publish.
  2. KV cache. Attention stores a key and value for every token at every layer: 2 × layers × kv_heads × head_dim × context × 2 bytes. Modern models use grouped-query attention, which keeps far fewer KV heads and makes this term small until the context gets long.
  3. Overhead. A fixed ≈1 GB for the compute graph and runtime buffers.
  4. Usable GPU memory. unified_memory × cap%. The verdict compares required (weights + KV + overhead) against this: at or below 90% of usable it “Runs comfortably”, up to 100% it “Runs, but tight”, and above it “Won't fit”.

The speed figure is a memory-bandwidth roofline: decoding a token reads every weight once, so tokens per second is roughly bandwidth ÷ model_size. Real throughput lands lower, so the tool shows a band and labels it an estimate. You can raise the GPU cap yourself on macOS Sonoma or later with sudo sysctl iogpu.wired_limit_mb, which the tool pre-fills when a model is tight or over budget.

Worked examples

Runs comfortably

MacBook Air M2 · 16 GB · Llama 3.1 8B · Q4_K_M · 8K context

  1. Weights: 8.03B × 4.83 ÷ 8 = 4.85 GB ÷ 2³⁰ = 4.52 GB
  2. KV cache: 2 × 32 × 8 × 128 × 8192 × 2 B = 1.00 GB
  3. Overhead: 1.00 GB → Required = 6.52 GB
  4. Usable: 16 × 67% = 10.72 GB (macOS default cap)
  5. 6.52 ≤ 0.9 × 10.72 (9.65) → Runs comfortably, ~4.2 GB free

Won't fit

Mac Studio M2 Max · 32 GB · Llama 3.3 70B · Q4_K_M · 8K context

  1. Weights: 70.6B × 4.83 ÷ 8 = 42.6 GB ÷ 2³⁰ = 39.7 GB
  2. KV cache: 2 × 80 × 8 × 128 × 8192 × 2 B = 2.5 GB
  3. Overhead: 1.0 GB → Required = 43.2 GB
  4. Usable: 32 × 67% = 21.44 GB
  5. 43.2 > 21.44 → Won't fit; even Q2_K (27.5 GB weights) exceeds it
  6. Fix: choose a 64 GB Mac, or drop to a 32B model at Q4

Runs, but tight

Mac mini M4 · 32 GB · Qwen2.5 32B · Q4_K_M · 4K context

  1. Weights: 32.8B × 4.83 ÷ 8 = 19.8 GB ÷ 2³⁰ = 18.44 GB
  2. KV cache: 2 × 64 × 8 × 128 × 4096 × 2 B = 1.00 GB
  3. Overhead: 1.00 GB → Required = 20.44 GB
  4. Usable: 32 × 67% = 21.44 GB
  5. 0.9 × 21.44 (19.30) < 20.44 ≤ 21.44 → Runs, but tight (~1 GB free)

Frequently asked questions

Sources & references

Chip specs, bandwidth figures, quant sizes, and the macOS GPU-cap heuristic were last cross-checked on 2026-07-09. Weight estimates reconcile to published GGUF download sizes within about 8%. Speed is a bandwidth-bound estimate, not a benchmark.

Related tools

Rate this tool
Be the first to rate

Comments & feedback

Spotted a bug or want an improvement? Tell us — our team reviews every comment, and good ideas get built. Comments are public and anonymous.

Found a bug, edge case, or want another chip or model added?

Email me at [email protected] — most fixes ship within 24 hours.