How to run DeepSeek R1 locally

How to run DeepSeek R1 locally

This isn't that hard to do and I am here to give you a simple script.


Prerequisites


Steps

  • Open a new PowerShell window or open Windows Terminal in PowerShell mode (default)
  • Run the following:

# Install Ollama
docker pull ghcr.io/open-webui/open-webui:ollama

# Run Ollama
$cid = $(docker run -d -p 3000:8080 --gpus=all -v ollama:/root/.ollama -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:ollama)

# Add Deepseek R1: latest
docker exec $cid ollama run deepseek-r1:latest        

  • Open https://localhost:3000 in your browser of choice.
  • Create a login for yourself.
  • Select the deepseek-r1:latest model.
  • Have fun


BJ Oliver

Director, Strategic Operations (CSD) at NTT DATA, Inc.

1 个月

Is it safe?

回复

要查看或添加评论,请登录

社区洞察

其他会员也浏览了