Apple Silicon LLM Memory Bandwidth & Sizing Dataset An engineer published a free open dataset and Python CLI kit for sizing local LLM inference on Apple Silicon, covering 17 verified Mac SKUs and 14 open-weight model profiles. The work documents four common sizing traps, including that binned M3 Pro and M4 Max chips have narrower memory buses than their full-die counterparts, that Q4_K_M GGUF weights actually run about 4.85 bits per weight rather than 4.0, and that Metal's wired-memory limit caps usable GPU RAM at roughly 67% on machines with 24 GB or less and 75% on 32 GB and above. It also provides a roofline function that estimates token throughput from memory bandwidth, weights and KV-cache size, with typical realized performance at 65%–80% of the theoretical ceiling. Engineers buying a MacBook Pro, Mac mini, or Mac Studio for local LLM inference routinely get burned by misleading rules of thumb. "Just divide parameters by two for 4-bit" or "an M3 Pro is always faster than an M2 Pro" sounds convenient—until a 32B model swaps to SSD or decodes 35% slower than expected. Four hardware and math traps explain almost every sizing surprise on Apple Silicon: 150 GB/s , making single-stream token decode slower than the older M2 Pro 200 GB/s . Similarly, binned M3 Max 14c/30c GPU runs at 300 GB/s 384-bit while the full M3 Max 16c/40c GPU runs at 400 GB/s 512-bit , and binned M4 Max 14c/32c GPU runs at 410 GB/s vs 546 GB/s on the full 16c/40c die. 4.0 bpw underestimates real GGUF weights by ~20% llama.cpp / MLX GGUF quantizations, embedding layers, output projection heads, and quantization block scales push effective Q4 K M storage closer to 4.85 bpw not Qwen2.5-32B , that difference is 3.4 GB of unexpected RAM. 64 GB Mac does not give Metal 67% on <= 24 GB machines and 75% on = 32 GB machines 48 GB usable on a sysctl iogpu.wired limit mb . Qwen2.5-7B uses 4 KV heads, Phi-4-14B uses 10 KV heads, and Gemma-2-9B uses head dim=256 with alternating 50% global / 50% sliding-window-4096 attention layers. Ignoring hybrid sliding-window attention overstates Gemma-2 KV memory by up to 2× at long context. Autoregressive token generation batch size 1 is strictly memory-bandwidth bound : for every single token emitted, the GPU streams all active model weights plus the active KV cache across unified memory. You can compute an exact, zero-guesswork roofline in pure Python: QUANT BPW = {"Q4 K M": 4.85, "Q5 K M": 5.70, "Q6 K": 6.56, "Q8 0": 8.50, "FP16": 16.0} def roofline estimate bandwidth gbs: float, params b: float, layers: int, kv heads: int, head dim: int, ctx: int, quant: str = "Q4 K M", kv bytes: float = 2.0, hybrid swa 4096: bool = False - dict: weights gb = params b QUANT BPW quant / 8.0 if hybrid swa 4096: g layers = layers // 2 s layers = layers - g layers kv gb = 2 kv heads head dim kv bytes g layers ctx + s layers min ctx, 4096 / 1e9 else: kv gb = 2 layers kv heads head dim kv bytes ctx / 1e9 active gb = weights gb + kv gb ceiling = bandwidth gbs / active gb return { "weights gb": round weights gb, 2 , "kv cache gb": round kv gb, 2 , "roofline tok s": round ceiling, 1 , "typical range tok s": round ceiling 0.65, 1 , round ceiling 0.80, 1 , } Before downloading a 40 GB GGUF file, verify both OS headroom and the Metal wired-memory ceiling: php def usable gpu gb ram gb: int, os reserve gb: float = 4.0 - float: wired ratio = 0.67 if ram gb <= 24 else 0.75 return max 0.0, min ram gb - os reserve gb, ram gb wired ratio GB/s 10^9 B/s . Computing weights gb and kv cache gb in matching decimal GB 10^9 B keeps the dimensional ratio GB/s / GB = tok/s exact. 65%–80% of theoretical memory bandwidth during single-stream decode due to dequantization compute, attention overhead, and cache misses. Always plan around the realized band, not the 100% ceiling. M4 Max 14c/32c is 36 GB only; M3 Ultra ships in 96 / 256 / 512 GB ; there is no M4 Ultra . Use the Interactive Apple Silicon LLM Sizing Calculator to explore all 17 verified Apple Silicon SKUs and 14 published open-weight LLM profiles , toggle FP16 vs Q8 0 KV-cache precision, and inspect FITS / TIGHT / OOM status instantly in your browser. You can download the complete $0.00 Free Open Dataset & Python CLI Kit Gumroad, GitHub Release, and Kaggle Datasets , including identical canonical apple silicon specs.csv / .json and llm arch profiles.csv / .json files, llm sizing cli.py estimate , matrix --format md|csv|json , validate , METHODOLOGY.md , and test llm sizing.py .