September 15, 2026 · Updated on November 12, 2026 · 18 min read

Local AI on a Mac: Mini as AI Server

Desk by a window with an iMac, an open MacBook and plants
Photo: Tranmautritam / Pexels

Local AI on a Mac works because Apple Silicon shares its memory between CPU and GPU: a Mac mini with 32 GB loads a 27B model in 4-bit, a Mac mini M5 Pro with 48 or 64 GB loads it in 8-bit, and a Mac Studio with 256 GB carries models with several hundred billion parameters. As an AI server on your network, the Mac mini runs Ollama or LM Studio, both with an OpenAI-compatible API that any machine in the house can talk to. It fits best as a chat and writing assistant with a 4-bit model; for agents that run many rounds, its speed is tight. The limit is memory bandwidth and the Nvidia ecosystem: if you need CUDA, SGLang or NVFP4 checkpoints, you want a DGX Spark.

I've run local models since December 2025 on an Nvidia DGX Spark and on my MacBook Pro M3 Max with 64 GB. I have never owned a Mac mini, and I'll say that up front: my only Mac measurement comes from the MacBook; every Mac mini and Mac Studio figure here comes from Apple's spec sheets and store, the tools' own docs and reports from the German tech site ComputerBase, each with a date. Everything I write about local AI is collected on my AI page.

This post goes deep on the Mac route. The three-budget comparison is in Your Own AI Server: Hardware and Cost, and the Spark buying guide is DGX Spark: Price and Alternatives.

Why a Mac works for local AI: unified memory and bandwidth

A language model is read from memory in full for every token it generates, so two numbers decide what runs on a machine: how much memory the GPU can address, and how fast it can read it. On a classic graphics card memory is scarce: 24 GB is already the high end. Apple Silicon shares the entire system memory between CPU and GPU, which Apple calls unified memory; a Mac mini with 64 GB hands most of that to the model.

Memory bandwidth is where Macs differ. According to Apple's Mac mini spec sheet, the M6 reads at 153 or 170 GB/s and the M5 Pro at 307 GB/s. The Mac Studio reaches 460 or 614 GB/s with the M5 Max and 1.2 TB/s with the M5 Ultra. Rule of thumb: bandwidth divided by model size in gigabytes is the ceiling for tokens per second. That's a heuristic, but it explains why a Mac Studio runs the same model several times faster than a Mac mini M6. The exception is speculative decoding: a small model proposes several tokens, and the large one checks them in a single pass over its weights. That's how my Spark gets well past its theoretical ceiling.

Mac mini or Mac Studio: which configuration for which model size

Apple refreshed both machines in August 2026. I pulled the prices from Apple's US store on November 12, 2026. The "fits" column is derived from file sizes, the speed column from the rule of thumb above, calculated for Qwen 3.8 27B in 4-bit at 18 GB.

Device Memory Bandwidth Price from (as of November 2026) Speed ceiling, 27B in 4-bit (heuristic) Fits
Mac mini M6 16, 24 or 32 GB 153 to 170 GB/s $899 (16 GB, 256 GB SSD) around 9 tokens per second, only with 32 GB small models; 27B in 4-bit only at 32 GB, and slowly
Mac mini M5 Pro 24, 48 or 64 GB 307 GB/s $1,699 (24 GB, 512 GB SSD), $2,299 with 48 GB, $2,699 with 64 GB around 17 tokens per second 27B in 4-bit with headroom, 8-bit from 48 GB; a chat and writing server for a small team
Mac Studio M5 Max 36 to 128 GB 460 to 614 GB/s $2,499 around 26 to 34 tokens per second 70B class in 4-bit, tight at 64 GB, comfortable at 128 GB
Mac Studio M5 Ultra 96, 256 or 512 GB 1.2 TB/s $5,499 (96 GB), $22,299 with 512 GB around 67 tokens per second models with several hundred billion parameters in 4-bit
DGX Spark (for comparison) 128 GB 273 GB/s $6,950 for the Founders Edition since October 2, 2026, per The Register around 12 tokens per second for the 21.9 GB NVFP4 file; measured 50.7 with speculative decoding 27B in NVFP4 under SGLang, CUDA tooling, multi-device clusters

