This repo gives a basic framework for serving Stable Diffusion in production using simple HTTP servers.
Stable Diffusion is now available as a prebult model on Banana! See how to deploy Stable Diffusion in seconds.
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)
- 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.
- Create huggingface account to get permission to download and run Stable Diffusion text-to-image model.
- Accept terms and conditions for the use of the v1-4 Stable Diffusion
- Edit the
dockerfile
in your forked repo withENV HF_AUTH_TOKEN=your_auth_token
Understand the 🍌 Serverless framework and functionality of each file within it.
Generalize this framework to deploy anything on Banana.