Deploying Deepseek-R1 on a Computer

How to Deploy Deepseek-R1 on a Laptop

Posted by Byolio on January 28, 2025
🌐 中文 English

This article aims to introduce two methods for deploying Deepseek-R1 on a computer using Docker. (This article involves accessing the official Docker repository and the Chrome Web Store, please ensure your network connection is stable.)

What is Deepseek-R1

Deepseek-R1 is an open-source LLM developed by the Chinese AI company DeepSeek. Its official benchmark test results are as follows: deepseekR1 As can be seen, it has capabilities comparable to ChatGPT-o1 in multiple domains. Its performance in tasks such as mathematics, coding, and natural language reasoning rivals that of the official OpenAI o1 release. Therefore, we can deploy it on a computer using Docker as a personal LLM assistant. (Official paper link: https://github.com/deepseek-ai/DeepSeek-R1/blob/main/DeepSeek_R1.pdf)

Installation Requirements

Hardware Requirements

Currently, laptop GPUs are mainly NVIDIA’s RTX 4060 and RTX 4070. The 50 series has not yet been widely adopted in laptops. The VRAM size is typically 8GB, which is sufficient to install the deepseek-R1:7b or 8b versions. If your hardware is below this specification, it is recommended to install the deepseek-R1:1.5b version.

Software Requirements

I am installing the version for nvidia GPU. Therefore, you need to have an nvidia GPU with the nvidia GPU drivers installed, and have docker desktop and WSL set up. If you are unsure how to install these, please refer to the article I wrote previously.

How to Install deepseek-R1

I am using ollama for installation and provide the following two methods:

web-ui

I have described how to install it in my previous article, so I won’t elaborate too much here. However, if you are installing the latest version of ollama web-ui, you need to use a new method to download the model: webuideepseek Click on ‘Pull from Ollama.com’ above to automatically complete the download.

page assist

This is a Chrome extension that can display an LLM icon on web pages.

  1. Run this command in cmd (ensure NVIDIA drivers are present): docker run -d --gpus=all -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama This downloads the ollama image and deploys it in Docker.
  2. Download the Page Assist extension from the Chrome Web Store and set its Ollama URL to: http://127.0.0.1:11434
  3. Use docker exec -it ollama ollama run deepseek-r1:8b to download the deepseek-r1:8b LLM.
  4. Return to the Page Assist extension, select the deepseek-r1:8b model, and you can start using it.

Summary

The above are the methods for deploying Deepseek-R1 on a laptop. I hope this is helpful to everyone.