1. Learn
  2. Get started

Ollama on a Mac: setup for Apple silicon, step by step

Install Ollama on an M-series Mac, pick a model that fits your memory, check it's using the GPU, and change the settings that matter.

Updated Oct 26, 2026 · RunItLocal.io

A Mac with Apple silicon (M1 or newer) is the easiest computer to run local AI on. There are no drivers to install. Ollama uses the GPU through Metal automatically, and the GPU shares the Mac's unified memory, so a 32 GB Mac can load models a 16 GB graphics card can't.

If you're choosing which Mac to buy, read Macs for local LLMs. This guide is about setting up the one you have.

Step 1: Install Ollama

Download Ollama for macOS from ollama.com, open it, and drag it to Applications. Start it once. It adds an icon to the menu bar and runs a small server in the background, and it offers to install the ollama command for Terminal.

Step 2: Pick a model for your memory

macOS lets the GPU use about two thirds of memory on Macs up to 36 GB, and about three quarters above that. Leave room for your other apps too.

Your Mac's memoryStart withDownload
8 GBqwen3:4b2.5 GB
16 GBqwen3:8b5.2 GB
24 to 32 GBgpt-oss:20b14 GB
36 to 48 GBqwen3:30b19 GB
64 GB and upllama3.3:70b43 GB

Step 3: Run it

Open Terminal and run the model for your memory, for example:

ollama run qwen3:8b

Type a question at the >>> prompt. Type /bye to quit. The Ollama cheat sheet has the rest of the commands.

Step 4: Check it's on the GPU

ollama ps

100% GPU is what you want. A split like 20%/80% CPU/GPU means the model is too big for the share of memory macOS gives the GPU. Drop to a smaller one.

You can also open Activity Monitor and look at the GPU History window while it answers.

How fast it will be

On a Mac, the chip matters more than the memory size for speed. A base M4 with 16 GB, from our calculator:

Apple M4, 16 GB · estimated with our calculator · full page

  • Qwen3 4BQuick everyday chat and summaries
    ~26 tok/s
    Usableqwen3:4b
  • Qwen3 8BA solid all-rounder for chat and writing
    ~13 tok/s
    Usableqwen3:8b
  • Gemma 3 12BReads images as well as text
    ~8 tok/s
    Slowgemma3:12b
  • Qwen3 14BNoticeably smarter at reasoning and code
    ~7 tok/s
    Slowqwen3:14b
  • gpt-oss 20BOpenAI's open model. Fast, strong reasoning
    needs 16 GB
    Too biggpt-oss:20b
  • Gemma 3 27BGoogle's best open model for its size
    needs 19 GB
    Too biggemma3:27b
  • Qwen3 30B-A3B30B smarts at small-model speed
    needs 21 GB
    Too bigqwen3:30b
  • Qwen3 32BStrong coding and long answers
    needs 22 GB
    Too bigqwen3:32b
  • Llama 3.3 70BClose to the big cloud models
    needs 45 GB
    Too bigllama3.3:70b
  • gpt-oss 120BOpenAI's largest open model
    needs 67 GB
    Too biggpt-oss:120b
  • Qwen3 235B-A22BAlibaba's flagship open model, for multi-GPU rigs
    needs 144 GB
    Too bigqwen3:235b
  • DeepSeek R1 671BThe full DeepSeek R1, for the biggest rigs
    needs 406 GB
    Too bigdeepseek-r1:671b

And an M4 Pro with 48 GB, which has more than twice the bandwidth:

Apple M4 Pro, 48 GB · estimated with our calculator · full page

  • Qwen3 4BQuick everyday chat and summaries
    ~60 tok/s
    Runs greatqwen3:4b
  • Qwen3 8BA solid all-rounder for chat and writing
    ~29 tok/s
    Usableqwen3:8b
  • Gemma 3 12BReads images as well as text
    ~19 tok/s
    Usablegemma3:12b
  • Qwen3 14BNoticeably smarter at reasoning and code
    ~16 tok/s
    Usableqwen3:14b
  • gpt-oss 20BOpenAI's open model. Fast, strong reasoning
    ~48 tok/s
    Runs greatgpt-oss:20b
  • Gemma 3 27BGoogle's best open model for its size
    ~9 tok/s
    Slowgemma3:27b
  • Qwen3 30B-A3B30B smarts at small-model speed
    ~48 tok/s
    Runs greatqwen3:30b
  • Qwen3 32BStrong coding and long answers
    ~8 tok/s
    Slowqwen3:32b
  • Llama 3.3 70BClose to the big cloud models
    needs 45 GB
    Too bigllama3.3:70b
  • gpt-oss 120BOpenAI's largest open model
    needs 67 GB
    Too biggpt-oss:120b
  • Qwen3 235B-A22BAlibaba's flagship open model, for multi-GPU rigs
    needs 144 GB
    Too bigqwen3:235b
  • DeepSeek R1 671BThe full DeepSeek R1, for the biggest rigs
    needs 406 GB
    Too bigdeepseek-r1:671b

On the M4 Pro, gpt-oss 20B and Qwen3 30B-A3B are estimated at about 48 tok/s, while the dense Qwen3 32B is about 8. Mixture-of-experts models read only a small part of their weights per token, which suits Macs well. See mixture of experts explained.

Settings worth changing

Ollama on a Mac reads its settings from environment variables set with launchctl. For example, to move models to an external drive:

launchctl setenv OLLAMA_MODELS /Volumes/External/ollama-models

Then quit Ollama from the menu bar and open it again. The same pattern works for OLLAMA_HOST and OLLAMA_KEEP_ALIVE. Settings made with launchctl setenv are lost on restart, so you'll need to run it again after a reboot. See where Ollama stores models.

Giving the GPU more memory. On recent macOS versions you can raise the share of memory the GPU may use with sudo sysctl iogpu.wired_limit_mb=<megabytes>. It resets on reboot. Leave several GB for macOS itself, or the whole machine slows down.

Other good Mac apps

  • LM Studio has a model browser and chat window, and can run models in Apple's MLX format, which is often a little faster on Macs than GGUF. See Ollama vs llama.cpp vs LM Studio.
  • Open WebUI gives Ollama a ChatGPT-style window. See set up Open WebUI.

Intel Macs

Older Intel Macs run Ollama on the processor only. Stick to qwen3:4b, and read running AI without a GPU for what to expect.

Where to go next