Skip to content

Commit 3b528fe

Browse files
committed
fix for pre-commit failed job - Error: vllm/executor/ray_distributed_executor.py:531: error: Library stubs not installed for "pkg_resources" (5)
Signed-off-by: Alexandru Badea <george-alexandru.badea@ionos.com>
1 parent 03b99f5 commit 3b528fe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -585,8 +585,9 @@ def get_vllm_version() -> str:
585585
elif _is_tpu():
586586
version += f"{sep}tpu"
587587
elif _is_cpu():
588-
if envs.VLLM_TARGET_DEVICE == "cpu":
589-
version += f"{sep}cpu"
588+
# For CPU builds, we don't append a suffix to the version.
589+
# The standard PyPI `torch` package is CPU-only by default.
590+
pass # Do not append +cpu to the version string
590591
elif _is_xpu():
591592
version += f"{sep}xpu"
592593
else:

0 commit comments

Comments
 (0)