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
Signed-off-by: Alvant <alvasian@yandex.ru>
  • Loading branch information
mgoin authored and Alvant committed Oct 26, 2024
1 parent b3b2136 commit c36e21b
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 @@ -883,7 +883,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 c36e21b

Please sign in to comment.