Mac Unified Memory LLM Sizing Calculator
Size LLM weights and KV cache against macOS Metal wired memory limits and estimate MLX/llama.cpp decode speed on M-series Macs.
Input Parameters
Calculated Output
Primary Result
—
Adjust inputs to recalculate immediately.
Apple Silicon vs. Discrete GPU Local LLM Benchmarks
Mac Studios deliver unmatched capacity per watt for huge quantized/MoE models, while discrete NVIDIA GPUs lead on prompt prefill compute.
| Machine | Unified RAM | Default Metal Pool (75%) | Bandwidth | Est. Speed (38 GiB Model) |
|---|---|---|---|---|
| MacBook Pro M3 Max 64GB | 64 GiB | 48.0 GiB | 400 GB/s | ~7.6 tok/s |
| MacBook Pro M4 Max 128GB | 128 GiB | 96.0 GiB | 546 GB/s | ~10.3 tok/s |
| Mac Studio M2 Ultra 192GB | 192 GiB | 144.0 GiB | 800 GB/s | ~15.2 tok/s |
| 2x RTX 3090 (Reference) | 48 GiB VRAM | 43.2 GiB usable | 936 GB/s/card | ~26.6 tok/s (Tensor Split) |
Formula & Engineering Methodology
macOS enforces a default GPU wired allocation ceiling near 75% of physical unified RAM to protect kernel and desktop stability. Raising sysctl iogpu.wired_limit_mb unlocks up to ~85% for dedicated headless inference.
usable_gpu_gib = unified_ram_gib * (mac_wired_limit_pct / 100)
headroom_gib = usable_gpu_gib - (model_weights_gib + kv_cache_gib)
est_tps = (chip_bw_gbs * 0.72) / model_weights_gib
Variable Definitions
mac_wired_limit_pct: Share of unified memory addressable by Metal GPU buffers.0.72: Typical MLX / llama.cpp Metal bandwidth realization factor.
Practical Note: Large prompt ingestion (prefill TTFT on 32K+ tokens) is compute-bound and runs 3x–6x slower on Apple Silicon than on an RTX 4090/5090.
Frequently Asked Questions
Why does macOS cap Metal GPU allocation at ~75% of Unified RAM?
Because CPU and GPU share one physical LPDDR5 pool, macOS reserves ~25% for OS buffers and background apps unless overridden via iogpu.wired_limit_mb.
When does a Mac Studio beat an NVIDIA multi-GPU rig?
For 70B–200B+ models and large MoEs at low power draw (~60–120W) with zero rack noise, Apple Silicon wins on capacity-per-dollar and silence.
Is MLX faster than llama.cpp on Mac?
MLX typically matches or beats llama.cpp by 10–25% on Apple Silicon thanks to unified array semantics and optimized Metal kernels.