Your MacBook Pro is a private AI server. Unleash it.
Find the right model for your Mac and run it on your own hardware. Your conversations can stay right where they belong.
LLM calculator for Apple Silicon
Select your chip and unified memory to see which models fit.
Your configuration
Find these details in → About This Mac.
Hardware estimate
M4 · 16 GBRecommended models
Fits at 4-bitEstimates assume one conversation, a short context and GPU acceleration. Long prompts, other apps and the runtime can change results. The speed range is a bandwidth-based estimate.
How to run a local LLM on Mac
This Apple Silicon guide covers local large language models (LLMs), from a desktop app to Ollama or MLX. Start with the memory calculator, then choose an installation path.
Start with a desktop app and go from download to your first offline conversation.
Download a desktop app
Install the Apple Silicon build of LM Studio. Jan and GPT4All are alternatives if you prefer their interface.
Pick a model that fits
In LM Studio, open Discover, look up a model from your results and choose a GGUF Q4_K_M file (or MXFP4 for gpt-oss). Prefer the green compatibility indicator when your app shows one. Start with a short context.
Chat offline
When the download finishes, load your model in Chat. Disconnect from Wi-Fi to confirm a conversation works offline. Use a local model and leave web search, remote providers and external tools disabled for private chats.
- Unified memory
- The CPU, GPU and macOS share one pool of memory. Closing memory-heavy apps leaves more room for your model.
- 7B vs 70B
- B means billion parameters. More parameters usually require more memory. A small model is a good starting point for everyday questions.
- Local privacy
- A downloaded model can answer on-device. Some apps save chat history on disk, and optional online features can send data outside your Mac.
Run a model from your terminal, then connect a local client or try a different engine.
Install and start Ollama
Install with Homebrew. Leave the server running in the first terminal, then open a second one to run the model. If the Ollama app already runs the server, skip ollama serve.
brew install ollama ollama serve
Run a model
This command uses the coding model recommended for your configuration. The first run downloads its weights.
ollama run qwen2.5-coder:14b
Connect your local API
Use this OpenAI-compatible base URL in an app on the same Mac. If the client requires an API key, enter ollama as a placeholder. Continue’s Ollama provider and Open WebUI’s native Ollama connection use http://localhost:11434 as the server URL.
http://localhost:11434/v1
Alternative engines
MLX LM
Create a virtual environment, then install MLX LM and run a small model from the MLX Community.
python3 -m venv .venv source .venv/bin/activate pip install mlx-lm mlx_lm.chat --model mlx-community/Qwen2.5-Coder-3B-Instruct-4bit
llama.cpp
Install Xcode Command Line Tools and CMake first. Build with Metal enabled, then run a downloaded GGUF file by replacing the example path.
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build -DGGML_METAL=ON cmake --build build --config Release -j ./build/bin/llama-cli -m ./model.gguf -ngl 99
- Memory bandwidth
- During token generation, the GPU repeatedly reads the weights. Higher bandwidth can improve speed. For example, M4 Pro reaches 273 GB/s and M4 Max offers 410–546 GB/s depending on the SKU.
- GGUF vs MLX
- GGUF packages weights for llama.cpp and compatible runtimes. MLX models use a different layout, commonly safetensors with MLX metadata, optimized for Apple Silicon. Download the format your engine expects.
- Context and KV cache
- The KV cache grows with context length and concurrent sessions. Start around 2K–4K tokens and increase only when memory pressure stays low.
- Quantization
- Q4_K_M saves the most memory of these three formats. Q5_K_M and Q6_K usually preserve more detail and use more memory. Q8_0 is roughly 8-bit and FP16 uses about two bytes per weight.
Compare local AI tools for Mac
Choose a complete chat app, a local inference engine, or a web interface.
| Tool | Ease of use | Open-source | MLX / Metal | Local API | Built-in chat |
|---|---|---|---|---|---|
| LM Studio | No | MLX / Metal | Yes | Yes | |
| Ollama | Yes | Metal | Yes | Yes | |
| Jan.ai | Yes | MLX / Metal | Yes | Yes | |
| MLX (Apple) | Yes | MLX / Metal | Yes | No | |
| Open WebUI | Restricted license | Via backend | Yes | Yes |
Open WebUI relies on an inference backend for acceleration. Jan’s native MLX support is experimental. Ease ratings are editorial estimates.
Try your first prompt
Open an example, copy its instructions and test it with your local model.
DocumentsSummarize a sensitive PDF
Extract the main points and keep the source on your Mac.
Temperature 0.2
System prompt
You summarize documents using only the supplied material. Flag gaps and cite page numbers when available.
User prompt
With the PDF attached to an offline document tool, or with its text pasted below, summarize the main conclusions in five bullets. List decisions, deadlines and any open questions. [PDF text]
DevelopmentGet help with code in VS Code
Review a function using a local coding model.
Temperature 0.2
System prompt
You are a coding assistant. Preserve existing behavior and explain assumptions with concise examples.
User prompt
Explain what this function does, point out edge cases and propose a minimal refactor with a short test example. [Code]
TranslationTranslate a passage
Keep technical terms and formatting consistent.
Temperature 0.3
System prompt
You are a technical translator. Preserve meaning, tone, headings and formatting. List genuinely ambiguous terms separately.
User prompt
Translate this text into idiomatic French. Keep product names and code identifiers unchanged. [Text]
WritingDraft a clear email
Turn rough notes into a polished first draft.
Temperature 0.7
System prompt
Write concise, natural business prose. Keep the facts provided and label missing details.
User prompt
Draft a friendly email under 150 words from these notes. Include a subject line and one clear next step. [Notes]
FAQ & troubleshooting
Quick answers to common questions about running models locally.
Which local LLM should I start with?
For 8 GB of unified memory, start with a 2B–3B model in 4-bit. At 16 GB, a 7B–8B model is a practical starting point, and some 14B models fit with a short context. For coding, try Qwen 2.5 Coder. For general chat, try Gemma 2 or Mistral NeMo. Use the calculator to check the specific model and quantization.
Can I use a local LLM without internet?
Yes. Download the app and model weights first, then select the downloaded model. Text inference can run offline. Disable web search, remote providers and external tools if you want your prompts and documents to stay on your Mac.
Why is my Mac heating up or its fans spinning?
Inference keeps the GPU busy, especially when reading a long prompt. Try a smaller model, shorten the context or pause parallel jobs. Keep the vents clear and check CPU and GPU activity in Activity Monitor.
Why is it slow even with 16 GB of RAM?
Memory is shared with macOS and other apps. When it runs out, macOS can swap data to disk. Close heavy apps, check Memory Pressure in Activity Monitor and try a 7B model in Q4_K_M with a context of 2K–4K tokens.
What is the difference between Instruct and Reasoning models?
Instruct models are tuned to follow instructions and generally suit direct chat. Reasoning models such as DeepSeek-R1 can spend extra tokens working through problems. They often take longer and benefit from additional context headroom.