Skip to content

Guide

Run LLMs on a Mac Studio, remotely.

A dedicated Mac Studio is one of the simplest ways to host open-weight models on hardware you control. This guide covers how much memory each model size needs, which runtime to use, how to expose an OpenAI-compatible API privately, and when renting beats the alternatives.

Updated

Why unified memory matters for LLMs

Large language models are limited by memory far more than by raw compute. Every generated token reads most of the model weights, so the whole model has to sit in fast memory, and the speed of that memory sets how quickly text comes out.

On a typical PC with a discrete GPU, the model must fit in the GPU's own video memory, which is small and expensive. A Mac Studio is different. The CPU and GPU share one pool of high-bandwidth unified memory, so a 70B-class model can sit entirely in memory the GPU can read directly, with no copying and no swapping to disk.

That is why a single Mac Studio with 128 GB can serve a model that would need several separate GPUs elsewhere. You trade some peak speed for a much simpler machine: one box, one power cable, no multi-GPU configuration.

How much memory do you need?

A useful rule of thumb: at 4-bit quantization a model needs roughly half a gigabyte of memory per billion parameters, and at 8-bit roughly one gigabyte per billion. On top of the weights you need room for the KV cache, which grows with context length and with the number of parallel requests, plus macOS itself.

By default macOS lets the GPU use only part of the total memory, so leave a safety margin of at least 20 to 25 percent. The figures below are rough planning estimates, not benchmarks. Actual usage depends on the quantization format, the context window you configure and the runtime.

  • About 8B parameters: roughly 5 GB at 4-bit, 9 GB at 8-bit.
  • About 20B: roughly 12 GB at 4-bit, 22 GB at 8-bit.
  • About 70B: roughly 40 GB at 4-bit, 75 GB at 8-bit.
  • About 120B: roughly 65 GB at 4-bit, 130 GB at 8-bit.
  • 200B and more: roughly 110 GB or more at 4-bit, which calls for 256 GB.
Mac configurations for local LLM hosting
ConfigurationUnified memoryTypical model class (4-bit)Price per month
Mac mini M624 GBUp to about 14B parameters€129
Mac mini M5 Pro64 GBUp to about 32B parameters€219
M5 Max, 512 GB SSD36 GBUp to about 30B parameters€349
M5 Max, 2 TB SSD128 GBUp to about 120B parameters€649
M5 Ultra, 4 TB SSD256 GBUp to about 235B parameters€1,149
Model sizes are rough planning estimates for 4-bit weights with a moderate context window. Prices exclude VAT.

Choosing a runtime: MLX, llama.cpp, Ollama or LM Studio

All four run well on Apple silicon, and you can install more than one. They differ in how much they hide from you.

  • MLX is Apple's own array framework, with the mlx-lm package for text models. It is tuned for the unified memory architecture and is the usual choice when you want the best throughput on a Mac and are comfortable on the command line.
  • llama.cpp is the most widely supported engine. It uses the GGUF format, runs on Metal, and ships llama-server, which exposes an OpenAI-compatible endpoint. Its quantization options are the most flexible.
  • Ollama wraps llama.cpp behind a small daemon and a model library. It is the fastest way to pull a model and get a local API running, which makes it a good default for teams that just want it to work.
  • LM Studio adds a graphical app on top, with a built-in model browser and a local server. Because you get full Screen Sharing access to the Mac, it is convenient for trying models before you automate anything.

Serve an OpenAI-compatible API privately

Most open-weight runtimes can expose an endpoint that follows the OpenAI chat completions format. That means existing SDKs, editors and agent frameworks can talk to your Mac Studio by changing only the base URL and a dummy key.

Bind the server to localhost rather than to the fixed public IP. There is no reason to publish a model endpoint on that address.

The straightforward way to reach it is an SSH tunnel. Forward a local port to the model server's port on the Mac, so the API appears on localhost on your own machine. Optionally, install Tailscale yourself on the Mac and on your laptop or servers, then point your client at the Mac's tailnet name. Tailscale is not part of the service, and we do not guarantee it. Either pattern can work from a laptop or from another host you control.

