Cloudbooklet
  • News
  • Artificial Intelligence
  • Applications
  • Linux
No Result
View All Result
Cloudbooklet
  • News
  • Artificial Intelligence
  • Applications
  • Linux
No Result
View All Result
Cloudbooklet
No Result
View All Result
Home Artificial Intelligence

How to Install Kobold AI API: Easy Step-by-Step Guide

by Veronica Johnson
3 months ago
in Artificial Intelligence
Install Kobold Ai Api
ShareTweetSendShare
Readers like you help support Cloudbooklet. When you make a purchase using links on our site, we may earn an affiliate commission.

Kobold AI an alternative of ChatGPT is a platform for AI-assisted writing that uses various local and remote AI models to generate text based on user input.

ADVERTISEMENT

From creative writing to professional content creation, KoboldAI is one of the great solution and an alternative of OpenAI for AI-assisted writing It also provides a seamless and intuitive experience that elevates your writing process.

It has a browser-based front-end that allows users to create and edit stories, novels, chatbots, and more with the help of tools such as Memory, Author’s Note, World Info, Save & Load, and other adjustable AI settings.

Table of Contents

  1. Setup Kobold AI in Colab for Free
  2. Play Audio File to Keep Tab Alive
  3. Install Kobold AI API – Official
  4. Update Code to include other Models
  5. Install Kobold AI United
  6. Clean up Colab Workspace
  7. Conclusion

In this guide you are going to learn how to install and setup Kobold AI and use it in your web browser. You will also learn how to use the URL in Janitor AI or in Venus AI for chatting with the characters.

ADVERTISEMENT
 Kobold AI API

This tutorial does not need any technical knowledge required to accomplish. You can setup this very easily and in minutes you will have your own Kobold AI API up and running.

You might also like

Validator Ai

Validator AI: The AI Powered Business Idea Validator

23 hours ago
Chatgpt To Translate

How to Use ChatGPT to Translate Your Website or Blog

24 hours ago

Setup Kobold AI in Colab for Free

Colab is a research tool built by Google over Jupyter notebook which can be used to deploy Python or R language based models or scripts. You will also get a Nvidia Tesla T4 GPU for free. This GPU costs around $250 in Google Cloud.

Now we shall setup Kobold AI in Google Colab.

ADVERTISEMENT

Go to the the link with Kobold AI with GPU.

Play Audio File to Keep Tab Alive

You will see a welcome text “Welcome to KoboldAI on Google Colab, GPU Edition!“

ADVERTISEMENT

Scroll to the section as shown below.

Install Kolab Ai Using Mobile Phone

If you are using mobile phone to do this operation, you need click the play button to generate an audio. This is because the deployment takes some time and also to keep the tab alive in your browser, you need to play the audio.

ADVERTISEMENT

Click the play icon and then start playing the audio.

You will get a warning about “This notebook was not authored by Google“

ADVERTISEMENT

Click Run anyway.

Waif a little bit so that you can see a tick symbol near the pay button which indicates the execution is completed.

Kobold Ai Keep Tab Alive

Now you will see an audio player. Play the audio.

Install Kobold AI API – Official

Now in the next section you need to choose the desired model that suits you. Below in the table are given some descriptions about the models.

ModelStyle
Pygmalion-6bNSFW/Chat
Nerys-6bNovel/Adventure
Erebus-6.7bNSFW
Skein-6bAdventure
Adventure 6bAdventure
PPO-Pygway-6bInstruct-tuned Chat
Janeway-6bNovel
Lit-6bNovel
Nerybus-6.7bNovel/NSFW
Shinen-6bNovel/NSFW
Various 2.7b models

Choose one of the listed model you need.

Kobold Ai Choose Model

Update Code to include other Models

Click the show code button and include the models Nerybus 6B and Erebus 6B

