Skip to content

Commit

Permalink
[Bugfix][OpenVINO] Fix circular reference #9939 (#9974)
Browse files Browse the repository at this point in the history
Signed-off-by: MengqingCao <[email protected]>
  • Loading branch information
MengqingCao authored Nov 4, 2024
1 parent ea4aded commit ccb5376
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vllm/platforms/openvino.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import torch

import vllm.envs as envs
from vllm.utils import print_warning_once
from vllm.logger import init_logger

from .interface import Platform, PlatformEnum

logger = init_logger(__name__)


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

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

0 comments on commit ccb5376

Please sign in to comment.