Skip to content

Commit

Permalink
Squash 3804
Browse files Browse the repository at this point in the history
  • Loading branch information
joerunde committed Apr 2, 2024
1 parent b59b8d2 commit e92db68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vllm/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ def is_hip() -> bool:

@lru_cache(maxsize=None)
def is_cpu() -> bool:
from importlib.metadata import version
is_cpu_flag = "cpu" in version("vllm")
import vllm
is_cpu_flag = "cpu" in vllm.__version__
return is_cpu_flag


Expand Down

0 comments on commit e92db68

Please sign in to comment.