forked from xdit-project/xDiT
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: DiTFastAttn for PixArt (xdit-project#297)
- Loading branch information
1 parent
c84d8b7
commit 25d5ede
Showing
14 changed files
with
762 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,5 @@ profile/ | |
xfuser.egg-info/ | ||
dist/* | ||
latte_output.mp4 | ||
*.sh | ||
*.sh | ||
cache/ |
This file contains 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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
from .fast_attn_state import ( | ||
get_fast_attn_state, | ||
get_fast_attn_enable, | ||
get_fast_attn_step, | ||
get_fast_attn_calib, | ||
get_fast_attn_threshold, | ||
get_fast_attn_window_size, | ||
get_fast_attn_coco_path, | ||
get_fast_attn_use_cache, | ||
get_fast_attn_config_file, | ||
get_fast_attn_layer_name, | ||
initialize_fast_attn_state, | ||
) | ||
|
||
from .attn_layer import ( | ||
FastAttnMethod, | ||
xFuserFastAttention, | ||
) | ||
|
||
from .utils import fast_attention_compression | ||
|
||
__all__ = [ | ||
"get_fast_attn_state", | ||
"get_fast_attn_enable", | ||
"get_fast_attn_step", | ||
"get_fast_attn_calib", | ||
"get_fast_attn_threshold", | ||
"get_fast_attn_window_size", | ||
"get_fast_attn_coco_path", | ||
"get_fast_attn_use_cache", | ||
"get_fast_attn_config_file", | ||
"get_fast_attn_layer_name", | ||
"initialize_fast_attn_state", | ||
"xFuserFastAttention", | ||
"FastAttnMethod", | ||
"fast_attention_compression", | ||
] |
Oops, something went wrong.