Model = "Nerys V2 6B" #@param ["Nerys V2 6B", "Skein 6B", "Janeway 6B", "Adventure 6B", "Nerys 2.7B", "AID 2.7B", "Janeway 2.7B", "Picard 2.7B", "OPT 2.7B", "Fairseq Dense 2.7B", "Neo 2.7B", "Nerybus 6B", "Erebus 6B"] {allow-input: true}

Update the if condition below with the extra conditions and you are ready to use other models.

if Model == "Nerys V2 6B":
  Model = "KoboldAI/OPT-6B-nerys-v2"
  path = ""
  download = ""
#extra codes to be added
elif Model == "Nerybus 6B":
  Model = "KoboldAI/OPT-6.7B-Nerybus-Mix"
  path = ""
  download = ""
elif Model == "Erebus 6B":
  Model = "KoboldAI/OPT-6.7B-Erebus"
  path = ""
  download = ""

If you don’t need to use Google Drive, you can check off that (optional). If you want to use Google Drive, you need to allow access when prompted.

Click on the Play button to start the deployment.

The deployment will get started with the below output of the GPU type that is used for Kobold AI

+---------------------------------------------------------------------------+
| NVIDIA-SMI 525.85.12   Driver Version: 525.85.12   CUDA Version: 12.0     |
|------------------------------+---------------------+----------------------+
| GPU  Name       Persistence-M| Bus-Id       Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf Pwr:Usage/Cap|        Memory-Usage | GPU-Util  Compute M. |
|                              |                     |               MIG M. |
|==============================+=====================+======================|
|   0  Tesla T4           Off  | 00000000:00:04.0 Off|                    0 |
| N/A   37C    P8    9W /  70W |     0MiB / 15360MiB |      0%      Default |
|                              |                     |                  N/A |
+------------------------------+---------------------+----------------------+
                                                                            
+---------------------------------------------------------------------------+
| Processes:                                                                |
|  GPU   GI   CI       PID   Type   Process name                 GPU Memory |
|        ID   ID                                                 Usage      |
|===========================================================================|
|  No running processes found                                               |
+---------------------------------------------------------------------------+

Wait for some time for the deployment to complete by setting up all drivers and packages that are required to run Kobold AI API.

Once the deployment is completed you will get an output similar to the one below, from there you will get a URL to check your Kobold AI in your browser.

INIT    | Starting   | LUA bridge
INIT    | OK         | LUA bridge
INIT    | Starting   | LUA Scripts
INIT    | OK         | LUA Scripts
INIT    | OK         | Webserver
MESSAGE | KoboldAI has finished loading and is available at the following link: https://petersburg-source-shark-blade.trycloudflare.com

In the MESSAGE you will see your URL. This output the generated when you have the Version chosen as Official.

You will have the old UI that looks like one below.

Kobold Ai Old Ui

Herr you will see all the details of Kobold AI like Connection status, Model that is used and many more.

Install Kobold AI United

To use the new UI in Kobold UI United, you just need to make a single change in your settings before the deployment.

Choose Version as United.

Click the Play button.

Once the deployment is completed you will get the following URLs

  • Kobold AI Old UI
  • Kobold AI New UI
  • Kobold AI Lite
  • Kobold AI API URL

Once you have received the URLs you need to wait for sometime for the tensors to be loaded. Once done you can start using the new UI.

INFO    | modeling.inference_models.hf:set_input_parameters:191 - {'use_gpu': True, '0_Layers': 32, 'CPU_Layers': 0, 'Disk_Layers': 0, 'id': 'KoboldAI/OPT-6B-nerys-v2', 'model': 'KoboldAI/OPT-6B-nerys-v2', 'path': None, 'menu_path': ''}
INIT    | Starting   | Flask
INIT    | OK         | Flask
INIT    | Starting   | Webserver
INIT    | OK         | Webserver
MESSAGE | KoboldAI has finished loading and is available at the following link for UI 1: https://claimed-g-jokes-undertaken.trycloudflare.com
MESSAGE | KoboldAI has finished loading and is available at the following link for UI 2: https://claimed-g-jokes-undertaken.trycloudflare.com/new_ui
MESSAGE | KoboldAI has finished loading and is available at the following link for KoboldAI Lite: https://claimed-g-jokes-undertaken.trycloudflare.com/lite
MESSAGE | KoboldAI has finished loading and is available at the following link for the API: https://claimed-g-jokes-undertaken.trycloudflare.com/api

