How to Run DeepSeek and Llama 3 Locally on PC with Ollama: Complete Beginner Guide

The Era of Sovereign, 100% Private Local AI

While cloud AI platforms provide immense compute power, running open-source large language models (such as Meta’s Llama 3, DeepSeek-Coder, and Mistral) directly on your local hardware delivers unrivaled advantages: 100% data privacy, zero subscription fees, offline availability, and zero API rate limits.

In 2026, tools like Ollama make local AI deployment as simple as running a single terminal command. This step-by-step tutorial guides you through hardware requirements, installation, model selection, and setting up a ChatGPT-like graphical user interface on your PC.

Hardware & VRAM Requirements Matrix

Local LLM performance is determined primarily by your system’s unified memory or dedicated GPU VRAM:

Model Size Quantization Level Minimum VRAM / RAM Recommended Model
Small (3B – 8B) 4-bit (Q4_K_M) 8GB RAM or 6GB GPU VRAM llama3.1:8b, mistral:7b, phi3:mini
Medium (14B – 33B) 4-bit (Q4_K_M) 16GB – 24GB VRAM / Unified RAM qwen2.5:14b, deepseek-coder:33b
Large (70B) 4-bit (Q4_K_M) 48GB VRAM (or Apple M-Series 64GB) llama3.3:70b, qwen2.5:72b

Once your local model is running privately on your PC, test its capabilities using our production-ready prompts in our Prompt Engineering Masterclass and our foundational primer in AI for Beginners Guide.

Step-by-Step Installation & Setup with Ollama

Step 1: Download & Install Ollama

  1. Visit the official portal at ollama.com and download the installer for Windows, macOS, or Linux.
  2. Run the installer and complete the default setup wizard.

Step 2: Pull & Run Your First Local Model

Open PowerShell or Terminal and run the following command to download and launch Llama 3:

# Download and start interactive chat with Llama 3 (8B)
ollama run llama3.1

# For dedicated coding and software development:
ollama run deepseek-coder-v2

Step 3: Setting Up a ChatGPT-Like Web Interface (Open WebUI)

To interact with your local models via a clean browser UI with chat history, document uploads, and voice input, run Open WebUI via Docker:

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

Navigate to http://localhost:3000 in your browser to access your private, offline AI workstation.

Frequently Asked Questions (FAQs)

Does running models locally send any data to external servers?

No. Ollama runs completely offline on your local CPU and GPU. No prompts, attachments, or conversation logs are transmitted to external servers.

Can I use local Ollama models inside VS Code for coding autocomplete?

Yes. Install the free Continue.dev extension in VS Code and select Ollama as your model provider to get private, autocomplete pair programming directly in your editor.

Leave a Comment