Skip to content

Commit

Permalink
remove CPU fallback if CUDA is not available
Browse files Browse the repository at this point in the history
Signed-off-by: Daniele Trifirò <[email protected]>
  • Loading branch information
dtrifiro committed Feb 17, 2025
1 parent ccca627 commit a6c86c4
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,6 @@ def load_module_from_path(module_name, path):
"Building on %s, "
"so vLLM may not be able to run correctly", sys.platform)
VLLM_TARGET_DEVICE = "empty"
elif (sys.platform.startswith("linux") and torch.version.cuda is None
and os.getenv("VLLM_TARGET_DEVICE") is None
and torch.version.hip is None):
# if cuda or hip is not available and VLLM_TARGET_DEVICE is not set,
# fallback to cpu
VLLM_TARGET_DEVICE = "cpu"

MAIN_CUDA_VERSION = "12.1"

Expand Down

0 comments on commit a6c86c4

Please sign in to comment.