mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-09-09 03:37:08 +08:00
Fix the AMD weight loading tests (#8390)
This commit is contained in:
parent
b71c956deb
commit
b6c75e1cf2
@ -883,7 +883,7 @@ class ParallelConfig:
|
|||||||
from vllm.executor import ray_utils
|
from vllm.executor import ray_utils
|
||||||
backend = "mp"
|
backend = "mp"
|
||||||
ray_found = ray_utils.ray_is_available()
|
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):
|
and cuda_device_count_stateless() < self.world_size):
|
||||||
if not ray_found:
|
if not ray_found:
|
||||||
raise ValueError("Unable to load Ray which is "
|
raise ValueError("Unable to load Ray which is "
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user