Skip to content

Commit a21cac2

Browse files
committed
Remove the eager import
Signed-off-by: Jingyu Xin <jingyux@nvidia.com>
1 parent 7bae5d7 commit a21cac2

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

modelopt/torch/sparsity/attention_sparsity/methods/flash_skip_softmax.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -390,13 +390,6 @@ def sparse_softmax(input, dim=-1, *args, **kwargs):
390390
set_skip_softmax_context(True)
391391
stack.callback(set_skip_softmax_context, False)
392392

393-
try:
394-
from ..kernels.diffusers_eager_attention import get_skip_softmax_attention_backend
395-
396-
stack.enter_context(get_skip_softmax_attention_backend())
397-
except (ImportError, RuntimeError):
398-
pass
399-
400393
stack.enter_context(replace_function(torch.nn.functional, "softmax", sparse_softmax))
401394
return stack
402395

0 commit comments

Comments
 (0)