Skip to content

Commit b7083f0

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" (8)
Signed-off-by: Alexandru Badea <george-alexandru.badea@ionos.com>a
1 parent 5068c58 commit b7083f0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,9 @@ def target_name(s: str) -> str:
238238
*[f"--target={name}" for name in targets],
239239
]
240240

241+
if VLLM_TARGET_DEVICE == "cpu":
242+
build_args.append("-DUSE_CUDA=OFF")
243+
241244
subprocess.check_call(["cmake", *build_args], cwd=self.build_temp)
242245

243246
# Install the libraries

0 commit comments

Comments
 (0)