mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-05-18 05:07:01 +08:00
[Bugfix] Restrict MacOS CPU detection (#14210)
Signed-off-by: mgoin <mgoin64@gmail.com>
This commit is contained in:
parent
3610fb4930
commit
6247bae6c6
@ -160,11 +160,11 @@ def cpu_platform_plugin() -> Optional[str]:
|
|||||||
logger.debug("Confirmed CPU platform is available because"
|
logger.debug("Confirmed CPU platform is available because"
|
||||||
" vLLM is built with CPU.")
|
" vLLM is built with CPU.")
|
||||||
if not is_cpu:
|
if not is_cpu:
|
||||||
import platform
|
import sys
|
||||||
is_cpu = platform.machine().lower().startswith("arm")
|
is_cpu = sys.platform.startswith("darwin")
|
||||||
if is_cpu:
|
if is_cpu:
|
||||||
logger.debug("Confirmed CPU platform is available"
|
logger.debug("Confirmed CPU platform is available"
|
||||||
" because the machine is ARM.")
|
" because the machine is MacOS.")
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.debug("CPU platform is not available because: %s", str(e))
|
logger.debug("CPU platform is not available because: %s", str(e))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user