Your Kobold AI new UI looks similar to the one below.

Kobold Ai New Ui
How to Install Kobold AI API: Easy Step-by-Step Guide 1

That’s all, now you have your Kobold AI server up and running.

Clean up Colab Workspace

Once you have completed your experiments you need to cleanup Colab to save resources. Please follow the below steps to perform a cleanup.

  1. Click the stop button (earlier it was a play button) to stop the web server.
  2. Go to Runtime and click Disconnect and delete runtime.
Clean Up Google Colab

Now you are good to go. If you wish to setup up again, you can try the same setup as mentioned above.

Conclusion

Now you have learned how to setup Kobold AI in Google Colab for free with Nvidia T4 Tesla GPU.

Tags: NvidiaPython
Share336Tweet210SendShare
Veronica Johnson

Veronica Johnson

Greetings! I'm a technical writer who specializes in producing accurate and engaging content for complex topics. Whether it's a blog article, a tutorial, or a user manual, I always aim to make my writing comprehensible and enjoyable. I'm enthusiastic about facilitating people's learning and development through my writing.

Comments 4

  1. Avatar Of Bucker Bucker says:
    4 weeks ago

    god dammit not saying it bad by eny means but i got very confused near the end

    Reply
  2. Avatar Of Mina Mina says:
    2 months ago

    Hope this works.

    Reply
  3. Avatar Of Certainty certainty says:
    2 months ago

    paradox

    Reply
  4. Avatar Of Yes yes says:
    2 months ago

    no

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Related Posts

Fantasy Minecraft Servers

5 Best Fantasy Minecraft Servers in 2023

1 day ago
Ai Statistics And Trends

AI Statistics and Trends: What You Need to Know in 2023

1 day ago
Block Youtube Ads

How to Block YouTube Ads on Android TV in 2023 (6 Easy Methods)

1 day ago
Wix Ai

Create a Professional Website with Wix AI Website Builder

2 days ago

Follow Us

Trending Articles

Ai Song Generator

10 Best AI Song Generator in 2023 (Free and Paid)

September 19, 2023

Amazon Prime Big Deal Days 2023: Best Deals

Top 7 Free Dating Sites for Men in 2023

7 Best AI Girl Generators for Creating Realistic and Beautiful AI Girls

5 Best TikTok Private Account Viewer in 2023

5 Free AI Soulmate Maker: Create Your Perfect Match

Popular Articles

Website Malware Scan

8 Best Tools for Website Malware Scanning Online Free

September 11, 2023

Charley AI: The Best AI Essay Writing Tool

How to Install Waifu Diffusion – Step-by-Step Guide

Top 7 AI Dream Interpreter to Understand Your Dreams

Microsoft Designer: AI Design Tool Now Available in Edge

10 Free Watermark Remover That Work in 2023

Subscribe Now

loader

Subscribe to our mailing list to receives daily updates!

Email Address*

Name

Cloudbooklet Logo

Welcome to our technology blog, where we explore the latest advancements in the field of artificial intelligence (AI) and how they are revolutionizing cloud computing. In this blog, we dive into the powerful capabilities of cloud platforms like Google Cloud Platform (GCP), Amazon Web Services (AWS), and Microsoft Azure, and how they are accelerating the adoption and deployment of AI solutions across various industries. Join us on this exciting journey as we explore the endless possibilities of AI and cloud computing.

  • About
  • Contact
  • Disclaimer
  • Privacy Policy

Cloudbooklet © 2023 All rights reserved.

No Result
View All Result
  • News
  • Artificial Intelligence
  • Applications
  • Linux

Cloudbooklet © 2023 All rights reserved.