Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions vllm/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2252,11 +2252,13 @@
import pynvml
if pynvml.__file__.endswith("__init__.py"):
# this is pynvml < 12.0
raise RuntimeError(
"You are using a deprecated `pynvml` package. "
"Please uninstall `pynvml` or upgrade to at least"
" version 12.0. See https://pypi.org/project/pynvml "
"for more information.")
print(
"ERROR: You are using a deprecated `pynvml` package. "
"Please uninstall `pynvml` or upgrade to at least version 12.0. "

Check failure on line 2257 in vllm/utils.py

View workflow job for this annotation

GitHub Actions / pre-commit

Ruff (E501)

vllm/utils.py:2257:81: E501 Line too long (81 > 80)
"See https://pypi.org/project/pynvml for more information.",
file=sys.stderr,
)
sys.exit(1) # Forcefully terminate the script
return sys.modules["pynvml"]
import importlib.util
import os
Expand Down
Loading