-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Support unittest for Z-image ⚡️ #12715
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
Merged
Changes from 36 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
42658fa
Add Support for Z-Image.
JerryWu-code 3e74bb2
Reformatting with make style, black & isort.
JerryWu-code a4b89a0
Remove init, Modify import utils, Merge forward in transformers block…
JerryWu-code 7df350d
modified main model forward, freqs_cis left
ChrisLiu6 1dd587b
Merge remote-tracking branch 'JerryWu-code/z-image-dev' into fork/Jer…
ChrisLiu6 aae03cf
refactored to add B dim
ChrisLiu6 21d8130
fixed stack issue
ChrisLiu6 e3dfa9e
fixed modulation bug
ChrisLiu6 a7fa731
fixed modulation bug
ChrisLiu6 1e0cefe
fix bug
ChrisLiu6 7adaae8
remove value_from_time_aware_config
ChrisLiu6 5b4c907
styling
ChrisLiu6 2bb39f4
Fix neg embed and devide / bug; Reuse pad zero tensor; Turn cat -> re…
JerryWu-code 71e8049
Replace padding with pad_sequence; Add gradient checkpointing.
JerryWu-code fbf26b7
Fix flash_attn3 in dispatch attn backend by _flash_attn_forward, repl…
JerryWu-code 6c0c059
Fix Docstring and Make Style.
JerryWu-code 28685dd
Revert "Fix flash_attn3 in dispatch attn backend by _flash_attn_forwa…
ChrisLiu6 8e391b7
update z-image docstring
ChrisLiu6 3b22e84
Revert attention dispatcher
ChrisLiu6 3d1a7aa
update z-image docstring
ChrisLiu6 336c5ce
styling
ChrisLiu6 38a89ed
Recover attention_dispatch.py with its origin impl, later would speci…
JerryWu-code 69d61e5
Fix prev bug, and support for prompt_embeds pass in args after prompt…
JerryWu-code 549ad57
Merge branch 'z-image-dev-ql' into z-image-dev
JerryWu-code 1dd8f3c
Remove einop dependency.
JerryWu-code 2f2d8c3
Merge branch 'z-image-dev' into z-image
JerryWu-code a74a0c4
Merge remote-tracking branch 'origin/main' into z-image
JerryWu-code e49a1f9
remove redundant imports & make fix-copies
ChrisLiu6 1048d0a
fix import
ChrisLiu6 266e169
Support for num_images_per_prompt>1; Remove redundant unquote variables.
JerryWu-code 12d2fb2
Fix bugs for num_images_per_prompt with actual batch.
JerryWu-code 9a049f0
Add unit tests for Z-Image.
JerryWu-code c4e4a57
Refine unitest and skip for cases needed separate test env; Fix compa…
JerryWu-code 6f2808b
Add clean env for test_save_load_float16 separ test; Add Note; Styling.
JerryWu-code e48060c
Merge current branch into ours for next pr compatibility.
JerryWu-code 27a37cd
Merge branch 'main' into z-image
JerryWu-code aeed890
Update dtype mentioned by yiyi.
JerryWu-code e277137
Merge branch 'main' into z-image
JerryWu-code 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
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.