DEV Community

Cover image for How to Add and Use Deepseek-r1 in Your Visual Studio Code (For Free!)

How to Add and Use Deepseek-r1 in Your Visual Studio Code (For Free!)

Clinton Ekekenta on January 30, 2025

The AI revolution is happening, and Deepseek-r1 is at the forefront. This powerful Large Language Model (LLM) goes head-to-head with top AI models ...
Collapse
 
best_codes profile image
Best Codes • Edited

Two things I would like to point out:

  • DeepSeek Coder is not the same as DeepSeek R1.

NOT R1

  • ollama run deepseek-r1 pulls the 7 billion parameter model, which is very weak. The best DeepSeek R1 model has 671 billion parameters. You would run it with ollama run deepseek-r1:671b, but most devices would be far too weak to run a model of this size.

Running DeepSeek R1 on a laptop will not compare to models like GPT-4o or Claude 3.5 Sonnet.

Collapse
 
madscientist42 profile image
Frank Earl

It rather depends on the laptop...but yes. I suspect I could run the R1 on my laptop- but then...I don't have your average laptop...

Collapse
 
madscientist42 profile image
Frank Earl

And, yes, we're talking the distilled version. MOST people won't handle the full-tilt beast on their HW.

Collapse
 
guru profile image
gurup7

I am getting this error. When I choose DeepSeek Coder and ask for coding suggestions

HTTP 404 Not Found from 127.0.0.1:11434/api/chat

Collapse
 
m_zajbe_8c119c450815f660e profile image
m zajbe

you solved this problem ? i got the same problem.

Collapse
 
guru profile image
gurup7

I changed to deepseek-r1 in config file. It is not providing any coding suggestions.

Collapse
 
ranjan_barman_86115855b6e profile image
Ranjan Barman

Same here

Collapse
 
madscientist42 profile image
Frank Earl

That looks like this is looking for a local instance of a web-server running a local DeepSeek chat.

Collapse
 
ayoola_damilare_212d5bde0 profile image
Ayoola Damilare

Let me check it out

Collapse
 
vilailus profile image
Luis "shadowtampa" Gomes

My experience with this tutorial: Great thing it introduced me to ollama! But using deepseek made my laptop (samsung odyssey) fans go WILD. Besides being helpul, the only advantage of this is the fast response time it has against the web model

Collapse
 
__db20f81acdd64 profile image
Артем Гасин

In the config you have to manually update model version from "deepseek-7b" by default to "deepseek-r1", then it will work

Collapse
 
idealistic91 profile image
Jens Frerichs • Edited

The models that really help coding need a lot of VRAM. Isn't the 7b Model (for example) too weak to compete with ChatGPT o1 when it comes to generating code?

Collapse
 
daniyal_khan_25a2cb898f9a profile image
DANIYAL KHAN

Deepseek-r1 is a powerful Large Language Model (LLM) that offers developers a fast, private, and cost-effective coding assistant by running directly on their local machines. This eliminates the need for expensive, cloud-based tools and ensures that your coding assistant is always available when needed.

To integrate Deepseek-r1 into Visual Studio Code, you'll first need to install Ollama, a lightweight platform that allows you to manage and run LLMs locally. After installing Ollama, you can proceed with setting up Deepseek-r1 in your coding environment.

Collapse
 
dforrunner profile image
Mo Barut

This is awesome thank you!

Collapse
 
aimitsumori_noreply_43367 profile image
Aimitsumori Noreply

Great post!

Collapse
 
khush_nawaj profile image
Khush

is it safe to install in office system.?

Collapse
 
ijash profile image
Jastria Rahmat

how to do it in network? i have container running on my pc, and i want to code in laptop.

Collapse
 
alikulaowen profile image
alikulaOwen

NIce and cool. Very soon standard of a home will be having it own model running and managing itself. lol just waiting on those damn powerful chips

Collapse
 
itwerx profile image
Ron

I have poked around deep seek in regard to some coding. It is far behind other AI platforms in that area. It is fast though! ha

Collapse
 
brandong profile image
Brandon

Nice tutorial, but it feels like you’re just showing us how to install something that should’ve been obvious already. Guess some people need step-by-step hand-holding. 🤷‍♂️

Collapse
 
alikolahdoozan profile image
Ali Kolahdoozan

Continue.dev not found !

Collapse
 
siddharatha_dhumale_456d0 profile image
Siddharatha Dhumale

you can use codegpt plugin also instead of continue.dev marketplace.visualstudio.com/items...