Disclosure: Some outbound hardware and infrastructure links are affiliate links routed through bot-protected /go/ redirects (Editorial & Measurement Policy).

Interactive Tool #3 M1 – M2 Ultra JP Edition (JPY): 日本語版シミュレーター →

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

4 h/day

2. Speed, KV Cache Footprint & Power Verdict

Theoretical Speed 9.1 tok/s Bandwidth 120 GB/s (measured ref chip)
Memory incl. KV Cache 12.2 GB Weights 8.4G + KV 3G + Overhead 0.8G (Metal limit 12.42 GiB)
Usability Tier Usable (steady interactive) Headroom before Metal limit: +0.2 GiB
Daily Electricity Cost $0.04 / day 0.22 kWh/day (25W load, $1.12/mo)

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

Selected Chip Other Chips (theoretical) Metal Limit / RAM Exceeded

Context Window (4k to 128k): KV Cache Growth vs. Throughput

Total RAM incl. KV (GB) Theoretical tok/s Metal Limit (GiB)

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

ABLENET VPS(稼働実績99.99%以上・最大10日間無料お試し) VPS Partner

Keep local Mac resources reserved for interactive inference while scheduled scrapers, webhook handlers, and API fallbacks run continuously on a VPS.

ABLENET VPS 公式サイトで無料お試しを見る →
XServer VPS(通常版:月額1,265円〜・2GB/3コア・NVMe SSD) VPS Partner

Keep local Mac resources reserved for interactive inference while scheduled scrapers, webhook handlers, and API fallbacks run continuously on a VPS.

XServer VPS 公式サイトでプランを見る →
さくらのVPS(国内データセンター・常時稼働基盤) VPS Partner

Keep local Mac resources reserved for interactive inference while scheduled scrapers, webhook handlers, and API fallbacks run continuously on a VPS.

さくらのVPS 公式サイトでプランを見る →
KAGOYA CLOUD VPS(日額課金・初期費用無料・国内データセンター) VPS Partner

Keep local Mac resources reserved for interactive inference while scheduled scrapers, webhook handlers, and API fallbacks run continuously on a VPS.

KAGOYA CLOUD VPS 公式サイトでプランを見る →
ConoHa VPS(外部公開・セルフホスト基盤) Comparison

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

  1. Mac mini (M4 / M6) 24/7 Hardware Gear Guide: USB4 SSDs, Watt Meter & Sine-Wave UPS
  2. M4 Mac mini 16GB Hybrid LLM Production Guide
  3. Fixing Metal OOM & Swap Thrashing on Apple Silicon
  4. USB4 NVMe External Storage Benchmark for LLM Weights
SiliconBench Topic Cluster

Explore Calculators & Core Benchmark Guides

Apple Silicon LLM RAM & Power Calculator →

Check unified-memory headroom and USD power costs

VPS vs Local Mac mini TCO Calculator →

Compare 3-year break-even points in USD

Mac mini 24/7 Hardware & UPS Gear Guide →

USB4 40Gbps NVMe storage, smart meter, sine-wave UPS

M4 Mac mini 16GB Hybrid LLM Guide →

16.21 tok/s on 27B Q2_0 and 236 MB heap baseline

150-Round Thermal Endurance Benchmark →

0 thermal throttling alerts across 1K/4K/8K prompts