[CI/Build] make pip install vllm work in macos (for import only) (#8118)

This commit is contained in:
tomeras91 2024-09-03 22:37:08 +03:00 committed by GitHub
parent 652c83b697
commit c02638efb3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -362,7 +362,8 @@ def get_vllm_version() -> str:
version = find_version(get_path("vllm", "version.py"))
if _no_device():
version += "+empty"
if envs.VLLM_TARGET_DEVICE == "empty":
version += "+empty"
elif _is_cuda():
cuda_version = str(get_nvcc_cuda_version())
if cuda_version != MAIN_CUDA_VERSION: