Skip to content

Commit

Permalink
Fix the AMD weight loading tests (vllm-project#8390)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgoin authored and MengqingCao committed Sep 30, 2024
1 parent 88da6d9 commit b1ea1c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vllm/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@ def __init__(
from vllm.executor import ray_utils
backend = "mp"
ray_found = ray_utils.ray_is_available()
if (torch.cuda.is_available()
if (current_platform.is_cuda()
and cuda_device_count_stateless() < self.world_size):
if not ray_found:
raise ValueError("Unable to load Ray which is "
Expand Down

0 comments on commit b1ea1c7

Please sign in to comment.