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
91e87675
Unverified
Commit
91e87675
authored
Feb 10, 2025
by
Kevin H. Luu
Committed by
GitHub
Feb 10, 2025
Browse files
[misc] Fix setup.py condition to avoid AMD from being mistaken with CPU (#13022)
Signed-off-by:
kevin
<
kevin@anyscale.com
>
parent
08b2d845
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
setup.py
setup.py
+3
-2
No files found.
setup.py
View file @
91e87675
...
...
@@ -48,8 +48,9 @@ elif not (sys.platform.startswith("linux")
"so vLLM may not be able to run correctly"
,
sys
.
platform
)
VLLM_TARGET_DEVICE
=
"empty"
elif
(
sys
.
platform
.
startswith
(
"linux"
)
and
torch
.
version
.
cuda
is
None
and
os
.
getenv
(
"VLLM_TARGET_DEVICE"
)
is
None
):
# if cuda is not available and VLLM_TARGET_DEVICE is not set,
and
os
.
getenv
(
"VLLM_TARGET_DEVICE"
)
is
None
and
torch
.
version
.
hip
is
None
):
# if cuda or hip is not available and VLLM_TARGET_DEVICE is not set,
# fallback to cpu
VLLM_TARGET_DEVICE
=
"cpu"
...
...
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