// On-Device Inference, llama.cpp & Unified Memory

Local GGUF, Ollama & Apple Silicon Bandwidth Sizer

Model exact llama.cpp K-quant file sizes, quantized KV-cache footprints, macOS wired-memory ceilings, and memory-bandwidth-bound tokens/sec across M4 Max, M3 Ultra, AMD Strix Halo, DGX Spark, and consumer RTX GPUs.

⚡ Models Active MoE Bandwidth Speedups • Exports Ollama Modelfiles & llama-server Flags
GGUF File + KV Memory 21.9 GB GGUF: 19.5GB | KV: 1.1GB | Graph: 1.3GB
Active Bytes Read / Token 19.5 GB/tok Dense 32.5B active per token
Est. Speed on M4 Max 128GB ~20.1 tok/s 546 GB/s unified bandwidth
Est. Speed on RTX 4090 / 5090 ~37.2 tok/s 1,008 GB/s GDDR6X (if fits VRAM)

        
Local Hardware Fit & Estimated Generation Speed (tok/s)
Fit

Why Sparse MoE Models Fly on Apple Silicon & Unified Memory

Single-stream local LLM generation is strictly memory-bandwidth bound: every generated token must stream all active weights from unified/GDDR memory through the compute units. Because Qwen3 235B-A22B (`22B` active) and Llama 4 Scout (`17B` active) hold massive knowledge capacity in 64–256GB unified RAM while reading only 10–14GB of `Q4_K_M` weights per token, they achieve 30–45+ tok/s on a MacBook Pro M4 Max or Mac Studio! Read our full roof-line derivation in Local GGUF Bandwidth Physics & Production MCP Context Architecture →

DeepGen Command Palette

Copied!