How to Run DeepSeek Coder 33B with Ollama and Build an AI App with Anakin AI

This guide will walk you through the process of running the DeepSeek Coder 33B, a cutting-edge AI model for coding tasks, using Ollama, and building an AI app with Anakin AI, a no-code platform for creating AI applications.

1000+ Pre-built AI Apps for Any Use Case

How to Run DeepSeek Coder 33B with Ollama and Build an AI App with Anakin AI

Start for free
Contents

In the rapidly evolving world of artificial intelligence (AI), developers and enthusiasts are constantly seeking powerful tools to streamline their workflows and unlock new possibilities. This guide will walk you through the process of running the DeepSeek Coder 33B, a cutting-edge AI model for coding tasks, using Ollama, and building an AI app with Anakin AI, a no-code platform for creating AI applications.

Part 1: Running DeepSeek Coder 33B with Ollama

Ollama is an open-source platform that allows you to run and interact with various AI models, including the DeepSeek Coder 33B. This powerful model, developed by DeepSeek AI, is specifically designed for coding tasks and has been trained on a massive dataset of code and natural language.

Step 1: Install Ollama

Before you can run the DeepSeek Coder 33B, you need to install Ollama on your system. Ollama is available for various operating systems, including Windows, macOS, and Linux. You can find the installation instructions and download links on the official Ollama website (https://ollama.com).

Once you have downloaded the appropriate package for your system, follow the installation instructions provided. This process typically involves extracting the package and running the installation script.

Step 2: Download the DeepSeek Coder 33B Model

After installing Ollama, you need to download the DeepSeek Coder 33B model. This model is available on the Hugging Face platform, a popular repository for AI models and datasets. You can find the DeepSeek Coder 33B model at the following link: https://huggingface.co/deepseek-ai/deepseek-coder-33b-instruct

To download the model, you can use the Ollama command-line interface (CLI). Open your terminal or command prompt and navigate to the directory where you want to store the model. Then, run the following command:

ollama create deepseek-33b -f ./modelfile

This command will create a new model called deepseek-33b and download the necessary files from the Hugging Face repository. The -f ./modelfile option specifies the path to the model file, which contains the configuration and parameters for the DeepSeek Coder 33B model.

Step 3: Run the DeepSeek Coder 33B Model

Once the model has been downloaded and created, you can run it using the Ollama CLI. In your terminal or command prompt, navigate to the directory where you installed Ollama and run the following command:

ollama run deepseek-33b

This command will start the DeepSeek Coder 33B model and open an interactive session where you can provide prompts and receive responses.

Example usage:

Human: Write a Python function to calculate the factorial of a given number.
Assistant: Here's a Python function to calculate the factorial of a given number:

def factorial(n):
    """
    Calculates the factorial of a given number.
    
    Args:
        n (int): The number for which to calculate the factorial.
        
    Returns:
        int: The factorial of the given number.
    """
    if n == 0:
        return 1
    else:
        return n * factorial(n-1)

# Example usage
print(factorial(5))  # Output: 120

In this example, the DeepSeek Coder 33B model generates a Python function that calculates the factorial of a given number using recursion. The function includes a docstring that explains its purpose, arguments, and return value.

Part 2: Building an AI App with Anakin AI

Anakin AI is a no-code platform that allows you to create AI applications without writing a single line of code. It provides a user-friendly interface and a wide range of pre-built AI models, making it accessible to users with varying levels of technical expertise.

Step 1: Sign Up for Anakin AI

To get started with Anakin AI, you need to create an account on their website (https://www.anakin.ai). The sign-up process is straightforward and requires you to provide basic information such as your name, email address, and a password.

Step 2: Explore Pre-built AI Apps

Once you've signed up and logged in, you'll be taken to your personal workspace. Anakin AI offers a wide range of pre-built AI apps that you can explore and use immediately. These apps cover various domains, including content generation, image processing, data analysis, and more.

To find pre-built apps, click on the "Discover" button in the top navigation bar. This will take you to a library of available apps, which you can filter based on categories or search for specific functionalities.

Step 3: Create a New AI App

If you can't find a pre-built app that meets your needs, you can create a new AI app from scratch. In your personal workspace, click on the "Create App" button and select the type of app you want to build.

Anakin AI offers three main types of apps:

  1. Quick App: This type of app is designed for generating text content, such as blog posts, translations, or creative writing.
  2. Chatbot App: As the name suggests, this app allows you to create chatbots that can engage in natural conversations with users.
  3. Workflow App: Workflow apps are more complex and allow you to combine multiple AI models and functionalities into a single application.

For this example, let's create a Quick App.

Step 4: Customize Your AI App

After selecting the app type, you'll be taken to the app builder interface. Here, you can customize various aspects of your app, such as the input fields, the AI model to be used, and the output format.

For a Quick App, you'll typically define the following:

  1. Input Fields: These are the fields where users will provide the necessary information for the app to generate content. For example, if you're building an app to generate blog post ideas, you might have input fields for the topic, target audience, and desired tone.
  2. AI Model: Anakin AI offers a range of AI models from different providers, such as OpenAI, Anthropic, and Google. You can select the model that best suits your app's requirements.
  3. Prompt Template: This is the template that the AI model will use to generate content based on the user's input. You can customize the prompt template to ensure that the generated content meets your specific needs.
  4. Output Format: Finally, you can specify the format in which the generated content should be presented, such as plain text, Markdown, or HTML.

Once you've customized your app, you can test it by providing sample input and generating content. If you're satisfied with the results, you can save your app and make it available for others to use.

Step 5: Integrate Anakin AI's API (Optional)

Anakin AI offers comprehensive API services for all applications, empowering developers and organizations to seamlessly integrate and enhance their projects using Anakin AI's APIs.

By leveraging these APIs, users gain the flexibility to easily access Anakin AI's robust product features within their own applications. This capability allows developers and organizations to meet their specific customization requirements without the hassle of managing complex backend architecture and deployment processes. As a result, development costs and workload are significantly reduced, providing unparalleled convenience for developers.

💡
Interested in the latest trend in AI?

Then, You cannot miss out Anakin AI!

Anakin AI is an all-in-one platform for all your workflow automation, create powerful AI App with an easy-to-use No Code App Builder, with Llama 3, Claude, GPT-4, Uncensored LLMs, Stable Diffusion...

Build Your Dream AI App within minutes, not weeks with Anakin AI!

Advantages of API Integration

  • Rapidly develop AI applications tailored to your business needs using Anakin AI's intuitive visual interface, with real-time implementation across all clients.
  • Support for multiple AI model providers, allowing you the flexibility to switch providers as needed.
  • Pre-packaged access to the essential functionalities of the AI model.
  • Stay ahead of the curve with upcoming advanced features available through the API.

How to Use Anakin AI to Build Your AI App

Upgrade Your Plan and Check Your Account Credits: Anakin AI's API service is currently exclusively available to subscribers. While using the AI model through API calls, credits from your account balance will be consumed. To check your subscription status or upgrade your plan, navigate to the Anakin AI Web App, click on the avatar located in the lower-left corner, and access the Upgrade page. Please ensure that your current account has sufficient credits.

Test Your App: Now, to test the app, select the app and click the "Generate" button. Confirm it runs properly and produces the expected output before proceeding.

View API Documentation and Manage API Access Tokens: Next, visit the app Integration section at the top. In this section, you can click "View Details" to view the API documentation provided by Anakin AI, manage access tokens, and view the App ID.

Generate Your API Access Token: Click the "Manage Token" button to manage your API Access token and select "New Token" to generate your API access token. Complete the token configuration, then click "Save and generate token," and finally, copy and save the API Access Token securely. Note that the generated API access token will only be displayed once, so make sure to copy and save it securely right away.

It's a best practice to expose API keys in plaintext through backend calls rather than directly in frontend code or requests to prevent abuse or attacks on your app. You can create multiple API Access Tokens for an app to distribute it among different users or developers, ensuring that while users of the API can access the AI capabilities provided by the app developer, the underlying Prompt engineering and other tool capabilities remain intact.

Quick App API Example

A Quick App allows you to generate high-quality text content such as blog posts, translations, and other creative content. By calling the "Run a Quick App" API, the user input content is sent, and the generated text result is obtained.

The model parameters and prompt template used to generate text depend on the input settings in the Anakin AI App -> Manage -> Design Page.

You can find the API documentation and request examples for the app in App -> Integration -> API List -> View Details.

Here's an API call example to create text completion information:

curl --location --request POST 'https://api.anakin.ai/v1/quickapps/{{appId}}/runs' \
--header 'Authorization: Bearer ANAKINAI_API_ACCESS_TOKEN' \
--header 'X-Anakin-Api-Version: 2024-05-06' \
--header 'Content-Type: application/json' \
--data-raw '{
    "inputs": {
        "Product/Service": "Cloud Service",
        "Features": "Reliability and performance.",
        "Advantages": "Efficiency"
    },
    "stream": true
}'

Chatbot App API Example

A Chatbot App lets you create chatbots that interact with users in a natural, question-and-answer format. To start a conversation, call the "Conversation with Chatbot" API, and continue to pass in the returned parameter name to maintain the conversation.

You can find the API documentation and sample requests for the app in App -> Integration -> API List -> View Details.

Here's an API call example to send conversation messages:

curl --location --request POST 'https://api.anakin.ai/v1/chatbots/{{appId}}/messages' \
--header 'Authorization: Bearer ANAKINAI_API_ACCESS_TOKEN' \
--header 'X-Anakin-Api-Version: 2024-05-06' \
--header 'Content-Type: application/json' \
--data-raw '{
    "content": "What's your name? Are you the clever one?",
    "stream": true
}'

By integrating Anakin AI's APIs into your applications, you can leverage the power of AI models and functionalities while maintaining control over the user experience and customization options.

Conclusion

In this comprehensive guide, you've learned how to run the DeepSeek Coder 33B model using Ollama, a powerful tool for interacting with AI models, and how to build AI applications using Anakin AI, a no-code platform that simplifies the process of creating and deploying AI solutions.

By following the steps outlined in this article, you can harness the capabilities of the DeepSeek Coder 33B model for coding tasks and leverage Anakin AI to create customized AI apps tailored to your specific needs. Whether you're a developer, entrepreneur, or simply an AI enthusiast, these tools provide a seamless and accessible way to explore the vast potential of artificial intelligence.

💡
Interested in the latest trend in AI?

Then, You cannot miss out Anakin AI!

Anakin AI is an all-in-one platform for all your workflow automation, create powerful AI App with an easy-to-use No Code App Builder, with Llama 3, Claude, GPT-4, Uncensored LLMs, Stable Diffusion...

Build Your Dream AI App within minutes, not weeks with Anakin AI!