Skip to content

Commit

Permalink
Fix import vllm condition (intel-analytics#11682)
Browse files Browse the repository at this point in the history
  • Loading branch information
gc-fu authored Jul 31, 2024
1 parent 54bf3a2 commit afeca38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/llm/src/ipex_llm/transformers/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit afeca38

Please sign in to comment.