GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - bentoml/diffusers-examples: API serving for your diffusers models

This repository was archived by the owner on Aug 4, 2025. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

31 Commits
31 Commits

Folders and files

NameName
Last commit message
Last commit date
anything_v3
anything_v3
 
 
sd2
sd2
 
 
sd2_mega
sd2_mega
 
 
sd2_with_upscaler
sd2_with_upscaler
 
 
sdxl
sdxl
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
import_anything_v3.py
import_anything_v3.py
 
 
import_model.py
import_model.py
 
 
requirements.txt
requirements.txt
 
 
txt2img_test.sh
txt2img_test.sh
 
 

Repository files navigation

bentoml.diffusers examples

This repository hosts supplementary materials of the article Creating Stable Diffusion 2.0 Service With BentoML And Diffusers.

image

Prompt: Kawaii low poly grey American shorthair cat character, 3D isometric render, ambient occlusion, unity engine, lively color Negative prompt: low-res, blurry, mutation, deformed

Currently we have three examples:

  • sd2/ contains a service with txt2img/ endpoint utilizing stabilityai/stable-diffusion-2
  • sd2_mega/ contains a service with txt2img/ and img2img/ endpoints utilizing stabilityai/stable-diffusion-2 and diffusers' custom pipline
  • anything_v3/ contains a service with txt2img/ endpoint utilizing Linaqruf/anything-v3.0

Prepare environment

We recommend running these services on a machine equipped with a Nvidia graphic card and CUDA Toolkit installed.

First let's prepare a virtual environment and install requried depedencies

python3 -m venv venv/ && source venv/bin/activate
pip install -U -r requirements.txt

Import models

You may need to authorize your huggingface account to download models, to do that, run:

pip install -U huggingface_hub
huggingface-cli login

then:

  • to import stabilityai/stable-diffusion-2, run python3 import_model.py
  • to import Linaqruf/anything-v3.0, run python3 import_anything_v3

Start the service and go on

After the model is imported, you can go into sd2/, sd2_mega or anything_v3 and follow the readme inside the folder to start the service and make a docker image for each service

About

API serving for your diffusers models

bentoml.com

Topics

bentomldiffusersmodel-deploymentmodel-serving

Resources

Readme
Activity
Custom properties

Stars

11 stars

Watchers

1 watching

Forks

5 forks
Report repository

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.