BLACK FRIDAY 2026 ACTIVO: RackNerd 4GB VPS $47.98/año (de por vida) · ElevenLabs 55% OFF · Hardware IA en Amazon Ver Ofertas Verificadas →
Lab Essay #08 · Local AI Physics9 min readReal Lab Measurements

Mac mini M4 Local LLMs (Ollama / MLX) vs Cloud APIs: Memory Bandwidth Math, KV Cache Walls & Where Local Loses

TL;DR

Local LLM decode speed is governed by memory bandwidth, not marketing TOPS. With 120 GB/s unified memory, a $599 Mac mini M4 generates ~22–26 tok/s on 8B Q4 models—5×–8× faster than budget VPS CPUs (~2.8 tok/s). However, 16 GB hits a hard swap wall once you load a 14B model with a 32k context window (17.0 GB total including macOS + KV cache). Buy a Mac mini M4 for local AI ONLY when your recurring API spend on classification/extraction/Whisper exceeds ~$65/month OR data privacy forbids cloud APIs.

Dual chart showing Mac mini M4 16 GB memory usage across 7B, 8B, and 14B Q4 models plus KV cache hitting swap thrash at 17.0 GB, alongside 8B Q4 decode speed: Xeon E5 2.8 tok/s, Intel N100 4.2 tok/s, Mac mini M4 23.5 tok/s
Figure 1 · Mac mini M4 16 GB Memory Wall & Bandwidth-Bound Tokens/Sec: Why memory bandwidth dictates everything: a 4.9 GB Q4 8B model on 120 GB/s unified memory decodes smoothly above human reading pace (~23.5 tok/s), while a 14B model + 32k KV cache breaches 16 GB and thrashes SSD swap.

1. The Formula Every "Run Local AI Free!" Video Ignores

Autoregressive LLM token generation is overwhelmingly **memory-bandwidth bound**: to emit a single token, the GPU/CPU must read almost the entire quantized model weight file from RAM. Divide effective memory bandwidth (~100–115 GB/s usable on M4’s 120 GB/s bus) by a 4.9 GB Q4_K_M 8B model and physics hands you the ceiling immediately: ~20–24 tokens/second.

That same law explains why cheap $4/mo Xeon VPS nodes and $169 N100 mini PCs feel excruciating on local 8B models (2.8–4.2 tok/s). On CPU without wide unified memory, a single 400-token agent thought takes two full minutes—making real-time chatbots unusable.

2. Where Local Models Beat Cloud APIs—And Where They Still Lose Badly

I love local MLX inference, and I still pay Anthropic and OpenAI every month. Pretending a local 8B model equals frontier reasoning models destroys agent reliability. The winning pattern is **tiered routing inside n8n**:

  • Route to Local Mac mini M4 ($0/token): High-frequency JSON extraction, spam/intent classification, email triage, local Whisper audio transcription, private PDF/medical/finance summarization, and embeddings.
  • Route to Frontier Cloud APIs (Claude / GPT-4o / Gemini): Complex multi-tool coding, high-stakes customer negotiations, subtle legal/contract reasoning, and low-volume synthesis where a $0.02 API call saves an hour of human correction.

3. The Honest Dollar Break-Even: $65/Month

A Mac mini M4 costs ~$549–$599 upfront plus ~$1.58/mo electricity (14W idle, 24/7). If your n8n workflows currently spend $12/month on OpenAI mini-tier tokens, buying a Mac mini "to save on API bills" takes four years to break even—by which time the hardware is dated and API prices will drop another 70%. Buy the Mac mini M4 when (a) your local-eligible classification/transcription/agent loop spend exceeds ~$65/month (under 10-month payback), OR (b) you process private client/personal data that must never leave your local network.

Related Engineering Deep-Dives