Skip to content

Commit

Permalink
fix: update platform detection for M-series arm based MacBook processors
Browse files Browse the repository at this point in the history
Signed-off-by: isikhi <[email protected]>
  • Loading branch information
isikhi committed Jan 20, 2025
1 parent 9666369 commit 739782d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vllm/platforms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ def cpu_platform_plugin() -> Optional[str]:
try:
from importlib.metadata import version
is_cpu = "cpu" in version("vllm")
if is_cpu == False:
import platform
is_cpu = platform.machine().lower().startswith("arm")

except Exception:
pass

Expand Down

0 comments on commit 739782d

Please sign in to comment.