Nathan Hodgson
Library
Setup guidesIntermediate1 min readUpdated

Install Open Source LLMs For Free

How to install and run open source large language models locally for free.

Run powerful AI models locally on your own machine - no API costs, no data leaving your computer, available offline. Takes about 10 minutes to set up.

What You Need

  • A Mac (M1/M2/M3/M4) or Windows/Linux PC - 8GB RAM minimum, 16GB+ recommended
  • About 5-10GB of free storage per model
  • That's it

Step 1 - Install Ollama

Ollama is the simplest way to run local LLMs. Go to ollama.com and download the installer for your system. Install it like any other app.

Step 2 - Pull a model

Open Terminal (Mac) or Command Prompt (Windows) and run one of these:

Terminal
# Fast and capable - good starting point
ollama pull llama3.2

# Excellent for coding
ollama pull qwen2.5-coder

# Deepseek - strong reasoning
ollama pull deepseek-r1

# Mistral - fast and lightweight
ollama pull mistral

Step 3 - Chat with it

Terminal
# Start a conversation directly in terminal
ollama run llama3.2

# Or start the local API server
ollama serve

Talking to an LLM in Terminal works but is not ideal. Install Open WebUI for a ChatGPT-style interface that connects to your local Ollama models:

Terminal
docker run -d -p 3000:80 \
  --add-host=host.docker.internal:host-gateway \
  -v open-webui:/app/backend/data \
  --name open-webui \
  ghcr.io/open-webui/open-webui:main

Then go to http://localhost:3000 - full ChatGPT-style UI, running locally, completely free.