RoboDodd

Run DeepSeek-R1 on a Windows PC Locally

Run DeepSeek-R1 locally on Windows with Ollama and Open WebUI. A step-by-step guide to a private offline AI assistant, no cloud or API keys needed at all.

DeepSeek-R1 running locally on a Windows PC with Ollama and Open WebUI
DeepSeek 3 min read

Running the DeepSeek AI model on a Windows machine is straightforward and brings advanced AI capabilities to your desktop. This guide will walk you through the setup process, from installing Ollama to running DeepSeek and exploring optional enhancements with Open WebUI.


Prerequisites

  1. Windows 10 or Later: Ensure your machine is running at least Windows 10.
  2. Recommended Hardware: While DeepSeek can run without a dedicated GPU, having one will significantly improve performance.

Step 1: Install Ollama

  1. Download Ollama:
  2. Run the Installer:
    • Launch the downloaded setup file and follow the on-screen instructions to install Ollama.
  3. Open PowerShell or Terminal:
    • Restart PowerShell or Terminal if it’s already running.
    • Shortcut: Win + X → Select PowerShell or Terminal.
  4. Verify Installation:
    • Run the following command to ensure Ollama is installed:
ollama --version

Step 2: Run DeepSeek-R1

Run the Model:

ollama run deepseek-r1:1.5b

For machines with less than 16GB of RAM, use the smaller model:

ollama run deepseek-r1:1.5b

Interact with the Model:

  • Once the model is running, you can start asking it questions.
  • Use the /? command to view available options and features.
  • If you encounter any issues, use the /clear command to reset the session context.

PowerShell terminal showing DeepSeek-R1 running interactively via the ollama run command

Step 3: Optional - Enhance with Open WebUI

Open WebUI chat interface running DeepSeek-R1 in a web browser

If you want a sleek web-based interface for managing your AI models, you can integrate Open WebUI, a feature-rich self-hosted AI platform.

Setting Up Open WebUI

Install Docker Desktop

  1. Download Docker Desktop:
  2. Run the Installer:
    • Launch the .exe file and follow the setup instructions.
    • When prompted, ensure “Use WSL2 instead of Hyper-V” is selected (recommended for most users).
  3. Enable WSL2:
    • If WSL2 isn’t already enabled, Docker Desktop will guide you through the process.
    • This installs the WSL2 backend and a default Ubuntu distribution.
  4. Finish Setup:
    • Launch Docker Desktop and sign in with your Docker Hub account.
    • Under Settings → General, ensure WSL2 is selected as the backend.

Alternatively, you can enable it manually:

wsl --install

Run Open WebUI

1.Pull and Run the Docker Image:

  • Open PowerShell or Terminal and run the following command:
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
Docker Desktop showing the open-webui container running after the docker run command
You should see the container running after you run the command above

2.Access Open WebUI:

  • Open your web browser and go to:
http://localhost:3000/

It may take a few moments for the Docker container to initialize.

Open WebUI login and model selection screen at localhost:3000 in a browser

3.Add DeepSeek-R1:

  • Once Open WebUI is running, DeepSeek-R1 should already be installed if you followed the previous steps.
  • If not, click the + button at the top of the interface to add the model.

Hardware for Ollama

If you’re looking for budget-friendly hardware to run Ollama efficiently, check out my latest post for the best GPU recommendations!

Budget-Friendly Local AI Hardware for Running Ollama
Looking to run AI models like Ollama locally without breaking the bank? Here’s a guide to the best budget GPUs for LLMs, from NVIDIA’s RTX 3060 to AMD’s RX 6700 XT.
Article thumbnail for budget-friendly local AI hardware for running Ollama

Final Thoughts

Running DeepSeek on a Windows machine unlocks powerful AI capabilities without requiring specialized hardware. With tools like Ollama and Open WebUI, you can easily manage and interact with advanced language models, making AI experimentation accessible and fun.

Have questions or ideas? Drop a comment below