Skip to content

Commit a7d6697

Browse files
MengqingCaosumitd2
authored andcommitted
[Bugfix][OpenVINO] Fix circular reference vllm-project#9939 (vllm-project#9974)
Signed-off-by: MengqingCao <cmq0113@163.com> Signed-off-by: Sumit Dubey <sumit.dubey2@ibm.com>
1 parent 3e03e48 commit a7d6697

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

vllm/platforms/openvino.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import torch
22

33
import vllm.envs as envs
4-
from vllm.utils import print_warning_once
4+
from vllm.logger import init_logger
55

66
from .interface import Platform, PlatformEnum
77

8+
logger = init_logger(__name__)
9+
810

911
class OpenVinoPlatform(Platform):
1012
_enum = PlatformEnum.OPENVINO
@@ -27,5 +29,5 @@ def is_openvino_gpu(self) -> bool:
2729

2830
@classmethod
2931
def is_pin_memory_available(self) -> bool:
30-
print_warning_once("Pin memory is not supported on OpenViNO.")
32+
logger.warning("Pin memory is not supported on OpenViNO.")
3133
return False

0 commit comments

Comments
 (0)