-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Relative import xformer triton depend fix (#37)
* 1. xformer import logi update; 2. changing all import * to specific package import Signed-off-by: lawrence-cj <[email protected]> * 1. change all import * to specific package; 2. fix bugs 3. add `triton` and `xformers` checking into import_utils.py * support `F.scaled_dot_product_attention` without `xformers` * pre-commit Signed-off-by: lawrence-cj <[email protected]> --------- Signed-off-by: lawrence-cj <[email protected]> Co-authored-by: Ligeng Zhu <[email protected]>
- Loading branch information
1 parent
fcc872a
commit fa267d5
Showing
15 changed files
with
216 additions
and
45 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 |
---|---|---|
@@ -1 +0,0 @@ | ||
from .nets import * | ||
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,5 +1,43 @@ | ||
from .sana import * | ||
from .sana_multi_scale import * | ||
from .sana_multi_scale_adaln import * | ||
from .sana_U_shape import * | ||
from .sana_U_shape_multi_scale import * | ||
from .sana import ( | ||
Sana, | ||
SanaBlock, | ||
get_1d_sincos_pos_embed_from_grid, | ||
get_2d_sincos_pos_embed, | ||
get_2d_sincos_pos_embed_from_grid, | ||
) | ||
from .sana_multi_scale import ( | ||
SanaMS, | ||
SanaMS_600M_P1_D28, | ||
SanaMS_600M_P2_D28, | ||
SanaMS_600M_P4_D28, | ||
SanaMS_1600M_P1_D20, | ||
SanaMS_1600M_P2_D20, | ||
SanaMSBlock, | ||
) | ||
from .sana_multi_scale_adaln import ( | ||
SanaMSAdaLN, | ||
SanaMSAdaLN_600M_P1_D28, | ||
SanaMSAdaLN_600M_P2_D28, | ||
SanaMSAdaLN_600M_P4_D28, | ||
SanaMSAdaLN_1600M_P1_D20, | ||
SanaMSAdaLN_1600M_P2_D20, | ||
SanaMSAdaLNBlock, | ||
) | ||
from .sana_U_shape import ( | ||
SanaU, | ||
SanaU_600M_P1_D28, | ||
SanaU_600M_P2_D28, | ||
SanaU_600M_P4_D28, | ||
SanaU_1600M_P1_D20, | ||
SanaU_1600M_P2_D20, | ||
SanaUBlock, | ||
) | ||
from .sana_U_shape_multi_scale import ( | ||
SanaUMS, | ||
SanaUMS_600M_P1_D28, | ||
SanaUMS_600M_P2_D28, | ||
SanaUMS_600M_P4_D28, | ||
SanaUMS_1600M_P1_D20, | ||
SanaUMS_1600M_P2_D20, | ||
SanaUMSBlock, | ||
) |
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
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
Oops, something went wrong.