[ai] labs · local llm infrastructure

Mac Studio LLM Cluster

Exo + MLX + RDMA on macOS Tahoe 26.2+

Run large and custom LLMs locally for research, agent scaling, and private inference by clustering Apple Silicon Mac Studios. Cheap-but-powerful setups that pool unified memory across machines.

Compiled for Kevin Meuret / Go AI Labs — July 2026

01 · Overview

Why this works

Apple Silicon Mac Studios (M4 Max / M3 Ultra) + Thunderbolt 5 + RDMA (macOS Tahoe 26.2+) enable practical clustering.

~3–50 µs
RDMA latency over TB5
6–100×
Improvement vs. no RDMA
2–4
Nodes (daisy-chain / mesh)

Key benefits

  • Pool unified memory across machines (e.g., 2× 256 GB nodes ≈ large shared pool).
  • Low-latency RDMA: ~3–50 µs (vs ~300 µs without) — makes tensor parallelism viable.
  • Exo auto-orchestrates model sharding; performance often improves with added nodes.
  • Extremely power-efficient vs. NVIDIA GPU clusters.
  • Perfect for larger research models, fine-tuning, long-context work, and scaling the Rob AI platform.

Limitations

  • Still some inter-node latency (best for batch/research vs. ultra-low-latency chat).
  • Daisy-chain/mesh topology (no TB5 switches yet) — limit to 2–4 nodes initially.
  • Requires recent macOS and specific setup steps.

02 · Cost & Power

Cost tables

Hardware pricing bands come straight from the guide. Electricity figures are illustrative estimates — the source guide only states total draw is “hundreds of watts.”

Hardware cost

Configuration · pricing bands (USD, from guide)
ConfigurationBest forNodesEst. total cost
2× Mac Studio M4 Max (start here)Balanced / larger research models, high RAM per node (128 GB+)2~$8k–15k+
4× Mac Mini M4 Pro clusterTight budget, 70B-class work, extra pooled RAM4~$6k–7k
3–4× Mac Studio (scale-out)Bigger models (100B+), multi-agent research3–4Scales from 2-node base
Budget mix: 1–2 Studios + Mac Mini M4 ProCheaper additional pooled memory (70B-class)2–4Between the bands above
Maxed M3 Ultra (ceiling)Absolute top-end speed only — avoid initially2–4Highest cost tier

Pro tip from the guide: prioritize unified memory over extra CPU/GPU cores for LLM work. Watch for Apple refurb / education pricing and used-market deals.

Electricity cost estimates · not in source guide

Estimate disclaimer

The source guide only states total cluster draw is “very low (hundreds of watts total).” The figures below are illustrative estimates to help planning, using a US-average retail rate of ~$0.17/kWh and assuming continuous 24/7 operation. Verify against your own hardware specs and local utility rate before budgeting.

Illustrative monthly electricity · 24/7 @ ~$0.17/kWh (estimate)
SetupEst. draw (per node)Est. total wattsMonthly kWh (24/7)Est. monthly cost
2× Mac Studio M4 Max~150 W~300 W~216 kWh~$37/mo
4× Mac Mini M4 Pro~65 W~260 W~187 kWh~$32/mo
4× Mac Studio M4 Max~150 W~600 W~432 kWh~$73/mo

Estimates only. Actual idle/load draw varies significantly by workload, quantization, and RAM config. Apple Silicon is dramatically more power-efficient than comparable NVIDIA GPU rigs — that efficiency is the core advantage.

03 · Ready-to-hand Setup

Tech-helper instructions

Four tabs, each pulled from the guide. Follow in order. All shell commands include a copy button.

Hardware recommendations (cheap + powerful balance)

Primary recommendation: 2× Mac Studio M4 Max (start here)

  • Config sweet spot: High unified memory (128 GB+ per node recommended). M4 Max offers excellent value vs. Ultra for most workloads.
  • Strong per-node performance + pooled memory via RDMA. Easier/cheaper than 4× maxed Ultras.
  • Expected total cost range: ~$8k–15k+ depending on exact RAM/storage (watch for deals/refurbs).

Scaling options

  • 3–4 nodes: Add more for bigger models (e.g., 100B+ or multi-agent research).
  • Budget mix: Pair 1–2 Studios with cheaper Mac Mini M4 Pro nodes for extra pooled RAM (good for 70B-class models on tighter budgets).
  • Avoid initially: Maxed M3 Ultra configs unless you need absolute top-end speed (higher cost).

Connectivity

  • High-quality Thunderbolt 5 cables (daisy-chain or small mesh).
  • Each machine needs macOS Tahoe 26.2+ for full RDMA support.
Pro tip

Prioritize unified memory over extra CPU/GPU cores for LLM work.

RDMA latency impact (quick reference)

  • Without RDMA (standard networking): ~300 µs latency.
  • With RDMA over Thunderbolt 5: drops to ~3–50 µs (often 5–9 µs reported).
  • Impact: 6×–100× improvement. Enables practical tensor parallelism and memory pooling.
  • Still higher than single-machine local memory (nanoseconds), but very usable for research/batch workloads.
  • Benefit: Exo + RDMA often makes performance improve when adding nodes.

04 · Resources

Quick reference & next steps

Links & resources

  • Exo GitHub: github.com/exo-explore/exo
  • Exo Labs site: exolabs.net
  • Apple MLX docs: ml-explore.github.io/mlx
  • Apple RDMA / Thunderbolt tech note: search for TN3205 (Low-latency communication with RDMA over Thunderbolt).
  • Jeff Geerling’s cluster tests & benchmarks (highly recommended reading).
  • MLX distributed examples (GitHub ml-explore/mlx).

Next steps / customization

  • Decide target model sizes and research tasks (70B? 100B+? fine-tuning focus?).
  • Estimate budget and start with a 2-node M4 Max high-RAM proposal.
  • Prototype one model end-to-end (install → cluster → inference → integrate with Rob).
  • Document your exact configs and any custom scripts for repeatability.

This guide is designed to be copy-pasted and expanded — add your specific hardware SKUs, exact working commands, model benchmarks, or integration snippets as you build.