Fix the AMD weight loading tests (#8390)

This commit is contained in:
Michael Goin 2024-09-11 23:35:33 -04:00 committed by GitHub
parent b71c956deb
commit b6c75e1cf2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -883,7 +883,7 @@ class ParallelConfig:
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 "