-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: unified interface for long ctx attn (#337)
- Loading branch information
1 parent
eb001a1
commit 2cca70b
Showing
6 changed files
with
69 additions
and
248 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
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 |
---|---|---|
@@ -1,15 +1,9 @@ | ||
from .cache_manager import CacheManager | ||
from .long_ctx_attention import ( | ||
xFuserLongContextAttention, | ||
xFuserJointLongContextAttention, | ||
xFuserFluxLongContextAttention, | ||
) | ||
from .long_ctx_attention import xFuserLongContextAttention | ||
from .utils import gpu_timer_decorator | ||
|
||
__all__ = [ | ||
"CacheManager", | ||
"xFuserLongContextAttention", | ||
"xFuserJointLongContextAttention", | ||
"xFuserFluxLongContextAttention", | ||
"gpu_timer_decorator", | ||
] |
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 |
---|---|---|
@@ -1,13 +1,7 @@ | ||
from .hybrid import ( | ||
xFuserLongContextAttention, | ||
xFuserFluxLongContextAttention, | ||
xFuserJointLongContextAttention, | ||
) | ||
from .hybrid import xFuserLongContextAttention | ||
from .ulysses import xFuserUlyssesAttention | ||
|
||
__all__ = [ | ||
"xFuserLongContextAttention", | ||
"xFuserFluxLongContextAttention", | ||
"xFuserJointLongContextAttention", | ||
"xFuserUlyssesAttention", | ||
] |
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 |
---|---|---|
@@ -1,11 +1,7 @@ | ||
from .attn_layer import ( | ||
xFuserLongContextAttention, | ||
xFuserFluxLongContextAttention, | ||
xFuserJointLongContextAttention, | ||
) | ||
|
||
__all__ = [ | ||
"xFuserLongContextAttention", | ||
"xFuserFluxLongContextAttention", | ||
"xFuserJointLongContextAttention", | ||
] |
Oops, something went wrong.