From c7178d89bb7a70817f239febc84c3b21a714dae7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=AA=E5=BF=97=E9=B9=8F?= Date: Fri, 15 May 2026 13:28:40 +0800 Subject: [PATCH] =?UTF-8?q?[Bugfix]=20UnspecifiedOmniPlatform.get=5Fdevice?= =?UTF-8?q?=5Fcount=20returns=200=20instead=20o=E2=80=A6=20(#3636)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: princepride --- vllm_omni/platforms/interface.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vllm_omni/platforms/interface.py b/vllm_omni/platforms/interface.py index 0e0762b59..f9ec84300 100644 --- a/vllm_omni/platforms/interface.py +++ b/vllm_omni/platforms/interface.py @@ -204,3 +204,7 @@ class OmniPlatform(Platform): class UnspecifiedOmniPlatform(OmniPlatform): _omni_enum = OmniPlatformEnum.UNSPECIFIED device_type = "" + + @classmethod + def get_device_count(cls) -> int: + return 0