Back
News
March 8th, 2023
minute read

How to Run Basaran on Runpod: An Open-Source Alternative to OpenAI’s Completion API

Madiator2011
Madiator2011

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

Block quote

Ordered list

  1. Item 1
  2. Item 2
  3. Item 3

Unordered list

  • Item A
  • Item B
  • Item C

Text link

Bold text

Emphasis

Superscript

Subscript

Introduction: Basaran is an open-source alternative to the OpenAI text completion API - Repo. It is a powerful tool that can help you generate text based on a given input. In this simple guide, we will show you how to run Basaran on Runpod using a predefined template. As a bonus, we will also teach you how to change the model by editing the MODEL environment variable at pod creation if you want to use a different model than the default bigscience/bloomz-560m.

Step 1: Open the Runpod Template Click on the following link to open the Runpod template for Basaran: https://runpod.io/gsc?template=7ito7h393l&ref=vfker49t

Step 2: Create pod and let it pull the image.

Step 3: Edit the MODEL Environment Variable (Optional) If you want to use a different model than the default bigscience/bloomz-560m, you can change the MODEL environment variable. To do this go to edit pod setting, find the "Environment Variables" section in the pod edit interface. Locate the variable named "MODEL" and replace its value with the identifier of the model you wish to use. For example, you could replace bigscience/bloomz-560m with user/repo.

Note: Make sure to use a valid model identifier that is compatible with Basaran.

Replace it to use custom model after that reset pod

Step 4: After you've made any desired changes to the environment variables, reset the pod to apply new model.

Reset Pod will clear container storage and download custom model

Step 5: Access the Basaran Interface Once your pod is running, click on the "Connect via HTTP [Port 80]" button to access the Basaran web interface. From here, you can start using Basaran to generate text completions based on your input.
Note: You can also use API by adding /v1/completions at the end of your proxy URL.

Conclusion: That's it! You've successfully set up and launched Basaran on Runpod using the provided template. Now you can enjoy using this open-source alternative to OpenAI's text completion API. Remember that you can always change the model by editing the MODEL environment variable during pod creation.
Happy text generating!

Hopefully, this blog post has given you a better understanding of how to use the Fast Stable template. If you have any questions or need help, don't hesitate to send message on Runpod's Discord or other communities for support.

Newly  Features

We've cooked up a bunch of improvements designed to reduce friction and make the.

Create ->
Newly  Features

We've cooked up a bunch of improvements designed to reduce friction and make the.

Create ->
Newly  Features

We've cooked up a bunch of improvements designed to reduce friction and make the.

Create ->
Newly  Features

We've cooked up a bunch of improvements designed to reduce friction and make the.

Create ->
We're officially SOC 2 Type II Compliant
You've unlocked a referral bonus! Sign up today and you'll get a random credit bonus between $5 and $500
You've unlocked a referral bonus!
Claim Your Bonus
Claim Bonus
Blog

How to Run Basaran on Runpod: An Open-Source Alternative to OpenAI’s Completion API

Learn how to deploy Basaran, an open-source text generation API, on Runpod using a prebuilt template. Customize the model via environment variables and interact through the web UI or API.

Author
Madiator2011
Date
March 8, 2023
Table of contents
Share
How to Run Basaran on Runpod: An Open-Source Alternative to OpenAI’s Completion API

Introduction: Basaran is an open-source alternative to the OpenAI text completion API - Repo. It is a powerful tool that can help you generate text based on a given input. In this simple guide, we will show you how to run Basaran on Runpod using a predefined template. As a bonus, we will also teach you how to change the model by editing the MODEL environment variable at pod creation if you want to use a different model than the default bigscience/bloomz-560m.

Step 1: Open the Runpod Template Click on the following link to open the Runpod template for Basaran: https://runpod.io/gsc?template=7ito7h393l&ref=vfker49t

Step 2: Create pod and let it pull the image.

Step 3: Edit the MODEL Environment Variable (Optional) If you want to use a different model than the default bigscience/bloomz-560m, you can change the MODEL environment variable. To do this go to edit pod setting, find the "Environment Variables" section in the pod edit interface. Locate the variable named "MODEL" and replace its value with the identifier of the model you wish to use. For example, you could replace bigscience/bloomz-560m with user/repo.

Note: Make sure to use a valid model identifier that is compatible with Basaran.

Replace it to use custom model after that reset pod

Step 4: After you've made any desired changes to the environment variables, reset the pod to apply new model.

Reset Pod will clear container storage and download custom model

Step 5: Access the Basaran Interface Once your pod is running, click on the "Connect via HTTP [Port 80]" button to access the Basaran web interface. From here, you can start using Basaran to generate text completions based on your input.
Note: You can also use API by adding /v1/completions at the end of your proxy URL.

Conclusion: That's it! You've successfully set up and launched Basaran on Runpod using the provided template. Now you can enjoy using this open-source alternative to OpenAI's text completion API. Remember that you can always change the model by editing the MODEL environment variable during pod creation.
Happy text generating!

Hopefully, this blog post has given you a better understanding of how to use the Fast Stable template. If you have any questions or need help, don't hesitate to send message on Runpod's Discord or other communities for support.

Build what’s next.

The most cost-effective platform for building, training, and scaling machine learning models—ready when you are.

You’ve unlocked a
referral bonus!

Sign up today and you’ll get a random credit bonus between $5 and $500 when you spend your first $10 on Runpod.