Local LLM Setup Guide 2026: Run AI Models on Windows, Mac
You want to run AI models locally for privacy and cost savings, but the setup seems complicated.
📜 Table of Contents
- Running AI Locally Is Easier Than You Think
- Hardware Requirements
- Reported Speeds
- Step One: Choose a Tool
- Option A: Ollama — simplest, recommended for beginners
- Option B: GPT4All — easiest, fully graphical
- Option C: LM Studio — best on Windows
- Step Two: Choose a Model
- Step Three: Connect It to Your Tools
- VS Code with Continue
- In the browser with Open WebUI
- Calling the API
- Performance Tuning
- 1. Pick the right quantisation
- 2. Hardware acceleration
- 3. Saving RAM
- Common Questions
- Summary
- Related
📖 Keep reading
Running AI Locally Is Easier Than You Think
Many people assume a local model needs dedicated hardware, complex environment setup, and compiling things from source. In 2026 none of that is true.
Ollama, GPT4All, and LM Studio all offer genuine one-click installation. You do not need:
- a $3,000 GPU
- Linux
- to compile anything
- to configure CUDA
You need: a computer (a laptop is fine), 8GB of RAM or more, 10GB of disk, and five minutes.
Hardware Requirements
| Machine | Spec | Models it runs | Result |
|---|---|---|---|
| Ordinary laptop | 8GB RAM, no GPU | Phi-3 (3.8B), Qwen2.5-Coder (1.5B) | Simple Q&A, text generation |
| Office desktop | 16GB RAM, no GPU | Llama 3.1 (8B), Qwen 2.5 (7B) | Daily conversation, coding help |
| Gaming laptop | 16GB+ RAM, RTX 3060+ | Qwen 2.5 (14B), DeepSeek-Coder-V2 | Programming, document analysis |
| Workstation | 32GB+ RAM, RTX 4090+ | Llama 3 (70B), Qwen 2.5 (72B) | Heavy enterprise tasks |
The critical resource is RAM, not the GPU. A quantised 7B model needs only 4–6GB and runs at roughly 5–15 tokens/s — enough for daily use.
Reported Speeds
| Device | Model | Speed | Experience |
|---|---|---|---|
| MacBook Air M1 (8GB) | Qwen2.5-Coder:7B | 12 tok/s | Smooth, good for coding help |
| Windows laptop, i5 (16GB) | Llama 3.1:8B | 8 tok/s | Usable, slight delay in conversation |
| Desktop, R7 (32GB) | Qwen 2.5:14B | 15 tok/s | Smooth, strong Chinese |
| Server, E5 (64GB) | Llama 3:70B (Q4) | 5 tok/s | Slow but high quality, fine for batch work |
Source: Ollama's published benchmarks and community reports. Speed varies with hardware and load.
Step One: Choose a Tool
Option A: Ollama — simplest, recommended for beginners
Windows: download OllamaSetup.exe from ollama.com/download, run it, open a terminal, and check ollama --version.
Mac: brew install ollama
Linux: curl -fsSL https://ollama.com/install.sh | sh
# a good starting model
ollama pull llama3.1:8b
# strong on Chinese
ollama pull qwen2.5:7b
# start chatting
ollama run llama3.1:8b
Any one of those commands and you are running AI locally. That is the whole thing.
Option B: GPT4All — easiest, fully graphical
77K stars, Windows/Mac/Linux. A complete GUI, no command line at all: download from gpt4all.io, install, it pulls a default model, start chatting. It also has built-in local document RAG.
Weak spots: less model flexibility than Ollama, smaller community.
Option C: LM Studio — best on Windows
Download from lmstudio.ai, install, search a model, download, load. Ships a chat interface and an OpenAI-compatible API. GPU acceleration on Windows is solid.
Weak spots: less open than Ollama, fewer features on Mac.
Step Two: Choose a Model
| Use | Model | Params | RAM needed |
|---|---|---|---|
| General conversation (Chinese) | Qwen 2.5 | 7B–14B | 4–8GB |
| General conversation (English) | Llama 3.1 | 8B | 4GB |
| Coding | DeepSeek-Coder-V2 | 16B | 8GB |
| Light coding | Qwen2.5-Coder | 7B | 4GB |
| Quick Q&A | Phi-3 | 3.8B | 2GB |
| Enterprise (GPU) | Llama 3 | 70B | 36GB+ |
| Your RAM | Best model | Quantisation |
|---|---|---|
| 8GB | Qwen2.5:7B / Llama3.1:8B | Q4_K_M (~4–5GB) |
| 16GB | Qwen2.5:14B / DeepSeek-Coder-V2:16B | Q4_K_M (~8–10GB) |
| 32GB | Qwen2.5:32B / Command R:35B | Q4_K_M (~16–18GB) |
| 64GB+ | Llama 3:70B / Qwen2.5:72B | Q4_K_M (~36–40GB) |
What is quantisation? Compressing the model. Q4 cuts memory use by roughly 75% with under 5% quality loss — imperceptible for daily use.
Step Three: Connect It to Your Tools
VS Code with Continue
Install the Continue extension and point it at Ollama:
{
"models": [
{
"title": "Local Ollama",
"provider": "ollama",
"model": "qwen2.5-coder:7b"
}
]
}
In the browser with Open WebUI
docker run -d -p 3000:8080 \
-v open-webui:/app/backend/data \
ghcr.io/open-webui/open-webui:main
Open http://localhost:3000 for a ChatGPT-grade interface with the model running on your own machine.
Calling the API
Ollama serves an OpenAI-compatible API on port 11434:
from openai import OpenAI
client = OpenAI(
base_url="http://localhost:11434/v1",
api_key="ollama" # any value; local has no auth
)
response = client.chat.completions.create(
model="qwen2.5:7b",
messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)
Performance Tuning
1. Pick the right quantisation
| Quant | Memory saved | Quality loss | When |
|---|---|---|---|
| Q8_0 | ~50% | Negligible | High quality, RAM to spare |
| Q4_K_M | ~75% | Small | The default, balanced |
| Q3_K_S | ~80% | Slight | When RAM is tight |
| Q2_K | ~85% | Noticeable | Last resort, not recommended |
2. Hardware acceleration
- Windows with NVIDIA — Ollama uses CUDA automatically, no configuration
- Windows with AMD — use the ROCm or Vulkan backend
- Mac with Apple Silicon — Metal acceleration is automatic and fast
- No GPU — CPU mode still runs a 7B model at about 5–8 tok/s
3. Saving RAM
# limit Ollama's concurrency
export OLLAMA_NUM_PARALLEL=1
Also close unnecessary browser tabs, and prefer GGUF Q4 builds.
Common Questions
Will this run on an old 8GB laptop?
Yes. Qwen2.5-Coder:7B at Q4 needs about 4GB and runs smoothly.
Mac or Windows — which setup?
Mac: Ollama, because Metal acceleration works well. Windows: Ollama or LM Studio, either is fine.
Will it slow down my normal work?
A 7B model holds about 4GB, invisible on a 16GB machine. On 8GB, close other heavy applications.
How much data does downloading a model use?
7B is about 4–5GB, 14B about 8–10GB. Use Wi-Fi.
Do models update?ollama pull updates incrementally — only changed layers download.
Summary
Hardware: a computer you already own (8GB RAM to start)
Setup time: 5 minutes (Ollama plus one command)
Model cost: zero, all open source
Running cost: electricity
Data privacy: 100% local
Windows, Mac, or Linux — all three can run AI models locally today.
Related
Written by our editorial team; tools listed here are tested or verified against public sources. Links point to official sites or GitHub repos for reference only — no paid placements.