Skip to content

Commit

Permalink
[Bugfix][OpenVINO] fix circular reference vllm-project#9939
Browse files Browse the repository at this point in the history
Signed-off-by: MengqingCao <[email protected]>
  • Loading branch information
MengqingCao committed Nov 4, 2024
1 parent 91c9ebb commit 3016837
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 3016837

Please sign in to comment.