Uh oh!
There was an error while loading. Please reload this page.
[Chore] allow auraflow latest to be torch compile compatible. - #8859
Conversation
HuggingFaceDocBuilderDev
commented
Jul 13, 2024
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. |
yiyixuxu
commented
Jul 14, 2024
I don't think there is anything wrong with |
bghira
commented
Jul 14, 2024
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
commented
Jul 15, 2024
apolinario
commented
Jul 15, 2024
@sayakpaul , by changing the default, you un-did the initial change, is that intended? f6c975a |
sayakpaul
commented
Jul 15, 2024
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.