🍌 Banana Serverless

This repo gives a basic framework for serving Stable Diffusion in production using simple HTTP servers.

Instant Deploy

Stable Diffusion is now available as a prebult model on Banana! See how to deploy Stable Diffusion in seconds.

Quickstart

If you want to customize beyond the prebuilt model:

Follow the quickstart guide in Banana's documentation to use this repo.

(choose "GitHub Repository" deployment method)

Additional Steps (outside of quickstart guide)

  1. Create your own private repo and copy the files from this template repo into it. You'll want a private repo so that your huggingface keys are secure.
  2. Create huggingface account to get permission to download and run Stable Diffusion text-to-image model.
  1. Edit the dockerfile in your forked repo with ENV HF_AUTH_TOKEN=your_auth_token

Helpful Links

Understand the 🍌 Serverless framework and functionality of each file within it.

Generalize this framework to deploy anything on Banana.


Use Banana for scale.