How to Run Local AI on Windows: Ollama, LM Studio and Models That Actually Fit Your PC
Published October 21, 2026 · Last updated October 21, 2026
Some links on this page are affiliate links. If you buy through them, we may earn a commission at no extra cost to you. This never influences our rankings or opinions.
Running AI locally on Windows is genuinely useful in 2026: no per-token costs, no cloud privacy concerns, and it works offline. This guide walks you through two solid options (Ollama for command-line users, LM Studio if you prefer a GUI), picking models that actually fit your hardware, and fixing the three problems most people hit.
Before you start: can your PC run local AI?
Practical tiers, based on what we’ve run:
| Your hardware | What works | Example models |
|---|---|---|
| 8 GB RAM, no GPU | 3B-4B models, quantized | Qwen 3 4B, Gemma 3 4B, Phi-4 mini |
| 16 GB RAM, GTX/RTX 8 GB | 7B-14B quantized | Llama 3.3 8B, Qwen 3 14B (Q4) |
| 32 GB RAM, RTX 16-24 GB | 30B-70B quantized | Qwen 3 32B, Llama 3.3 70B (Q4), GPT-OSS 20B |
| Mac-style unified memory doesn’t apply; skip 70B+ on 16 GB | — | — |
The rule: a Q4-quantized model needs roughly its parameter size in GB of (VRAM+RAM), plus headroom. A 70B Q4 model needs ~45 GB; don’t attempt it on a 16 GB machine, it will swap and crawl.
Option 1: Ollama (simplest, command line)
-
Download the installer from https://ollama.com/download/windows and run it. It installs silently and starts a background server on
127.0.0.1:11434. -
Open PowerShell (not cmd) and pull your first model:
ollama pull qwen3:14b
-
Run it interactively:
ollama run qwen3:14b
Type a question, press Enter, and it responds in the terminal. Use
/byeto exit. -
Verify it’s serving the API for other apps:
curl http://localhost:11434/api/tags
Useful commands: ollama list (installed models), ollama ps (what’s loaded), ollama rm model (free disk space).
Making Ollama use your GPU
Ollama auto-detects NVIDIA (CUDA) and AMD (ROCm on supported cards). Check ollama ps — the
“PROCESSOR” column should say 100% GPU. If it says CPU:
- Update your NVIDIA drivers to the latest stable release.
- Check the Ollama log at
%LOCALAPPDATA%\Ollama\server.logfor “no compatible GPU found”. - Models bigger than your VRAM will split between GPU and CPU — that’s normal and slower, but usable.
Option 2: LM Studio (best for GUI lovers)
- Download from https://lmstudio.ai (Windows installer) and install.
- First run: use the built-in search, filter by model family (Llama, Qwen, Gemma) and RAM size, and download a model that fits (the app warns you before you waste bandwidth).
- Load the model in the chat tab. The right panel shows you actual tokens/second — that’s your speed reality check.
- To use it from other apps, open the Developer tab and start the local server. It
emulates the OpenAI API on
http://localhost:1234/v1, so anything that speaks OpenAI (like OpenCode) can use it.
Troubleshooting the classics
- “Installation has stopped” / installer stuck: Ollama needs Windows 10 22H2 or 11. On older builds, update Windows first.
- Model downloads fail mid-way:
ollama pullresumes; just rerun the same command. - Everything is slow: you’re probably on CPU. Pick a smaller model (7B instead of 14B), or enable GPU offload in LM Studio’s model load settings.
- Antivirus flags the installer: both Ollama and LM Studio are signed; if your AV complains, it’s likely a false positive — verify the publisher, then whitelist.
- Port already in use (11434 busy): another Ollama instance is running. Kill it in Task Manager or reboot.
What to do next
- Try
ollama run deepseek-r1:14bto see chain-of-thought reasoning locally. - Connect your local Ollama to OpenCode for a private coding assistant, or to Open WebUI (see our self-hosting guide) for a ChatGPT-style web interface on your own machine.
- When you outgrow local models, our API comparison shows what the hosted options cost.