Key fact: ollama run qwen3.8:27b needs about 18.2 GB at Q4 before macOS takes its share of unified memory.
How we got it: 27 × 0.5 × 1.2 + 2 = 18.2. Ollama listed an 18 GB download on 2026-10-03, plus a qwen3.8:27b-mlx tag.
Checked:
By LLM Hardware team · Methodology ·
Editorial: AI drafted the step-by-step; the Apple-specific gotchas (Metal toggles, MLX vs Ollama tradeoffs) come from the MLX, Ollama and llama.cpp sources listed at the end of this guide.
Checked 2026-10-13. Author: LLM Hardware team. This site does not store or show Amazon prices. Check current price on Amazon.
Updated 24 October 2026 · Ollama, MLX, and the Qwen3.8 / Gemma 4 tags · Apple Silicon and Intel
Key fact: ollama run qwen3.8:27b needs about 18.2 GB at Q4 before macOS takes its share of unified memory.
How we got it: 27 × 0.5 × 1.2 + 2 = 18.2. Ollama listed an 18 GB download on 2026-10-03, plus a qwen3.8:27b-mlx tag.
Checked:
Key fact: Gemma 4 E4B is a 16 GB Mac model. Gemma 4 26B-A4B is a 36 GB Mac model.
How we got it: Unsloth E4B Q4_K_M file 4.98 GB. 26B-A4B formula on 25.2B total is 17.1 GB, and a 24 GB Mac is shared with the OS.
Checked:
Methodology — parameter math, quantization bytes, and the source list.
Any Mac made since 2020 can run large language models locally — no cloud subscription, no data leaving your machine. Apple Silicon Macs use Metal GPU acceleration automatically; Intel Macs fall back to CPU. This guide gets you running in under 5 minutes and covers every Mac configuration from an 8 GB M1 to a 64 GB M4 Max.
Requires macOS 12 Monterey or later and Homebrew (install from brew.sh if needed). The whole sequence takes about 2 minutes plus model download time.
Step 1 — Install Ollama
brew install ollama
Alternative: curl -fsSL https://ollama.com/install.sh | sh or download from ollama.com
Step 2 — Start the Ollama server
ollama serve
Leave this running in one Terminal tab. The server listens on http://localhost:11434
Step 3 — Download and run a model
ollama run qwen3:8b
Qwen3 8B at Q4_K_M is 8 × 0.5 × 1.2 + 2 = 6.8 GB. That is a 16 GB Mac once the OS is counted, and a squeeze on 8 GB. phi4:14b is 10.4 GB. llama3.3:70b is 44 GB.
On Apple Silicon: Metal GPU is automatic
Ollama detects an M-series chip and uses Metal with no extra flags. Unified memory is one pool shared with macOS, so a 24 GB Mac is not the same fit as a 24 GB discrete GPU.
These tags were on the Ollama library on 3 October 2026. The gigabytes in the right column are this site’s short-context formula, not a speed figure. The fit table below uses the same formula.
36 GB Studio, or a 24 GB Mac if you keep the chat short
ollama run qwen3.8:27b
27B dense, Apache-2.0. Formula 18.2 GB. The library listed an 18 GB download and a qwen3.8:27b-mlx tag. Unsloth’s UD-Q4_K_XL file was 17.6 GB.
Same machines, MoE instead of dense
ollama run gemma4:26b
Google’s card: 25.2B total, 3.8B active, Apache-2.0. Formula on the total is 17.1 GB. Ollama listed 16–19 GB. There is a gemma4:26b-mlx tag.
16 GB Mac, edge multimodal
ollama run gemma4:e4b
Unsloth’s E4B Q4_K_M file is 4.98 GB. E2B’s Q4_K_M file is 3.11 GB (ollama run gemma4:e2b). Both include text, image, and audio on Google’s card.
Do not run Kolibri-1 here. Aleph Alpha’s card lists about 78 GB of FP8 weights and datacenter GPUs. Buy the memory before the weights: the in-stock Amazon Macs are on the Apple Silicon guide, and the arithmetic is on the VRAM calculator. If a discrete GPU is the better fit, use the GPU guide.
Each cell is a fit verdict from this site’s VRAM formula at Q4_K_M, not a speed figure. Apple Silicon uses Metal; Intel uses CPU only.
| Mac | Unified Memory | Qwen3 8B (6.8 GB) | Phi-4 14B (10.4 GB) | Llama 3.3 70B (44 GB) | Notes |
|---|---|---|---|---|---|
| Any Intel Mac | System RAM | CPU, needs 6.8 GB | CPU, needs 10.4 GB | CPU, needs 44 GB | CPU-only inference — slow but works for small models |
| M1/M2/M3 8 GB | 8 GB unified | ✗ (4 GB usable) | ✗ | ✗ | About 4 GB usable after the macOS reserve: small models only |
| M1/M2/M3/M4 16 GB | 16 GB unified | fits | fits | ✗ | Fits 8B and 14B at Q4 with a short context |
| M4 Mac Mini 24 GB | 24 GB unified | fits | fits | ✗ | Recommended entry point |
| M4 Pro 24 GB | 24 GB unified | fits | fits | ✗ | Same memory fit as the M4 24 GB; the Pro chip adds memory bandwidth |
| M4 Pro 48 GB | 48 GB unified | fits | fits | tight | Amazon B0DS2XP86K and B0DYFCQ7CB unavailable 2026-10-01. Not a buy-now. |
| M4 Max 64 GB | 64 GB unified | fits | fits | fits | Amazon B0FNS1ZX5B unavailable 2026-10-01. Configure 64GB+ at Apple. |
| M5 Pro 24 GB | 24 GB unified | fits | fits | ✗ | In stock 2026-10-01,669.99 (B0HGGHNQY6). Q4 ~7–27B; 27B tight. |
| M5 Max 36 GB | 36 GB unified | fits | fits | ✗ | In stock 2026-10-01,449 (B0HGKSQMX6). Q4 ~16–32B, not 70B+ MoE. |
Fits = the Q4_K_M estimate from the VRAM calculator (params × 0.5 × 1.2 + 2 GB) leaves at least 10% of the Mac’s memory free after a 4 GB macOS reserve. Tight = it fits inside the last 10%. ✗ = it does not fit at Q4_K_M. Intel Macs run on the CPU from system RAM, so their cells show the memory the model needs. Buy-now prices and stock are in the Apple Silicon guide.
Four tools cover most Mac LLM use cases. Ollama is the foundation most others build on — even if you plan to use a GUI, install Ollama first.
| Tool | Type | Install | Best For |
|---|---|---|---|
| Ollama | CLI + API server | brew install ollama | Developers, scripting, API access |
| LM Studio | GUI app | lmstudio.ai download | Beginners, model browsing |
| Open WebUI | Browser UI (requires Ollama) | pip install open-webui | ChatGPT-like interface |
| MLX Community | Python framework | pip install mlx-lm | Developers, Apple Silicon native speed |
Adding a ChatGPT-style interface
Open WebUI runs in your browser and connects to the Ollama server. Install it with pip, then open localhost:8080.
pip install open-webui open-webui serve
MLX for maximum Apple Silicon speed
MLX is Apple's own ML framework. For some models it outperforms Ollama/llama.cpp on Apple Silicon by leveraging the Neural Engine.
pip install mlx-lm mlx_lm.generate --model mlx-community/Qwen3-8B-4bit \ --prompt "Explain unified memory"
Metal GPU acceleration is automatic
Ollama detects Apple Silicon at startup and uses Metal for all GPU operations. No flags, environment variables, or configuration needed. You can confirm GPU usage in Activity Monitor: open it, go to Window > GPU History, and watch GPU utilization spike to 80-100% while a model generates.
All unified memory is available — no separate VRAM limit
Unlike a PC with a discrete GPU (where only the GPU's dedicated VRAM pool is usable for inference), Apple Silicon Macs use all system RAM as "VRAM." An M4 Max with 64 GB has 64 GB available for model weights, minus what macOS and running apps consume (~4-6 GB at idle). There is no PCIe bottleneck — memory bandwidth to the GPU is the same as total system memory bandwidth.
Memory pressure and swap
If you load a model that is too large for available RAM, macOS will swap to SSD. This tanks inference speed dramatically (10x or more slowdown). Watch memory pressure in Activity Monitor: if it turns orange or red while a model loads, you need a smaller model or higher quantization. The 8B model at Q4_K_M uses roughly 5 GB — safe on any 8 GB Mac. The 14B at Q4_K_M uses about 8.5 GB — safe on 16 GB Macs.
Check memory pressure: Activity Monitor > Memory tab > Memory Pressure (bottom of window).
Choosing quantization on Apple Silicon
Q4_K_M is the standard starting point — it balances size and quality well. On 16 GB Macs, stick to Q4_K_M for 7B models. On 24 GB, you can run 7B at Q8 (near-lossless) or 14B at Q4_K_M. The M4 Pro chip at 48 GB can run 13B at Q8 and 34B at Q4_K_M comfortably. Higher quantization (Q8, FP16) improves output quality at the cost of more memory.
Ollama runs on Intel Macs (macOS 12+) using CPU-only inference. Intel integrated graphics do not have Metal support that Ollama uses for LLM acceleration, so all computation falls on the CPU cores. Expect generation to be noticeably slower than on Apple Silicon.
What works on Intel Mac
What to avoid on Intel Mac
Recommendation for Intel Mac users
Install Ollama and run ollama run qwen3:8b to test. If the speed is acceptable for your use case, great. If you want faster inference, an Apple Silicon Mac mini runs the same models on its GPU through Metal.
Error: model requires more system memory than available
The model's Q4_K_M weights exceed your available RAM minus what macOS needs. Fix: run a smaller model or use a more aggressive quantization.
# Instead of phi4:14b on an 8 GB Mac, use: ollama run qwen3:8b # Or pull the 4-bit version explicitly: ollama pull qwen3:8b:q4_K_M
Model loads but generation is extremely slow
macOS is swapping model weights to the SSD. The model is too large for available RAM. Open Activity Monitor, check Memory Pressure — it is likely orange or red. Fix: close other applications, restart Ollama, or switch to a smaller model.
# Check how much RAM the model needs: ollama show qwen3:8b --modelinfo | grep size # Stop all models to free memory: ollama stop
ollama: command not found after brew install
Homebrew's bin directory is not in your PATH. Run the path fix or use the direct installer instead.
# Add Homebrew to PATH (add to your ~/.zshrc too): export PATH="/opt/homebrew/bin:$PATH" # Or use the direct installer: curl -fsSL https://ollama.com/install.sh | sh
Model stuck at "pulling manifest" or download stalls
Network issue or Ollama registry timeout. Press Ctrl+C to cancel, then retry. If it keeps stalling, try pulling a different model first to confirm the registry is reachable, or check ollama.com status. Large models (70B) can take 30+ minutes on a typical home connection — the progress bar may appear frozen but is still downloading.
Three options: (1) Run "brew install ollama" in Terminal if you have Homebrew. (2) Run "curl -fsSL https://ollama.com/install.sh | sh" to use the official install script. (3) Download the macOS app directly from ollama.com. All three produce the same result. After installing, run "ollama serve" to start the server and "ollama run qwen3:8b" to download and run your first model. macOS 12 Monterey or later is required.
Yes — Ollama uses Apple's Metal API for GPU acceleration on Apple Silicon (M1, M2, M3, M4) automatically. No configuration is needed. When you run a model, Ollama detects the Metal-capable GPU and offloads all layers to it. You can verify this by watching Activity Monitor > GPU History while a model is generating — you will see GPU utilisation spike to 80–100%. On Intel Macs, Ollama falls back to CPU-only inference, which is significantly slower.
8 GB unified is a small-model machine once macOS has taken several GB. Qwen3 8B at Q4_K_M is 8 × 0.5 × 1.2 + 2 = 6.8 GB, so 16 GB is the comfortable Mac for that tag, not a claim that 8 GB has lots of spare KV cache. 24 GB unified can hold Qwen3.8-27B at Q4 (18.2 GB) only as a tight short context; a 36 GB Studio is the practical Mac. Gemma 4 E4B fits 16 GB (Unsloth Q4_K_M file 4.98 GB). Gemma 4 26B-A4B is 17.1 GB on its 25.2B total. Llama 3.3 70B at Q4_K_M is 44 GB, so 48 GB is tight and 64 GB is the headroom tier. 34B at Q8 is 42.8 GB and does not fit 32 GB.
Yes, but with significant limitations. Ollama runs on Intel Macs using CPU inference only — there is no Metal GPU acceleration for Intel integrated graphics in the LLM context, so generation is much slower than on Apple Silicon. Intel Macs are usable for experimentation with small models (7B and below), but Apple Silicon is strongly recommended for any regular use.
On 3 October 2026 the Ollama library had ollama run qwen3.8:27b (listed at 18 GB, with a qwen3.8:27b-mlx tag) and ollama run gemma4:26b (listed at 16–19 GB). Our VRAM formula is 18.2 GB for the 27B Q4 and 17.1 GB for Gemma 4 26B-A4B counted at 25.2B total parameters. Use those on a 36 GB Mac. On a 16 GB Mac use ollama run gemma4:e4b or gemma4:e2b instead. Do not point qwen3:32b at Qwen3.8, and do not expect either 27B-class model to fit an 8 GB Mac.
For raw token throughput on Apple Silicon, MLX (Apple's ML framework) is often faster than Ollama/llama.cpp for certain workloads because it is optimised specifically for the Apple Silicon architecture, including the Neural Engine. Install it with "pip install mlx-lm" and run models from the MLX Community on Hugging Face. For convenience and ease of use, Ollama with Metal acceleration is the fastest to get running and handles most use cases at near-MLX speeds.
Behaviour, file-format and runtime details on this page are pulled from primary upstream docs and the sources listed below. The full sitewide methodology lives on the methodology page. For this guide we relied most on:
Spot a number that does not match the linked source? Contact us and we will update the guide.