Because you have full admin access, you can run the runtime as a launchd service so it restarts after a reboot, and keep several models on the SSD, loading the one you need.

Privacy: prompts stay on a dedicated machine in the EU

When you call a hosted model API, your prompts and documents pass through a provider's infrastructure. With a dedicated Mac Studio, inference happens on a physical machine that only your session uses. The CPU, GPU and memory are not shared with other customers.

The machine sits in Prague, Czech Republic, and is operated by an EU company. Between customers the disk is erased and macOS is reinstalled, so nothing from a previous session remains. That makes it easier to reason about where sensitive data lives, which matters for client work, internal documents and anything under GDPR. Treat this as a hosting arrangement, not a compliance certification: you remain responsible for what you run on the machine.

When renting beats API spend or buying

Renting makes sense when your usage is steady enough to keep a machine busy, or when you need data to stay off third-party APIs. It is a poor fit for a few occasional prompts, where pay-per-token pricing is simpler.

The arithmetic is short. The 128 GB configuration costs €649 per month, which is about €21 per day, or €239 for a week and €49 for 24 hours. A fixed-dates rental is priced as the cheapest mix of 30-day, 7-day and 1-day blocks, and the order form picks that mix for you. From about 18 days, it already costs the 30-day price. You can cancel a monthly plan at any time. All prices exclude VAT, and businesses in other EU countries with a valid VAT ID are invoiced with reverse charge. Czech businesses and EU consumers pay 21% Czech VAT.

To judge the break-even, compare these figures with your current monthly API bill for the same workload. If you spend more than the monthly price on tokens for a model class that runs locally, renting is worth testing. Remember that open-weight models are not identical to the hosted frontier models you may use today, so run your own evaluation first. A 24-hour rental is a cheap way to do exactly that.

Buying a Mac Studio outright removes the rental fee, but you then pay for the hardware up front and take on hosting, power, a place to keep it and remote hands. Renting trades that cost and commitment for a monthly price and a setup target of 3 hours from payment. Three hours is a target, not a guaranteed time. If we cannot deliver the machine or storage you ordered, we cancel the order and refund the full amount. You can also add a Thunderbolt 5 SSD of 2, 4 or 8 TB for €39, €69 or €129 per month. In stock, connected within 60 minutes.

Frequently asked questions

Which Mac Studio should I rent to run a 70B model?

The 128 GB configuration is the usual starting point. A 70B model needs roughly 40 GB at 4-bit or 75 GB at 8-bit, which leaves room for the KV cache, macOS and a long context window.

Can I run several models at the same time?

Yes, as long as their combined weights and caches fit in memory with a safety margin. Many teams keep a small model for quick tasks loaded alongside a large one, and unload models they are not using.

Is MLX faster than llama.cpp or Ollama?

It depends on the model, quantization and context length, so we do not quote a number. MLX is built for Apple silicon and often performs well, while llama.cpp and Ollama are simpler to set up. Try both on your own workload during a 24-hour rental.

How do I keep the model API private?

Bind the server to localhost, then connect with an SSH tunnel. You do not need to open another port on the fixed public IP. You can also install Tailscale yourself and bind to that address. Tailscale is optional and not part of the service.

Can I try it before committing to a month?

Yes. The minimum rental is 24 hours, and a fixed-dates rental lets you choose any dates between that and the monthly plan. Monthly plans can be cancelled at any time.

Do I get full control of the machine?

Yes. You get full admin access with SSH and Screen Sharing, so you can install any runtime, run services at boot and manage the model files yourself. The disk is erased and macOS reinstalled between customers.

Recommended for this guide

Mac Studio, M5 Max

128 GB unified memory

For local models up to about 120B parameters.

€649/moor €49 per 24 hours, excl. VAT€785.29 incl. VAT per month, €59.29 incl. VAT for 24 hours