How to Run DeepSeek R1 Locally - Install DeepSeek AI to Run Offline

Deep Seek, a leading Chinese AI company, recently released its R1 model, which rivals OpenAI’s O1 model. One of the key advantages of Deep Seek’s R1 is that it’s open-sourced, allowing users to download and run it locally. This guide will walk you through setting up and using the model with the oLlama framework.

How to Run DeepSeek R1 Locally - Install DeepSeek-r1 to Use Offline

The R1 model is available in different parameter sizes:

For this guide, we’ll use the 32-billion parameter version but you can choose whichever one you want. The steps don't change.

How to Use DeepSeek R1 Model Locally

While this tool is "Open Source" and "Fully Local" you should still keep in mind that it's Chinese based so expect your privacy to be limited. Unless your computer is entirely offline I wouldn't trust it completely. AI tools are known for having lowsy privacy policy rules and excel at harvesting data to continue training models. OpenAi ChatGPT isn't any different. 

Once it is installed it will give you the option to start chatting with it. So just type in whatever you want and wait for it to reply. Your system hardware specs will determine how long it takes to reply.

Exploring DeekSeek-r1 Model Capabilities

Handling Slow Output Speeds

If you notice that the model runs slower than expected, consider these factors:

Filtering "Thinking Tags"

Sometimes the model includes "thinking tags" similar to HTML tags when reasoning through a query. So how do you filter Outputs.

Integrating DeepSeek with Applications?

For programmatic use, you’ll need an agent framework like LlamaIndex. Below is a short section on how to create a DeepSeek AI Agent.

Steps to Create an AI Agent:

pip install llama-index langchain

from llama_index import GPTVectorStore
store = GPTVectorStore()
response = store.query("Tell a story for kids about space adventures.")
print(response)

Benefits of Using Open-Source Models

How to Uninstall DeepSeek R1 Models

In order to remove DeepSeek models, you'll need to do the following:

ollama list

ollama rm "deepseek-r1:8b"

Uninstall DeepSeek AI Using the Control Panel or File Explorer

Comments