-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
[Chore] allow auraflow latest to be torch compile compatible. #8859
Conversation
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
I don't think there is anything wrong with |
it's a shame that the height and width aren't just None, and then default to the sample size in the model config. but i guess it's actually hard to concretely calculate that. we can hardcode it based on max_pos_embed value. i'm not sure if we're going to make any 512px models available. they are very fast and nice to work with. |
@sayakpaul , by changing the default, you un-did the initial change, is that intended? f6c975a |
yeah that is right. |
…gface#8859) * allow auraflow latest to be torch compile compatible. * default to 1024 1024.
* allow auraflow latest to be torch compile compatible. * default to 1024 1024.
What does this PR do?
Otherwise, we run into a shape broadcasting problem during
torch.compile()
. Note that this doesn't happen when the internal AuraDiffusion/auradiffusion-v0.1a0 variant.Benchmarking script
| With `torch.compile()` | Without `torch.compile()` | |----------|----------| | 7.293 seconds | 8.801 seconds |Results
@apolinario FYI.