On pricing: on the M5 Pro, going from 24 to 48 GB adds $600 and to 64 GB adds $1,000, each with a 512 GB SSD. The 512 GB Mac Studio has been orderable since late October 2026, as ComputerBase reported on October 29. It comes only with the larger M5 Ultra (36-core CPU, 80-core GPU) and costs $22,299 with a 1 TB SSD. The Spark's bandwidth is from Nvidia's DGX Spark product page, and its US price from The Register. If you're buying in Germany: Apple's German store lists the Mac mini M5 Pro at €1,999, €2,659 with 48 GB and €3,099 with 64 GB, the Mac Studio from €2,999 and the 512 GB version at €25,079, all including 19% VAT, as of November 12, 2026. A Spark with 128 GB starts at €5,699 there as a partner device (Lenovo ThinkStation PGX), the Founders Edition at €8,999, per the price comparison site Geizhals.

In short: the Mac mini M6 is for trying things out, not a server for several users. The Mac mini M5 Pro with 48 or 64 GB is what I mean by "Mini as AI server", specifically as a chat and writing assistant with a 27B model in 4-bit. The rule of thumb puts the ceiling at around 17 tokens per second there, and the extra memory goes to context and several requests at once. 8-bit fits from 48 GB, but by the same math it tops out at around 10 tokens per second, below my MacBook figure that already felt sluggish for agent work. The Mac Studio is for models that outgrow the Mini's memory, or when you need more speed.

Which model fits into how much memory

At 4-bit quantization a model needs roughly 0.5 to 0.6 GB per billion parameters, plus the KV cache for context, which grows with your inputs. That rule of thumb comes from a Pinggy analysis of the 512 GB Mac Studio from September 1, 2026, written before the machine shipped and based on file sizes and measurements on the previous M3 Ultra, and it matches the file sizes I see. A 27B model lands at around 15 to 18 GB in 4-bit and at twice that in 8-bit.

For Qwen 3.8 27B, the model I run on the Spark: Ollama's MLX tag is 18 GB in 4-bit and 56 GB in bf16, and unsloth's 8-bit build is 31 GB. So 4-bit fits from 32 GB, 8-bit needs 48 or 64 GB, and the full bf16 version fits in no Mac mini at all.

Going up gets expensive. A 70B class model needs around 35 to 42 GB in 4-bit and runs on a Mac Studio M5 Max with 64 GB; 128 GB leaves headroom for long context. The same analysis lists GLM-5.2 in 4-bit at 418 GB, a model that only fits the 512 GB version. Which models are worth considering is in Open Source AI Models Compared.

LM Studio recommends Apple Silicon with macOS 14 and 16 GB; with 8 GB, the docs say, only small models with tight context will run. My take: below 32 GB a Mac isn't fit to be an AI server, because macOS and the context need room next to the model.

My measurement: Qwen 3.8 on the MacBook Pro M3 Max

My only measurement on a Mac, as of August 2026: Qwen 3.8 27B in LM Studio, 8-bit, occupies 27.5 GiB on my MacBook Pro M3 Max with 64 GB and generates 11 tokens per second. Readable, not fluid; for a terminal agent that runs many rounds, it's sluggish. And something no token count shows: on the MacBook, runs broke off more often than on the Spark, and working with the model was a grind overall. That is what drove my buying decision.

For comparison: the same model runs on my DGX Spark as an NVFP4 checkpoint under SGLang at 50.7 tokens per second, measured with 300 tokens in a single stream from the Mac over Tailscale. The two numbers aren't directly comparable: different quantization, runtime and bandwidth. But they show the order of magnitude a 27B model in 8-bit reaches on an M3 Max class Mac. The Spark side is in Run Qwen 3.8 Locally: 27B on a DGX Spark.

For a Mac mini M5 Pro at 307 GB/s, the rule of thumb gives at most around 10 tokens per second in 8-bit, so likely a bit less than my MacBook, and at most around 17 in 4-bit. That argues against the Mini for agents with many rounds; for chat and writing help in 4-bit, it's enough.

In day-to-day work, the same MacBook runs a different kind of local model: I dictate with VoiceInk using a Whisper model, and the speech recognition runs on the machine itself; what that looks like after around 2,800 dictations is in VoiceInk Review After 2,800 Dictations.

Is the Mac mini a good AI server for Ollama and LM Studio?

Yes, for chat and writing help in a small team. Ollama and LM Studio both ship a server with an OpenAI-compatible API, and the Mini is frugal for always-on use: Apple rates the Mac mini M5 Pro with 64 GB at 6 watts idle and 145 watts maximum. A Mac mini as an AI server means the model runs on the Mini, and your MacBook, your Windows machine or a terminal agent talk to it over the network. LM Studio starts a server on request, default port 1234, reachable at http://<address>:1234/v1. Ollama listens only on the machine itself by default, on port 11434.

Here's how to set up the Mini for continuous operation:

  1. Fixed address: give the Mini a fixed IP address in your router so the other machines always find it at the same address.
  2. Sleep off: in System Settings under Energy, turn on "Prevent automatic sleeping when the display is off", per Apple.
  3. Restart after a power outage: also under Energy, set "Start up when power is connected" to "After power failure"; depending on the Mac, the option is called "Start up automatically after a power failure". Since Ollama and LM Studio only start when you log in, also set "Automatically log in as" to your account under Users & Groups. According to Apple, that doesn't work while FileVault is turned on.
  4. Open Ollama to the network: the Ollama FAQ says to set the environment variable via launchctl on macOS and restart the app; the commands are below. The macOS app registers itself as a login item during installation.
  5. Open LM Studio to the network: in the server settings, turn on "Serve on Local Network", per the LM Studio docs; from the terminal it's lms server start --bind 0.0.0.0. LM Studio recommends turning on "Require Authentication" as well, so only clients with a token get in. In the app settings (Cmd and comma), check the box to run the server on login.
  6. Outside access only via VPN: for my Spark I use Tailscale and never expose a port to the internet.
# open Ollama on the Mac mini to other machines on the network
launchctl setenv OLLAMA_HOST "0.0.0.0:11434"
# then quit the Ollama app and start it again

# check from the MacBook that the server responds
curl http://mac-mini.local:11434/api/tags

The second command lists the models stored on the Mini. According to its manual page (man launchctl), launchctl setenv applies to processes launchd starts in your current session; it doesn't say the variable survives a restart. So after every restart, check with launchctl getenv OLLAMA_HOST whether it is still set. If it's missing, Ollama listens only on the machine itself again: set the variable again and restart Ollama. The .local hostname works on a home network via Bonjour; I use such addresses in my Raspberry Pi cluster too. The tools in detail are in Setting Up Local AI: Ollama to SGLang. The remaining ground rules for a machine in continuous operation, keys instead of passwords, automatic security updates, backups with a restore test, I've written up for Linux and Windows in Securing Your Own Server: Linux and Windows.

On the client side, any program that accepts an OpenAI-compatible address takes the Mini as its endpoint: a chat interface like Open WebUI, an editor plugin or a terminal agent like Pi, which I use on the Spark. I cover the chat interface in Open WebUI: A Chat Interface for Local AI. How a terminal agent works with a local model is in Claude Code Alternative Without Cloud.

Mac mini versus DGX Spark: where each one wins

Both are small boxes with shared memory that run a 27B model, yet they solve different problems. The Mac mini M5 Pro wins on price: with 64 GB it's $2,699 at Apple, while the Spark Founders Edition with 128 GB is $6,950. It also has more bandwidth on paper (307 versus 273 GB/s per the vendors' specs), but that doesn't make it faster: my Spark delivers 50.7 tokens per second with NVFP4, SGLang and speculative decoding, roughly three times what the rule of thumb allows the Mini in 4-bit. And the Mini wins on everyday use: it's an ordinary Mac, LM Studio installs like any other app, and there's no new operating system to learn. Power draw is low on both; Apple rates the Mini at 145 watts maximum, and Nvidia lists a 240-watt power supply and a 140-watt TDP for the Spark's chip.

The Spark wins as soon as the Nvidia ecosystem matters. SGLang, vLLM, NVFP4 checkpoints and speculative decoding, which get me to 50.7 tokens per second, don't exist in that form on the Mac; there you have Ollama, LM Studio and MLX. The Spark has 128 GB in one box while the Mac mini tops out at 64 GB, and Nvidia says several units can be linked for larger models. In return, the Spark is a Linux system that needs care: on mine the services run as systemd user units, the first model start takes around 9 minutes because of the compile step, and one wrong memory parameter freezes the host.

My take: what decides it is the speed your task needs. For a small team that wants a 27B model in 4-bit as a chat and writing assistant on its own network and doesn't need CUDA tooling, the Mac mini M5 Pro with 48 or 64 GB is the simpler and cheaper route. For agents that run many rounds, the Spark is the better pick despite its lower bandwidth, because NVFP4 and SGLang make it answer much faster. For larger models, Nvidia tooling or clusters, take the Spark or the Mac Studio, depending on whether ecosystem or bandwidth matters more. On privacy the same holds for both: the model answers on your own network, and the request to the model needs no cloud provider. What that means legally is in Local AI and Privacy: Cloud or Server?.

Frequently asked questions

Is a Mac mini with 32 GB enough for local AI?

For trying things out, yes: a 27B model in 4-bit takes around 18 GB and leaves room for macOS and context. As a server for several users or a terminal agent it gets tight, because the M6 only has 153 to 170 GB/s. From an M5 Pro with 48 GB upward, the Mini is a usable server for chat and writing help.

How much RAM do I need for a 27B model on a Mac?

In 4-bit, roughly 18 GB of model size, so at least 32 GB in the machine. In 8-bit, roughly 31 GB; on my MacBook, Qwen 3.8 27B in LM Studio occupies 27.5 GiB, so 48 or 64 GB. The full bf16 version at 56 GB needs a Mac Studio.

Is a Mac mini cheaper as an AI server than a DGX Spark?

Yes. Apple's US store lists the Mac mini M5 Pro at $2,299 with 48 GB and $2,699 with 64 GB, as of November 12, 2026. The DGX Spark Founders Edition with 128 GB has cost $6,950 since October 2, 2026, per The Register. For the extra money the Spark gives you 128 GB of memory and, with NVFP4 and SGLang, much higher speed; all Spark variants and prices are in DGX Spark: Price and Alternatives.

Can I access the Mac mini server from my MacBook?

Yes. LM Studio offers a server on port 1234 once "Serve on Local Network" is on, and Ollama listens on all addresses once OLLAMA_HOST is set. From the MacBook you reach the Mini via its .local name or fixed IP, from outside the house via a VPN such as Tailscale.

Is a Mac Studio with 512 GB worth it for a small business?

Only if you need a model with several hundred billion parameters locally and know why. For chat and writing help, a 27B model in 4-bit on a Mac mini M5 Pro with 48 or 64 GB is enough; for agents that run many rounds, a DGX Spark is the faster pick. The 512 GB version has been orderable since late October 2026 and costs $22,299 with a 1 TB SSD at Apple's US store, as of November 12, 2026.

Does an LLM on a Mac also run on a MacBook?

Yes, that's how I measured: Qwen 3.8 27B in 8-bit on a MacBook Pro M3 Max with 64 GB, 11 tokens per second. As a permanent server a MacBook is a poor choice: it gets closed, travels with you and throttles on battery.

Where to go next

If you don't yet know whether it should be a Mac at all, start with Your Own AI Server: Hardware and Cost and its three budgets. Once you've decided, install Ollama or LM Studio following Setting Up Local AI: Ollama to SGLang, pull Qwen 3.8 following Installing Qwen 3.8 with Ollama, and measure how many tokens per second your machine delivers. What local models are good for today, and what they aren't, is in Local AI: What Actually Works in 2026.

My AI employees, by the way, run on Claude, not on the Mac; how Peter, a folder with personnel file, rules and learnings, screens my receipts is on Peter, who screens and matches my receipts. A Mac mini with a local model only replaces the model behind it; the way of working lives in the folder.

Kevin Welter

Kevin Welter

Developer, IT architect, author of technical books (Kubernetes, cloud infrastructures) and speaker. Runs his business with an AI workforce of fifteen AI employees and shows solo business owners in his community how to hire their first AI employee.

More about AI employees

Your first AI employee up and running within an hour

Join the community

$5/month founding price, first 50 members