From afeca38a47121534f1e0e9886d106452d11e3941 Mon Sep 17 00:00:00 2001 From: Guancheng Fu <110874468+gc-fu@users.noreply.github.com> Date: Wed, 31 Jul 2024 13:50:01 +0800 Subject: [PATCH] Fix import vllm condition (#11682) --- python/llm/src/ipex_llm/transformers/convert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/llm/src/ipex_llm/transformers/convert.py b/python/llm/src/ipex_llm/transformers/convert.py index 32cf166f..05d16926 100644 --- a/python/llm/src/ipex_llm/transformers/convert.py +++ b/python/llm/src/ipex_llm/transformers/convert.py @@ -73,7 +73,7 @@ def is_vllm_available(): import sys original_path = sys.path # 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 sys.path = original_path return _IS_VLLM_AVAILABLE