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
cf656f5a
Unverified
Commit
cf656f5a
authored
Nov 21, 2024
by
youkaichao
Committed by
GitHub
Nov 21, 2024
Browse files
[misc] improve error message (#10553)
Signed-off-by:
youkaichao
<
youkaichao@gmail.com
>
parent
edec3385
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
vllm/platforms/cuda.py
vllm/platforms/cuda.py
+8
-2
No files found.
vllm/platforms/cuda.py
View file @
cf656f5a
...
...
@@ -99,8 +99,14 @@ def device_id_to_physical_device_id(device_id: int) -> int:
if
"CUDA_VISIBLE_DEVICES"
in
os
.
environ
:
device_ids
=
os
.
environ
[
"CUDA_VISIBLE_DEVICES"
].
split
(
","
)
if
device_ids
==
[
""
]:
raise
RuntimeError
(
"CUDA_VISIBLE_DEVICES is set to empty string,"
" which means GPU support is disabled."
)
msg
=
(
"CUDA_VISIBLE_DEVICES is set to empty string, which means"
" GPU support is disabled. If you are using ray, please unset"
" the environment variable `CUDA_VISIBLE_DEVICES` inside the"
" worker/actor. "
"Check https://github.com/vllm-project/vllm/issues/8402 for"
" more information."
)
raise
RuntimeError
(
msg
)
physical_device_id
=
device_ids
[
device_id
]
return
int
(
physical_device_id
)
else
:
...
...
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