How to run a local LLM on the Apple M5 (16GB)

A step-by-step setup for beginners. With 16 GB of unified memory, the best everyday model for this Mac is Gemma 4 12B, which runs faster than you can read.

What to run on the Apple M5 (16GB)

The best model for each job that fits fully in memory at the default Q4_K_M download and runs at a comfortable reading speed.

JobModelSpeedOllama command
Chat and everyday questionsGemma 4 12BFaster than you can readollama run gemma4:12b
Help with codeQwen2.5 Coder 7BFaster than you can readollama run qwen2.5-coder:7b
Writing and editingGemma 3 12BFaster than you can readollama run gemma3:12b
Questions about my documentsGemma 3 12BFaster than you can readollama run gemma3:12b
Maths, logic and homeworkDeepSeek R1 0528 Qwen3 8BFaster than you can readollama run deepseek-r1:8b

Set up Gemma 4 12B in about ten minutes

Pick one app. LM Studio is easiest if you've never used a terminal.

LM Studio on Mac

  1. Go to lmstudio.ai and click Download for Mac.
  2. Open the downloaded file and drag LM Studio into your Applications folder, then open it from there.
  3. If it offers to download a first model, you can skip that. Click the search (magnifying glass) icon in the left sidebar to open Discover.
  4. Type Gemma 4 12B in the search box. On a Mac you may see both MLX and GGUF versions: either works, and MLX is often a little faster.
  5. Choose the 4-bit (or Q4_K_M) version if a list appears, then click Download.
  6. Open the Chat tab, click Select a model to load at the top, pick Gemma 4 12B, and type your first message.

Ollama on Mac

  1. Go to ollama.com/download and download Ollama for macOS.
  2. Open the download, move Ollama to your Applications folder, and open it. Allow it to install its command-line tool when asked.
  3. Open Terminal (press Cmd + Space and type "Terminal") and run the command below. The first time, it downloads Gemma 4 12B, which can take a while.
  4. ollama run gemma4:12b
  5. When you see >>>, type a message and press Enter. Type /bye to quit. Ollama's own app window can also chat with any model you have downloaded.

Run it in the cloud

Want a bigger model than the Apple M5 (16GB) can hold?

Rent a GPU with more memory by the hour, or see whether upgrading or renting is cheaper for you.

Frequently asked questions

What is the best local LLM for the Apple M5 (16GB)?

For everyday chat, Gemma 4 12B: it fits in the Apple M5 (16GB)'s 16 GB at Q4_K_M and runs at about 13 tokens per second.

Should I use LM Studio or Ollama on the Apple M5 (16GB)?

Either works. LM Studio is a point-and-click app and the easiest start; Ollama is a one-line command that other apps and coding tools can connect to.

Can the Apple M5 (16GB) run a 70B model?

Not fully in memory: a 70B model needs about 46.1 GB at Q4_K_M. It would spill into system RAM and run very slowly, so renting a GPU is the practical option.