Deepseek: Start Using It on your machine Offline

How to start using Deepseek, and start creating your own your project with it.

#Programming
#Technology
#AI
Feb. 01, 2025. 1:23 PM
Ads

DeepSeek is a Chinese artificial intelligence company that develops open-source large language models (LLMs). Here's a breakdown of what makes them notable:

Key Points:

DeepSeek is an emerging player in the AI field, known for its open-source approach, cost-efficient training methods, and focus on reasoning capabilities. While the company is still primarily research-oriented, its rapid rise in popularity and innovative techniques make it an important player to watch in the evolving world of AI.

How To Run Deepseek on Your Computer

Now let us learn how we can run Deepseek in our machine (offline).

  1. Install Ollama

    First, you need to install Ollama on your system.

    • Linux & macOS

      Run This command in your terminal

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

      Download the installer from Ollama's website and install it.

  2. Download the DeepSeek AI Model

    Ollama supports various models, including DeepSeek Coder and DeepSeek Chat.

    • To pull DeepSeek Coder:

      ollama pull deepseek-coder
    • To pull DeepSeek Chat:

      ollama pull deepseek-chat
  3. Run the Model Locally

    Once downloaded, you can start using it:

    • For DeepSeek Coder:

      ollama run deepseek-coder
    • For DeepSeek Chat:

      ollama run deepseek-chat

      This will start an interactive chat session with the model.

  4. Using the Model in Python

    If you want to integrate it into a Python application, you can use the Ollama Python API:

    1. Install the Ollama Python Package:

      pip install ollama
    2. Use the model in a script:

      import ollama
      
      response = ollama.chat(model="deepseek-chat", messages=[{"role": "user", "content": "Hello, how are you?"}])
      print(response["message"]["content"])
  5. Run Ollama as a Background Server

    If you want to use Ollama in a web app or API:

    • Start the server in the background:

      ollama server
    • Use it via API:

      curl http://localhost:11434/api/generate -d '{ "model": "deepseek-chat", "prompt": "Tell me about AI" }'

🚀 Start Building Today! 🚀

The power of AI is now in your hands—offline, fast, and ready to bring your ideas to life. Whether you're building the next big coding assistant, a smart chatbot, or a revolutionary AI-driven tool, DeepSeek AI + Ollama gives you the freedom to create without limits.

💡 Don't wait for the perfect moment—start now! Every great project begins with a single step, and the best way to learn is by doing. Push past doubts, experiment fearlessly, and turn your vision into reality. The world needs your innovation. 🌍✨

🔥 What will you create today? 🔥


If you enjoy this article and would like to show your support, you can easily do so by buying me a coffee. Your contribution is greatly appreciated!

Jenuel Ganawed Buy me Coffee