Install Ollama and Run LLMs Locally
Run Llama 3, Mistral, DeepSeek, and more AI models on your own PC — completely offline and private.
0 of 5 steps complete
What You'll Learn
Ollama is the easiest way to run large language models (LLMs) on your own computer. Once installed, you can chat with AI models entirely offline — no API keys, no internet connection, no usage limits.
Requirements
- At least 8 GB RAM (16 GB recommended for larger models)
- Windows 10/11, macOS 11+, or Linux
- ~4 GB free disk space per model
Why Ollama?
- 100% private — your data never leaves your machine
- No API costs
- Works offline
- Supports hundreds of models
Download and Install Ollama
Visit ollama.com and download the installer for your OS.
- Mac: Download the
.dmg, open it, drag Ollama to Applications - Windows: Download the
.exeinstaller and run it - Linux:
curl -fsSL https://ollama.com/install.sh | sh
After installing, Ollama runs as a background service automatically.
Pull Your First Model
Chat with the Model
Use the Web Interface (Optional)
List and Manage Models
AI models related to this guide
Llama 3.1 70B model profile
Meta's powerful open-source model. Runs locally with strong coding and reasoning. Requires 32GB RAM for smooth inference.
Qwen 2.5 Coder 7B model profile
Alibaba's specialized coding model. Outperforms GPT-4o on many coding benchmarks while running locally on 16GB RAM.
Llama 3.1 8B model profile
Lightweight version of Llama 3.1. Runs on consumer hardware with 8GB RAM. Good balance of speed and quality for local use.
Mistral 7B model profile
Efficient 7B model with excellent instruction-following. Runs on most consumer hardware and excels at coding tasks.
Related AI setup guides
Run DeepSeek Coder Locally with Ollama
DeepSeek is one of the world's best free coding AIs. Run it 100% offline on your PC in under 10 minutes.
Free APIsSetup OpenRouter — Free Access to 50+ AI Models
OpenRouter gives you a single free API key to access Claude, Llama, Mistral, DeepSeek, and 50+ other models.
Open Source ModelsRun Qwen2.5 Coder Locally — Best Free Coding AI
Qwen2.5 Coder from Alibaba rivals GPT-4 on coding tasks. Run it free, locally, on your own hardware.