Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Diffusion model benchmark #904

Open
11 tasks
zzpmiracle opened this issue Dec 26, 2022 · 6 comments
Open
11 tasks

Diffusion model benchmark #904

zzpmiracle opened this issue Dec 26, 2022 · 6 comments

Comments

@zzpmiracle
Copy link
Collaborator

We have support diffusers in #867 . This issue tracks performance of all the diffuser pipelines. For the concern of performance, we use BlaDNN to tuning models during runtime.
The following pipelines would be tested:

  • StableDiffusionPipeline
    • runwayml/stable-diffusion-v1-5
    • stabilityai/stable-diffusion-2-1-base
  • StableDiffusionImg2ImgPipeline
    • runwayml/stable-diffusion-v1-5
  • StableDiffusionDepth2ImgPipeline
    • stabilityai/stable-diffusion-2-depth
  • StableDiffusionInpaintPipeline
    • runwayml/stable-diffusion-inpainting
  • AltDiffusionPipeline
    • BAAI/AltDiffusion
@zzpmiracle
Copy link
Collaborator Author

pipeine model img size unet-pytorch unet-disc e2e-pytorch e2e-disc
stableDiffusionPipeline stabilityai/stable-diffusion-2-1 768*768 119.81ms 60.08ms 6.21s 3.14s
StableDiffusionImg2ImgPipeline runwayml/stable-diffusion-v1-5 768*512 66.22ms 29.49ms 3.25s 1.30s
StableDiffusionDepth2ImgPipeline stabilityai/stable-diffusion-2-depth 480*640 44.33ms 19.89ms 2.08s 0.89s
StableDiffusionInpaintPipeline runwayml/stable-diffusion-inpainting 512*512 37.52ms 19.17ms 2.63s 1.10s
AltDiffusionPipeline BAAI/AltDiffusion 512*512 37.93ms 18.74ms 2.65s 1.08s

@tanyokwok
Copy link
Collaborator

How about the e2e latency run with TensorRT/AIT?

@vivienfanghuagood
Copy link

pipeine model img size unet-pytorch unet-disc e2e-pytorch e2e-disc
stableDiffusionPipeline stabilityai/stable-diffusion-2-1 768768 119.81ms 60.08ms 6.21s 3.14s
StableDiffusionImg2ImgPipeline runwayml/stable-diffusion-v1-5 768
512 66.22ms 29.49ms 3.25s 1.30s
StableDiffusionDepth2ImgPipeline stabilityai/stable-diffusion-2-depth 480640 44.33ms 19.89ms 2.08s 0.89s
StableDiffusionInpaintPipeline runwayml/stable-diffusion-inpainting 512
512 37.52ms 19.17ms 2.63s 1.10s
AltDiffusionPipeline BAAI/AltDiffusion 512*512 37.93ms 18.74ms 2.65s 1.08s

Can you share the scripts to run these benchmarks?

@bonlime
Copy link

bonlime commented May 26, 2023

@zzpmiracle Where I can find scripts to run this benchmarks? i've tried using it on the latest diffusers version, and it can't trace the components...

@zzpmiracle
Copy link
Collaborator Author

@zzpmiracle Where I can find scripts to run this benchmarks? i've tried using it on the latest diffusers version, and it can't trace the components...

maybe we can use docker images in this zhihu article https://zhuanlan.zhihu.com/p/631461489

@zwj536
Copy link

zwj536 commented Jun 1, 2023

@zzpmiracle Where I can find scripts to run this benchmarks? i've tried using it on the latest diffusers version, and it can't trace the components...

maybe we can use docker images in this zhihu article https://zhuanlan.zhihu.com/p/631461489

@zzpmiracle hi, do you have an example of Hires.fix ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants