Skip to content

Commit e4f1bf3

Browse files
Consider pynvml available when installed through the nvidia-ml-py distribution
1 parent 2471eac commit e4f1bf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/accelerate/utils/imports.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def is_import_timer_available():
8686

8787

8888
def is_pynvml_available():
89-
return _is_package_available("pynvml")
89+
return _is_package_available("pynvml") or _is_package_available("pynvml", "nvidia-ml-py")
9090

9191

9292
def is_pytest_available():

0 commit comments

Comments
 (0)