Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
6247bae6
Unverified
Commit
6247bae6
authored
Mar 04, 2025
by
Michael Goin
Committed by
GitHub
Mar 04, 2025
Browse files
[Bugfix] Restrict MacOS CPU detection (#14210)
Signed-off-by:
mgoin
<
mgoin64@gmail.com
>
parent
3610fb49
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
vllm/platforms/__init__.py
vllm/platforms/__init__.py
+3
-3
No files found.
vllm/platforms/__init__.py
View file @
6247bae6
...
@@ -160,11 +160,11 @@ def cpu_platform_plugin() -> Optional[str]:
...
@@ -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
(
"ar
m
"
)
is_cpu
=
sys
.
platform
.
startswith
(
"
d
ar
win
"
)
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
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment