-
Notifications
You must be signed in to change notification settings - Fork 6.6k
[feat] allow SDXL pipeline to run with fused QKV projections #6030
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
Merged
Changes from 49 commits
Commits
Show all changes
61 commits
Select commit
Hold shift + click to select a range
bf4e645
debug
sayakpaul afb517a
from step
sayakpaul 55f1842
print
sayakpaul 215bf3b
turn sigma a list
sayakpaul 75ae3df
make str
sayakpaul ff04934
init_noise_sigma
sayakpaul 096fffb
comment
sayakpaul bd855d7
remove prints
sayakpaul 88c7e16
feat: introduce fused projections
sayakpaul f5b091d
change to a better name
sayakpaul a4da76b
no grad
sayakpaul c5a5f85
device.
sayakpaul 4e556a9
device
sayakpaul 86027e5
dtype
sayakpaul a030797
okay
sayakpaul 01c6038
print
sayakpaul c4eaec3
more print
sayakpaul a7da467
fix: unbind -> split
sayakpaul 94fb74a
fix: qkv >-> k
sayakpaul 678577b
enable disable
sayakpaul 580a1c2
apply attention processor within the method
sayakpaul 06bb65b
attn processors
sayakpaul a0b9066
_enable_fused_qkv_projections
sayakpaul 32012ce
remove print
sayakpaul 5175b91
add fused projection to vae
sayakpaul 7b16888
add todos.
sayakpaul ba14a08
merge main and resolve conflicts
sayakpaul 23f8404
add: documentation and cleanups.
sayakpaul e51bc7e
add: test for qkv projection fusion.
sayakpaul b64e533
relax assertions.
sayakpaul c7f78bf
relax further
sayakpaul 981dc3a
fix: docs
sayakpaul be647c3
Merge branch 'main' into sdxl/feat
sayakpaul 0afc2b4
fix-copies
sayakpaul 2c02f07
correct error message.
sayakpaul e0848eb
Empty-Commit
sayakpaul 4b66d10
better conditioning on disable_fused_qkv_projections
sayakpaul 6c5712c
Merge branch 'main' into sdxl/feat
sayakpaul 8da35af
check
sayakpaul 4e120d8
check processor
sayakpaul 253aaf0
bfloat16 computation.
sayakpaul 44d4263
check latent dtype
sayakpaul 418d33c
style
sayakpaul 8c0c3e2
remove copy temporarily
sayakpaul 1688fee
cast latent to bfloat16
sayakpaul 4f882ab
fix: vae -> self.vae
sayakpaul 2632a8b
remove print.
sayakpaul d944d8b
add _change_to_group_norm_32
sayakpaul 0432297
comment out stuff that didn't work
sayakpaul 7d8b913
Apply suggestions from code review
sayakpaul ff28fdd
reflect patrick's suggestions.
sayakpaul 93b5f92
fix imports
sayakpaul a7a952d
Merge branch 'main' into sdxl/feat
sayakpaul 8d17831
fix: disable call.
sayakpaul d17bbbd
fix more
sayakpaul a5fb4d7
fix device and dtype
sayakpaul 8fadb14
fix conditions.
sayakpaul c6d5e86
fix more
sayakpaul abf9ebc
Apply suggestions from code review
sayakpaul d485abd
Merge branch 'main' into sdxl/feat
sayakpaul e65ddcd
Merge branch 'main' into sdxl/feat
sayakpaul File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.