Language
November 22, 20264 min read

Mac Mini Local LLM Server: Models, Memory and Setup (2026)

Yes, a Mac mini can run a local LLM. The M4 and M4 Pro models both use unified memory, and memory decides which models fit. You can't upgrade it later, so choose it at purchase.

Once the model is running, Macky lets you reach the Mac mini's terminal and screen from your iPhone, so the server can sit in a corner without a monitor.

Mac mini specs that matter for LLMs

ChipCPU and GPUMemory bandwidthMemory options
M4CPU: 10-core, GPU: 10-coreBandwidth: 120GB/sStandard 16GB, configurable to 24GB or 32GB
M4 ProCPU: 12-core, GPU: 16-core (14-core CPU and 20-core GPU is a configure-to-order option)Bandwidth: 273GB/sStandard 24GB, configurable to 48GB or 64GB

Both chips have a 16-core Neural Engine. Memory is unified, so the CPU and GPU share it.

Memory decides which models fit

A model has to fit in memory to run well. Check the file size on its download page. Then leave room for macOS, your apps, and the chat context.

The M4 Pro has more than twice the memory bandwidth of the M4, which should help speed. If you're buying for LLMs, pick the memory size first and the chip second.

Check on your Mac mini from your iPhone

Macky puts your Mac mini's terminal on your iPhone. Start a model in a real zsh or bash session, then detach and attach later.

Macky terminal session on an iPhone connected to a Mac mini

Screen mode shows the desktop when you need a window. The connection is end-to-end encrypted WebRTC with no open ports and no VPN. Each new iPhone must be approved on the Mac first.

Raise the GPU memory cap

macOS limits how much unified memory the GPU can use by default. A model that fits in RAM can still fail to load or run slowly. On macOS Sonoma 14 and later, iogpu.wired_limit_mb raises the cap.

Check the current value:

sysctl iogpu.wired_limit_mb

Set a new value in megabytes (GB × 1024):

sudo sysctl iogpu.wired_limit_mb=<MB>

Guides disagree on the number, so leave headroom for macOS. Setting it too high can hang the system or force-quit apps.

The value resets on reboot unless you add a launch daemon. Apple doesn't document this setting; these steps come from third-party guides.

Install Ollama and start the server

Ollama needs macOS 14 Sonoma or later. Install the DMG app, which is Ollama's preferred method. If the app isn't running, start the server from Terminal:

ollama serve

For model commands, see how to run and control Ollama from your iPhone.

Keep it running as a server

A server Mac mini has to stay awake. Use caffeinate to keep it that way. To run it without a monitor, see the headless Mac mini guide. More jobs for the machine are in the Mac mini home server guide.

FAQ

How can I run LLMs locally on my Mac?

Install Ollama (macOS 14 Sonoma or later), pick a model whose file fits in unified memory, and run it. Apple Silicon Macs get GPU acceleration. Intel Macs use the CPU only.

What LLM can a Mac mini run?

It depends on the Mac mini's memory. The model file plus its working context has to fit in unified memory with room left for macOS. Compare the file size on the model's download page with your memory.

Is the Mac mini good for local AI?

Yes, with enough memory. The M4 and M4 Pro both use unified memory, and the M4 Pro has 273GB/s of memory bandwidth. The Mac mini is also small enough to leave on as a server.

Can a Mac mini run AI models?

Yes. An M4 Mac mini can run local models through Ollama with GPU acceleration. Bigger models need more memory, and you can't add it after purchase.

Can I manage a Mac mini LLM server from my iPhone?

Yes. Macky opens your Mac's own shell on your iPhone, so you can start or check an Ollama session from anywhere. The connection is end-to-end encrypted with no open ports.

Try Macky

Connect to your Mac terminal from your iPhone.