Skip to content

Commit 93dfc82

Browse files
committed
Batch invariant torch.compile
1 parent 9938bba commit 93dfc82

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

vllm/model_executor/layers/batch_invariant.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import vllm.envs as envs
1212
from vllm.logger import init_logger
1313
from vllm.triton_utils import tl, triton
14+
from vllm.utils.torch_utils import is_torch_equal_or_newer
1415

1516
logger = init_logger(__name__)
1617

@@ -741,8 +742,6 @@ def disable_batch_invariant_mode():
741742
_batch_invariant_MODE = False
742743
_batch_invariant_LIB = None
743744

744-
torch.backends.cuda.preferred_blas_library(backend="default")
745-
746745

747746
@contextlib.contextmanager
748747
def set_batch_invariant_mode(enabled: bool = True):

0 commit comments

Comments
 (0)