DESTINY
ToolsT-07 · Roofline & KV-Cache Sizing

Apple Silicon UMA & Local GGUF KV-Cache Calculator

Size GGUF weight memory, KV-cache growth by context length, memory-bandwidth Roofline decode tok/s (anchored to our audited 83.95 tok/s LFM2-8B-A1B-Q8_0 M4 Pro measurement), and 12/36-month local-vs-API token economics directly in your browser.

Total Memory Fit
—
Est. Decode Speed
—
Est. Warm TTFT
—
12-Mo Cloud vs Local
—
Subsystem / HorizonMeasured / Modeled ValueEngineering Note

KV-Cache Memory & Roofline Equations

MKV= 2⋅nlayers⋅nkv⋅dhead⋅L⋅bq

Compare with our raw audited M4 Pro measurements on /benchmarks and deep math in Apple Silicon Unified Memory & KV-Cache Math.

[FAQ // VERIFIED SPECIFICATION]

GGUF & Unified Memory Sizing FAQ

03 ENTRIES · VISIBLE DOM PARITY
How much Unified Memory is needed to run an 8B–35B GGUF model with long context?
Total GPU-resident memory equals Model Weight Size + KV Cache Memory (proportional to context tokens × layers × KV heads × quantization bytes) + runtime activation scratch (~0.8–1.5 GiB). On a 24 GB Apple M4 Pro (~18 GiB practical Metal pool), LFM2-8B-A1B-Q8_0 (8.26 GiB) fits comfortably with long context and sustains 83.95 tok/s Pure Metal decode.
Why does Apple Silicon Unified Memory eliminate PCIe copy stalls?
Because CPU and GPU share the same LPDDR5X physical memory pools, zero-copy mmap() maps GGUF weights directly into unified virtual address space in ~3.946 ms without copying multi-gigabyte tensors across a 16–32 GB/s PCIe bus.
Are the throughput outputs measured or modeled?
Apple M4 Pro baseline entries (83.95 tok/s on LFM2-8B-A1B-Q8_0 and 240.5 tok/s on 494M qwen_draft.gguf) are empirically measured; other hardware tiers and context lengths are Roofline bandwidth projections provided AS IS for hardware sizing.