Uh oh!
There was an error while loading. Please reload this page.
Conversation
HuggingFaceDocBuilderDev
commented
Aug 15, 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
Aug 19, 2024
awesome, but I think we will have to update once the refactor PR is in since I combined the attention processors there #9074 |
sayakpaul
commented
Aug 20, 2024
100 percent right. I will repurpose once your PR is in :) |
sayakpaul
commented
Aug 22, 2024
yiyixuxu
left a comment
There was a problem hiding this comment.
PR looks good to me
Can we run a actual test to see the improvement before merge? feel free to merge once that's done
sayakpaul
commented
Aug 23, 2024
Check the PR description: |
yiyixuxu
commented
Aug 23, 2024
@sayakpaul ahh I missed it! sorry! very nice! |
@sayakpaul This feature doesn't seem to work together with |
sayakpaul
commented
Oct 15, 2024
Please redirect the issue to https://github.com/sayakpaul/diffusers-torchao |
* start fusing flux. * test * finish fusion * fix-copues
What does this PR do?
Adds
fuse_qkv_projection()support Flux.Will report the performance improvements soon.
Batch size 1 (see footnote):
With fusion: 8.456 seconds (memory 25.25 GB)
Without fusion: 11.492 seconds (35.455 GB)
As a reminder, refer to this comment to understand the scope of when fusion is ideal.
Footnote:
This was run on an A100. For quantization, we use "autoquant" from
torchao. We are working on a repository to show the full-blown recipes. It will be made open in a day's time.