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
0408efc6
Unverified
Commit
0408efc6
authored
Feb 06, 2025
by
youkaichao
Committed by
GitHub
Feb 06, 2025
Browse files
[Misc] Improve error message for incorrect pynvml (#12809)
Signed-off-by:
youkaichao
<
youkaichao@gmail.com
>
parent
449d1bce
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
vllm/platforms/__init__.py
vllm/platforms/__init__.py
+5
-1
No files found.
vllm/platforms/__init__.py
View file @
0408efc6
...
...
@@ -41,7 +41,11 @@ def cuda_platform_plugin() -> Optional[str]:
is_cuda
=
True
finally
:
pynvml
.
nvmlShutdown
()
except
Exception
:
except
Exception
as
e
:
if
"nvml"
not
in
e
.
__class__
.
__name__
.
lower
():
# If the error is not related to NVML, re-raise it.
raise
e
# CUDA is supported on Jetson, but NVML may not be.
import
os
...
...
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