What You’ll Need
- A computer with at least 8GB RAM (16GB recommended)
- 5GB free disk space
- Windows 10/11, macOS, or Linux
- 15 minutes
No GPU required. A GPU makes things faster, but CPU inference works fine for smaller models.
Step 1: Install Ollama (2 minutes)
Ollama is the easiest way to run local LLMs. It handles model downloading, quantization, and serving — all from a single command.
Windows
- Go to ollama.com
- Download the Windows installer
- Run the
.exe— it installs and starts automatically - Ollama runs as a background service
macOS
- Go to ollama.com
- Download the Mac installer
- Drag to Applications
- Launch Ollama — it runs in the menu bar
Linux
| |
Verify installation:
| |
Step 2: Pull Your First Model (3 minutes)
Ollama models are pre-quantized and optimized for consumer hardware. Let’s start with a small, capable model:
| |
This downloads a 3-billion-parameter Llama 3.2 model. It’s about 2GB — small enough to run on almost anything with 8GB RAM.
What just happened? Ollama downloaded the model in GGUF format (quantized to 4-bit), stored it locally, and made it available for inference. The model file lives at ~/.ollama/models/ (or %USERPROFILE%\.ollama\models\ on Windows).
Step 3: Chat with Your Model (1 minute)
| |
You’re now chatting with a local AI model. Try:
| |
Type /bye to exit the chat.
No internet required. The model runs entirely on your machine. Disconnect your network and it still works.
Step 4: Try a Bigger Model (5 minutes)
If your machine has 16GB+ RAM or a GPU with 6GB+ VRAM, try a larger model:
| |
How to Choose a Model
| Model | Parameters | RAM Needed | VRAM Needed | Best For |
|---|---|---|---|---|
| llama3.2:3b | 3B | 4GB | 3GB | Quick tasks, low-end hardware |
| llama3.1:8b | 8B | 8GB | 6GB | General purpose, coding |
| qwen2.5:7b | 7B | 8GB | 6GB | Multilingual, coding |
| qwen2.5:14b | 14B | 16GB | 12GB | Complex reasoning |
| glm4.7:9b | 9B | 8GB | 8GB | Tool use, agents |
Step 5: Use the API (2 minutes)
Ollama runs an OpenAI-compatible API server on localhost:11434. You can use it with any tool that supports the OpenAI API:
| |
Or in Python:
| |
Step 6: Add a Web UI (2 minutes)
The command line is fine, but a web interface is nicer. Install Open WebUI (formerly Ollama WebUI):
With Docker:
| |
Open http://localhost:3000 in your browser. You now have a ChatGPT-like interface running entirely locally.
Without Docker:
| |
Troubleshooting
“Out of memory” errors
- Use a smaller model (3B instead of 8B)
- Close other memory-heavy applications
- If you have a GPU, ensure Ollama is using it:
ollama ps
Slow responses on CPU
- CPU inference is 10-50x slower than GPU
- Stick to 3B-7B models on CPU
- For faster CPU inference, try
llama.cppwith optimized builds
Model not using GPU
| |
What’s Next?
- Best GPUs for Local LLMs in 2026 — Upgrade your hardware
- Ollama vs LM Studio: Which Should You Choose? — Compare tools
- Setting Up ComfyUI for Local Image Generation — Add image generation to your stack
Use the VRAM Calculator to find the right model size for your GPU.