Fix import vllm condition (#11682)
This commit is contained in:
parent
54bf3a23a6
commit
afeca38a47
1 changed files with 1 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ def is_vllm_available():
|
||||||
import sys
|
import sys
|
||||||
original_path = sys.path
|
original_path = sys.path
|
||||||
# Temporally remove current directory
|
# Temporally remove current directory
|
||||||
sys.path = [p for p in sys.path if p != '']
|
sys.path = original_path[1:]
|
||||||
_IS_VLLM_AVAILABLE = importlib.util.find_spec("vllm") is not None
|
_IS_VLLM_AVAILABLE = importlib.util.find_spec("vllm") is not None
|
||||||
sys.path = original_path
|
sys.path = original_path
|
||||||
return _IS_VLLM_AVAILABLE
|
return _IS_VLLM_AVAILABLE
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue