Skip to content

This is a OpenOrcaxOpenChat-Preview2-13B model starter template from Banana.dev that allows on-demand serverless GPU inference.

Notifications You must be signed in to change notification settings

bananaml/demo-openorcaxopenchat-preview2-13b

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

demo-openorcaxopenchat-preview2-13b

Banana.dev OpenOrcaxOpenChat-Preview2-13B starter template

This is a OpenOrcaxOpenChat-Preview2-13B starter template from Banana.dev that allows on-demand serverless GPU inference.

You can fork this repository and deploy it on Banana as is, or customize it based on your own needs.

Running this app

Deploying on Banana.dev

  1. Fork this repository to your own Github account.
  2. Connect your Github account on Banana.
  3. Create a new model on Banana from the forked Github repository.

Running after deploying

  1. Wait for the model to build after creating it.
  2. Make an API request to it using one of the provided snippets in your Banana dashboard.

For more info, check out the Banana.dev docs.

Testing locally

Using Docker

Build the model as a Docker image. You can change the openorcaxopenchat-preview2-13b part to anything.

docker build -t openorcaxopenchat-preview2-13b .

Run the Potassium server

docker run --publish 8000:8000 -it openorcaxopenchat-preview2-13b

In another terminal, run inference after the above is built and running.

curl -X POST -H 'Content-Type: application/json' -d '{"prompt":"Tell me about AI"}' http://localhost:8000

Without Docker (not recommended)

You could also install and run it without Docker.

Just make sure that the pip dependencies in the Docker file (and torch) and a version of AutoGPTQ are installed in your Python virtual environment.

Run the Potassium app in one terminal window.

python3 app.py

Call the model in another terminal window with the Potassium app still running from the previous step.

curl -X POST -H 'Content-Type: application/json' -d '{"prompt": "Tell me about AI"}' http://localhost:8000

About

This is a OpenOrcaxOpenChat-Preview2-13B model starter template from Banana.dev that allows on-demand serverless GPU inference.

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 75.8%
  • Dockerfile 24.2%