M5 Max MLX Models Double Speed Over GGUF Locally

AI Summaries (evaluation playlist)go watch the original →

On Apple Silicon, MLX formats with NVFP4 deliver up to 2x decode speeds (118 t/s vs 60 t/s) over GGUF, with M5 Max 15-50% faster than M4 Max across prompts, context scaling, and agentic coding—viable cloud alternative for privacy and cost.

MLX Optimization Crushes GGUF on Apple Silicon

IndyDevDan benchmarks reveal MLX models, optimized for Apple hardware via Nvidia's NVFP4 low-precision format, consistently outperform GGUF equivalents. On M5 Max, Qwen 3.5 MLX hits 118 tokens/second decode speed versus 60 t/s for GGUF, nearly doubling output velocity on warm prompts. Prefill speeds favor GGUF slightly (e.g., 550 t/s for Gemma 4 GGUF vs slower MLX), but wall-clock time—the true end-to-end metric—tilts heavily to MLX, especially as prompts lengthen. This stems from MLX's tight integration with Apple Silicon's unified memory and GPU accelerators, minimizing overhead in Mixture-of-Experts (MoE) architectures like A4B and A3B variants. GGUF users leave performance on the table because it lacks these hardware-specific kernels, forcing generic fallbacks. Tradeoff: MLX models demand more initial setup (e.g., via Ollama's MLX support or Hugging Face community ports), but fit compactly in 16-42GB RAM even under load, quieter on fans than GGUF runs.

"If you're running on Apple Silicon always find an MLX model there's just really no debate about this and they're up to twice as good as their GGUF counterparts." This quote underscores the decision chain: evaluate formats head-to-head on real workloads, reject GGUF for decode bottlenecks, adopt MLX for 100+ t/s thresholds that enable interactive use.

M5 Max Hardware Leaps 15-50% Over M4 Max

Direct side-by-side tests on max-spec MacBook Pros (128GB RAM) show M5 Max shaving 15-50% off wall-clock times versus M4 Max across identical workloads. Simple prompts (e.g., "explain hash in two sentences") see M5 prefill/decode edges, but gains compound in graph walks: at 32K context, M5 processes BFS tasks faster with steadier 117 t/s decode, while M4 fans spin harder. Memory peaks align (42GB on M5 post-run), but M5 sustains GPU utilization near 100% quieter. Opportunity: M5's neural accelerators (per Apple's research) handle KV cache bloat better, avoiding swaps. Problem solved: prior-gen limits on agent loops. Results reshape local stacks—M5 positions Apple ahead for on-device inference, previewing M5 Ultra's 500GB potential to obliterate API dependency for sub-agent tasks.

"The M5 is about 15 to 50% faster than the M4 which is a pretty massive jump and we're going to see this trend continue as we increase the context size." Here, the speaker justifies hardware upgrade via live metrics from jbench ping, streamed to live-bench UI, rejecting M4 for scaling bottlenecks.

Gemma 4 Maximizes Density, Trades with Qwen 3.5

Google's Gemma 4 (MLX/NVFP4) packs superior intelligence-per-parameter, blitzing simple benchmarks at 100+ t/s decode and 550 t/s prefill in GGUF, but MLX variant leads wall times. Versus Alibaba's Qwen 3.5 (35B MoE), Gemma edges efficiency: smaller RAM footprint (16GB min), faster prefill on short prompts, competitive graph walk F1 scores up to 8K context. Qwen wins cold starts occasionally but lags decode. Decision: choose Gemma for US-open competitiveness and compactness; Qwen for raw MoE scale if RAM allows. Both falter past 16K—F1 drops sharply at 32K on graph walks (e.g., BFS node traversal errors), exposing local KV cache limits without advanced compression.

"Gemma 4 is an incredibly packed model like they say it here themselves right they're maximizing intelligence per parameter and they've definitely accomplished that." This highlights evaluation: benchmark quality (responses to rate-limiter design) alongside speed, favoring Gemma's balance.

Context Scaling Exposes 16-32K Hard Limits

Graph walks benchmark (BFS on expanding graphs: 200-32K tokens) reveals prefill's dominance as prompts grow—MLX Qwen/Gemma hold 117 t/s decode but wall times balloon beyond 16K due to linear context processing. M5 mitigates via accelerators, but accuracy cliffs (e.g., 80% Mythos reference vs local <50% at 8K). Tradeoff: local privacy/speed wins short-agent tiers (personal coding), loses long-context reasoning to cloud. Evolution: v1 simple prompts viable >30 t/s; v2 context pushes hardware limits, signaling need for KV optimizations.

"32K is what I'm seeing as the proper context limit for these small language models i'm talking 35 billion parameters and below." Speaker pivots from speed hype to realistic caps, tested via live UI tracking RAM/GPU.

Agentic Coding Viable Locally with Caveats

Pi coding agent benchmark (full workflows) confirms locals handle "tactical agentic coding"—M5 MLX Gemma generates/iterates code privately, zero API latency. Versus cloud outages (Claude down mid-recording), locals ship uninterrupted. Micro-agent thesis: on-device excels engineering subtasks (e.g., rate limiters), compounding savings/control. Caveat: agent loops amplify context cliffs, non-deterministic variance.

"Anything over 30 tokens per second I consider fully usable once you drop below 20 I consider that the dead zone." Defines viable threshold from hands-on tests, guiding adoption.

Key Takeaways

  • Prioritize MLX + NVFP4 on Apple Silicon for 2x decode gains; source from Hugging Face mlx-community or Ollama.
  • Benchmark wall-clock over raw t/s—15-50% M5 uplift shines in scaling workloads.
  • Gemma 4 for density (16GB RAM), Qwen 3.5 for MoE power; test both via live-bench.
  • Cap agents at 16K context to avoid F1 cliffs; use for micro-tasks beating cloud on privacy/speed.
  • Warm models first; >30 t/s usable, track via jbench ping + Macmon for RAM/GPU.
  • Ditch GGUF—MLX is non-negotiable for Apple; prepare for M5 Ultra tipping point.
  • Run Pi agent locally for coding; replicates cloud minus bills/downtime/outages.
  • US-open Gemma 4 competes globally; maximizes parameter efficiency.

(Word count: 1028)

  • #demo
  • #review
  • #benchmark

summary by x-ai/grok-4.1-fast. probably wrong about something. check the source.