DEV Community

Cover image for How to Set Up Deepseek-R1 on Your Machine (VS Code)
Pravin Jadhav
Pravin Jadhav

Posted on

8 1

How to Set Up Deepseek-R1 on Your Machine (VS Code)

https://nxtcode.hashnode.dev/how-to-set-up-deepseek-r1-on-your-machine-vs-code


Part 1: Why Deepseek-r1 is a Game-Changer

With the rapid growth of Large Language Models (LLMs), Deepseek-r1 has become a top AI model. It matches the performance of models like GPT-01 in reasoning and code generation, making it a powerful tool for developers.


Part 2: Setting Up Deepseek-r1 (Using Windows CMD)

  1. Install Ollama

    • Download Ollama from the official website.
    • Run the downloaded file and complete the setup.
  2. Download the Deepseek-r1 Model

    • Open CMD and run this command:
     ollama pull deepseek-r1
    
  • To test if the model is working, use this command:

     curl http://localhost:11434/api/generate -d "{\"model\": \"deepseek-r1:latest\", \"prompt\": \"Why is the sky blue?\"}"
    
  • If you see output in the terminal, Deepseek-r1 is ready to go!


Part 3: Setting Up the Continue.dev Extension

  1. Install Visual Studio Code (VS Code)

  2. Install the Continue.dev Extension

    • Open VS Code and go to the Extensions Marketplace.
    • Search for "Continue.dev" and install it.
  3. Connect Deepseek-r1 to Continue.dev

    • Open the Continue.dev extension.
    • Click the model selection button at the bottom-left corner.
    • Select "Ollama" and choose the "Deepseek-r1" model.

Part 4: Using Deepseek-r1

Now you can use Deepseek-r1’s features directly in VS Code:

  • Autocomplete: Get smart suggestions while writing code.
  • Code Refactoring: Ask the AI to optimize or rewrite your code.
  • Code Explanations: Understand what your code does with AI help.

Part 5: Why Choose Deepseek-r1?

  • Logical Reasoning: Makes smarter decisions using logical tree reasoning.
  • Transformer Technology: Excels in code generation tasks.
  • Local Execution: Runs on your machine for better privacy and faster responses.

Part 6: WhatsApp Status Message

"Deepseek-r1: Smarter than GPT, excelling in reasoning and code generation. πŸš€

DeepseekR1 #AI #Coding #WindowsCMD"


Start using Deepseek-r1 in your workflow and enjoy smarter, faster coding! πŸ₯‚

Speedy emails, satisfied customers

Postmark Image

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay