[Hardware][openvino] is_openvino --> current_platform.is_openvino (#9716)
This commit is contained in:
@@ -17,7 +17,7 @@ from vllm.transformers_utils.config import (ConfigFormat, get_config,
|
||||
get_hf_image_processor_config,
|
||||
get_hf_text_config)
|
||||
from vllm.utils import (GiB_bytes, cuda_device_count_stateless, get_cpu_memory,
|
||||
is_hip, is_openvino, print_warning_once)
|
||||
is_hip, print_warning_once)
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from ray.util.placement_group import PlacementGroup
|
||||
@@ -1117,7 +1117,7 @@ class DeviceConfig:
|
||||
self.device_type = "cuda"
|
||||
elif current_platform.is_neuron():
|
||||
self.device_type = "neuron"
|
||||
elif is_openvino():
|
||||
elif current_platform.is_openvino():
|
||||
self.device_type = "openvino"
|
||||
elif current_platform.is_tpu():
|
||||
self.device_type = "tpu"
|
||||
|
||||
Reference in New Issue
Block a user