Mac setups
Mac Studio or Mac mini for local LLMs
By llamaperf · · 6 min read
Quick answer
Choose the Mac configuration that can run your required model and context with enough memory left for everyday work. Then compare how long your actual tasks take. A Mac mini can be a sensible choice when that workload fits and meets your latency target. A Studio becomes worth considering when a specific memory or performance limit on the mini prevents the work you need. Compare speed figures only for the workload you plan to run.
Read the benchmark conditions
Three reported setups
Each example comes from a separate test. The models, quantizations, prompt lengths and runtimes differ, so read the rows as examples of distinct workloads.
| Reported hardware | Reported result | Model and measured workload | Evidence limits |
|---|---|---|---|
| M4 Mac mini · 24GB | 17.42 tok/s decode | Qwen3.5:9b Q4_K_M, Ollama 0.33.0, about 88 input tokens, 300-token output cap, 4,096 configured context. | Median of 3, short input. original test. |
| M4 Pro Mac mini · 64GB | 49.3 tok/s decode | Qwen3.5-35B-A3B 8-bit, mlx_lm, one machine, 512 input and 512 output tokens. | SiliconBench Table 4, no formal run-to-run variance estimate. paper. |
| M5 Ultra Mac Studio · 256GB | 47.597 tok/s decode · 1,672.768 tok/s prefill | Qwen3.8 27B 4-bit MLX, native mlx_lm.benchmark, 32,768 input and 128 output tokens. | Median of 5, 20.143GB peak benchmark memory, speed only. raw summary. |
The Studio row includes a substantial input and a five-trial median. The M4 Pro mini row answers a short-input question on a different model. Neither establishes which machine finishes the same job sooner. When a comparison changes both hardware and software, ask which part of the difference you can reproduce.
Define your workload
Model and memory requirements
Write down the model you want, its exact quantization, your typical prompt size and the longest prompt you expect. Add the number of simultaneous requests and the other applications you keep open. A short chat has different requirements from long-document analysis. Several simultaneous coding sessions add another constraint.
Use the LlamaPerf memory calculator to narrow the options, then look for measured peak memory on a comparable setup. Budget for model weights, context state and runtime overhead, with headroom for macOS and your applications. Treat the download size as storage information. It cannot stand in for measured resident or peak memory.
Test your real document
Prompt length and answer checks
A large context setting is easy to confuse with a long-context test. The M4 mini example used about 88 input tokens with a 4,096-token configured window. The same author separately tested Qwen3.5:9b with 20,047 input tokens: first visible output took 112.2 seconds and subsequent generation ran at 14.6 tokens/s, with the model already loaded. Those are medians of three runs. That result is much more relevant to a long-document workflow than the short-chat headline. Original M4 mini measurements.
Use a representative document, preserve its token count and check the answer against known facts. A run that accepts the input still needs a quality check. For extraction, verify the requested fields. For coding, run the tests. For summarization, check important facts and omissions rather than judging fluency alone.
Compare fresh and cached requests
First use and follow-up use
If your assistant repeatedly works in one conversation, a reusable prefix cache can matter as much as fresh-prompt speed. Fireside Labs reports a Qwen3.8-Flash-Next Q8_0 run on an M5 Ultra 256GB using llama.cpp with MTP off: its 250K fresh prompt took 234 seconds before the first token, while a cached next step adding 64 new tokens took 0.64 seconds. Those timings describe different amounts of new work. They are useful for planning a conversation, but they cannot be substituted for one another. Timing definitions and results.
Ask for fresh-prompt latency, cached follow-up latency and loading time separately. A warmed model can still receive an uncached prompt. A cached follow-up may also stop being representative after changing the beginning of the conversation or switching models.
"Pay prefill once" (Fireside Labs)
Make the buying decision
Keep the runtime in the buying decision
Record the engine version and quantization format next to the Mac model. An MLX result, a GGUF result in llama.cpp and a speculative-decoding result can exercise different paths. The October Mac mini M6 study illustrates a useful reporting format: separate prose, code and JSON columns, with three-run medians and downloadable results. Use that workload separation when asking whether a headline speed applies to you.
Also distinguish one person's generation speed from aggregate throughput across simultaneous requests. If two people share the machine, measure both response times under that load. A higher aggregate rate can coexist with a longer wait for each person.
A buying checklist you can use
Choose one required model and quantization. Find evidence that the exact memory configuration can serve your intended context without unwanted swapping or offloading.
Set a tolerable first-token wait and total completion time for one representative task. Measure both on the runtime you expect to use.
Compare identical prompts, output limits, cache states and concurrency. Keep AR and speculative results separate.
Include answer checks, repeated runs and peak memory. Leave your normal applications open for a second pass.
Compare the total configuration cost only after those checks. Spend more when the extra capacity or measured time saving solves a requirement you have identified.
Start with the Mac report browser. For the latest Studio-specific context, read M5 Ultra Mac Studio early measurements. Use the same workload to check every configuration on your shortlist.
Frequently asked questions
Should I choose a Mac Studio or Mac mini for local LLMs?
Start with the model, quantization and context you need. Choose a configuration that fits them with headroom for your applications, then measure first-token wait and total task time. A Studio is worth considering when a specific capacity or measured performance limit on the mini blocks your work.
Do the three benchmark examples rank the Macs?
No. The examples use different models, quantizations, prompt lengths and runtimes. They show what information to inspect before making a comparison. They do not establish which computer would finish the same task sooner.
Does a large configured context prove a long prompt was tested?
No. Configured context describes capacity. Look for the actual input-token count and output length. A short question inside a large window does not measure the wait for a long document.
Can I use model download size as the memory requirement?
No. Budget for model weights, context state, runtime overhead, macOS and your other applications. Look for measured peak memory on a comparable setup and preserve headroom.
Should I compare cached and fresh-prompt latency?
Record both separately. A cached follow-up can reuse previous work, while a fresh prompt must process new input. Preserve loading time, actual new tokens, runtime and cache state with each result.