File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed
Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change 2020if torch_version_at_least ("2.11.0" ):
2121 from torchao .prototype .attention .utils import _is_fa3_available , _is_hopper
2222
23- if _is_hopper () and _is_fa3_available ():
24- from torch .nn .attention import (
25- activate_flash_attention_impl ,
26- restore_flash_attention_impl ,
27- )
23+ if _is_hopper () and _is_fa3_available ():
24+ from torch .nn .attention import (
25+ activate_flash_attention_impl ,
26+ restore_flash_attention_impl ,
27+ )
2828
29- from torchao .prototype .attention import (
30- AttentionBackend ,
31- apply_low_precision_attention ,
32- )
33- from torchao .prototype .attention .fp8_fa3 .attention import (
34- fp8_fa3_rope_sdpa ,
35- fp8_fa3_sdpa ,
36- )
29+ from torchao .prototype .attention import (
30+ AttentionBackend ,
31+ apply_low_precision_attention ,
32+ )
33+ from torchao .prototype .attention .fp8_fa3 .attention import (
34+ fp8_fa3_rope_sdpa ,
35+ fp8_fa3_sdpa ,
36+ )
3737
3838
3939def _rope_cos_sin (S , D , device ):
You can’t perform that action at this time.
0 commit comments