-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Benchmarking SDXL with the new TensorRT compilation #5564
Comments
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
@sayakpaul So why not choose my totally open-sourced alternative: |
Thanks so much for sharing. Does it also provide speedup for SDXL? If so, could you share some numbers? |
Yes, it supports SDXL On 4090 it could be more than 10it/s. But I haven’t tested it yet accurately. You can check my README.md to see old benchmark numbers. Or you can just try it! I think everyone can deploy and test stable-fast and reproduce its speed within 10 minutes. |
If you could gather a similar plot for SDXL, that would be great! |
I plan to conduct a benchmark this weekend, on H100 |
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
During the PyTorch conference,
torch.compile()
support with TensorRT was introduced. See the following:In Slide 7, it's mentioned that:
It was benchmarked on an RTX4090 24GB.
So, I thought it could be cool to benchmark some of our pipelines with this new feature and potentially speed things up. I started with SDXL as that has been becoming the goto recently.
Setup
pip install transformers diffusers accelerate
.Code
Here are the results with a batch size of 4:
Surprisingly, TensorRT compilation didn't lead to any speedups. I am providing a part of the logs that might be relevant here:
@peri044 any additional insights here as to what we could have done to get speedups? Also, if you could provide a reproducible code snippet for obtaining similar results for Stable Diffusion, that would be helpful.
The text was updated successfully, but these errors were encountered: