Run DeepSeek on Nvidia Jetson Orin Nano

Run DeepSeek on Nvidia Jetson Orin Nano

Hello everyone, in this article we will see the procedure to run the DeepSeek OLLAMA models on Nvidia Jetson Orin Nano. We will see the procedure of running various model with various parameters count.


??Introduction

In a brief, DeepSeek is the rival of OpenAI and is an opensource framework. It is developed by Hangzhou DeepSeek Artificial Intelligence Basic Technology Research Co., Ltd. is a Chinese artificial intelligence company that develops Open Source Large Language Models - LLMs.

The noticeable difference between DeepSeek and OpenAI is the training cost. DeepSeek training cost was around $6 Million as compared to OpenAI GPT-4 at $100 Million. This makes DeepSeek develop its models at 1/10th of the computing power in comparison with OpenAI GPT



??Run the DeepSeek R1 Model on Nvidia Jetson Orin Nano

Coming to the Hardware platform we are going to use for this article is Nvidia Jetson Orin Nano.

You can read about the Nvidia Jetson Orin Nano in one of my articles by visiting the link below


Following are the steps to run the DeepSeek R1 model. I have setup my Nvidia Jetson Orin Nano to be accessed over Network with SSH enabled.

Nvidia Jetson Orin Nano - OS Information and nvidia-smi information

??Install the OLLAMA on Jetson Orin Nano

Visit the following website: https://ollama.com/download. Select Linux as installation source and then use the onscreen instruction to install ollama.


https://ollama.com/download
curl -fsSL https://ollama.com/install.sh | sh        


ollama - Installation in progress

It downloads the JetPack 6 Components since the installation is happening on Nvidia Jetson Orin Nano. If you are trying to run on Raspberry PI 5 or any other SBC that doesn't have GPU access, then this is an optional step.

ollama - Installing Jetpack

After your installation is success, you will be getting the following message as shown in the screenshot below

ollama - Installation success

??Running ollama on Nvidia Jetson Orin Nano

Use the "ollama" application to see various options that it is offering. Run the following command to see the help section of "ollama"

> ollama --help        
Ollama help command output

We are running DeepSeek - R1 for this article and these are the following models that are present with DeepSeek R1

https://ollama.com/library/deepseek-r1


DeepSeek - R1 - Models

There are various models like 1.5b, 7b, 8b, 14b, 32b, 70b, 671b where "b" stands for billions of parameters


??Running ollama DeepSeek - R1 - 1.5b

Let's begin by running DeepSeek-R1 1.5b Model. Use the following command to run this model

> ollama run deepseek-r1:1.5b        


ollama downloading deepseek-r1:1.5b Model

After the download is completed, following prompt will be shown on the screen


deepseek-r1:1.5b - Prompt

Following is the query I have posted for deepseek-r1:1.5b model


>>> Hi, I want to know more about PRPL OS and its comparison with OpenWRT and what are various advantages and disadvantages. I also want to know in which usecase which is better        
Query for DeepSeek - R1

Following is the response I got from deepseek-r1:1.5b model


Response from DeepSeek - R1:1.5b


Response from DeepSeek - R1:1.5b


Response from DeepSeek - R1:1.5b


Response from DeepSeek - R1:1.5b

??Running ollama DeepSeek - R1 - 7b

We will now run 7 billion parameters ollama DeepSeek R1 Model


Running 7b Parameters
Query and Response from deepseek-r1:7b



??Conclusion

With DeepSeek R1 Models, there are several usecases where edge based inference will help. This opens new possibilities of using LLM Models on Edge Devices.

I will record the entire session in a Youtube video and will share the information soon with few usecases.

I will be back soon with another exciting article, Till then Stay Happy and Happy programming...


??References

  1. https://ollama.com/library/deepseek-r1
  2. https://ollama.com/
  3. https://ollama.com/search
  4. https://en.wikipedia.org/wiki/DeepSeek
  5. https://www.deepseek.com/



Thanks for the article Naveen Kumar Gutti.?AutoKeybo runs DeepSeek.??

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

Naveen Kumar Gutti的更多文章

社区洞察

其他会员也浏览了