Install Ollama
One command install. Ollama automatically detects your Apple Silicon and uses Metal GPU acceleration.
curl -fsSL https://ollama.com/install.sh | shPull and run a model
Ollama defaults to Q4_K_M GGUF which is ideal for most use cases. Prefer Qwen3 8B when available for stronger reasoning.
# Pull Llama 3.1 8B (default Q4_K_M, ~5.7 GB)
ollama pull llama3.1:8b
# Stronger 2026 default for multilingual + thinking:
# ollama pull qwen3:8b
# Or Qwen2.5 7B
ollama pull qwen2.5:7b
# Run interactively
ollama run llama3.1:8bOpenAI-compatible API
Ollama exposes an OpenAI-compatible API at port 11434 — drop-in replacement for any app using OpenAI SDK.
curl http://localhost:11434/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{"model":"llama3.1:8b","messages":[{"role":"user","content":"Hello!"}]}'Related guides
Mac M3 Pro: Realistic Model Limits
What actually fits in 18GB or 36GB unified memory with Ollama and llama.cpp.
M1 / M2 Mac 8GB: Realistic Ollama Limits
Unified memory is shared with macOS — here is what actually works on base MacBooks without swapping.
Docker Compose LLM Stack: Ollama + Open WebUI
A production-ready Docker Compose stack that gives you a local ChatGPT experience with one command.