Apple Silicon Local LLM Inference Speed (tok/s) & KV Cache Calculator
Wondering how fast a 14B or 32B model runs at 32k context on your Mac—and whether FP16 KV cache will push you into swap? Select your chip, memory size, model, quantization, and context window to compute theoretical throughput, RAM headroom, and daily USD electricity cost in real time.
Related SiliconBench Calculators
Check static model fit & API break-even in the VRAM & Power Calculator, or model 3-year hardware vs. rental costs in the VPS vs. Mac mini TCO Calculator.
1. Configure Hardware, Model & Context
2. Speed, KV Cache Footprint & Power Verdict
M4 (16GB) + 14B Q4_K_M @ 16k: Usable (steady interactive)
Fits inside Metal working-set limit with 9.1 tok/s estimated speed (~45,864 generated tokens/day at 35% duty cycle across 4 active hours).
Measured Baseline vs. Bandwidth Estimate Notice
Measured M4 Mac mini (16GB) reference note: On our physical testbench (Metal limit 12.42 GiB), Gemma 2 27B (Q2_0 / ~9.5 GB) reached 16.21 tok/s (17.67 tok/s at 1K, 15.11 tok/s at 8K). Figures for other models/quants are bandwidth-based estimates.
3. Chip Speed & Context Scaling Charts
All 7 Apple Silicon Chips: Theoretical tok/s Comparison
Context Window (4k to 128k): KV Cache Growth vs. Throughput
4. Full Chip Matrix & Context Scaling Table
| Chip | Bandwidth | RAM (Metal Limit) | Required RAM | Speed | Status |
|---|---|---|---|---|---|
| M1 | 68.25 GB/s | 16 GB (12.16 GiB) | 12.2 GB | 2.2 tok/s | swap_risk |
| M2 | 100 GB/s | 16 GB (12.16 GiB) | 12.2 GB | 3.2 tok/s | swap_risk |
| M3 | 100 GB/s | 16 GB (12.16 GiB) | 12.2 GB | 3.3 tok/s | swap_risk |
| M4 | 120 GB/s | 16 GB (12.42 GiB) | 12.2 GB | 9.1 tok/s | usable |
| M4 Pro | 273 GB/s | 24 GB (18.24 GiB) | 12.2 GB | 21.3 tok/s | comfortable |
| M4 Max | 546 GB/s | 36 GB (27.36 GiB) | 12.2 GB | 42.6 tok/s | comfortable |
| M2 Ultra | 800 GB/s | 64 GB (48.64 GiB) | 12.2 GB | 59.3 tok/s | comfortable |
| Context | FP16 KV Cache | Total Required RAM | Theoretical tok/s | Status |
|---|---|---|---|---|
| 4k | 0.75 GB | 9.95 GB | 10.7 tok/s | usable |
| 16k | 3.00 GB | 12.20 GB | 9.1 tok/s | usable |
| 32k | 6.00 GB | 15.20 GB | 3.4 tok/s | swap_risk |
| 64k | 12.00 GB | 21.20 GB | 0.4 tok/s | oom |
| 128k | 24.00 GB | 33.20 GB | 0.3 tok/s | oom |
Note: KV cache estimates assume standard GQA (8 KV heads, 128 head_dim, FP16). Enabling Q8_0 KV cache quantization typically cuts KV footprint by ~40–50%.
6. Hardware Upgrade & Hybrid Offload Options
If your desired context window crosses the Metal working-set limit, either step up to 24GB–64GB unified memory, offload model libraries to USB4 NVMe storage, or pair local inference with an always-on VPS.
24/7 VPS Offload Candidates
Keep local Mac resources reserved for interactive inference while scheduled scrapers, webhook handlers, and API fallbacks run continuously on a VPS.
ABLENET VPS 公式サイトで無料お試しを見る →Keep local Mac resources reserved for interactive inference while scheduled scrapers, webhook handlers, and API fallbacks run continuously on a VPS.
XServer VPS 公式サイトでプランを見る →Keep local Mac resources reserved for interactive inference while scheduled scrapers, webhook handlers, and API fallbacks run continuously on a VPS.
さくらのVPS 公式サイトでプランを見る →Keep local Mac resources reserved for interactive inference while scheduled scrapers, webhook handlers, and API fallbacks run continuously on a VPS.
KAGOYA CLOUD VPS 公式サイトでプランを見る →Keep local Mac resources reserved for interactive inference while scheduled scrapers, webhook handlers, and API fallbacks run continuously on a VPS.
ConoHa VPS 公式サイトでプランを見る →Frequently Asked Questions
Q. Why does bandwidth dominate token generation throughput?
During autoregressive decoding, generating each token loads weights and KV cache tensors once per step, making memory bandwidth (GB/s) the primary hardware ceiling.
Q. How does the M4 16GB measured result compare to the curve?
Our physical M4 Mac mini 16GB logged 16.21 tok/s on 27B Q2_0 (17.67 tok/s at 1K context, 15.11 tok/s at 8K) within a 12.42 GiB Metal limit. Other chips are shown as clean bandwidth-based estimates.
Q. Does KV cache quantization change these numbers?
Yes. Enabling q8_0 KV cache in Ollama or llama.cpp roughly halves KV RAM consumption compared to FP16, helping 16GB–24GB Macs hold 32k contexts cleanly.
Next English Benchmarks to Read
Explore Calculators & Core Benchmark Guides
Check unified-memory headroom and USD power costs
Compare 3-year break-even points in USD
USB4 40Gbps NVMe storage, smart meter, sine-wave UPS
16.21 tok/s on 27B Q2_0 and 236 MB heap baseline
0 thermal throttling alerts across 1K/4K/8K prompts