Skip to content

Commit

Permalink
Consider pynvml available when installed through the nvidia-ml-py dis…
Browse files Browse the repository at this point in the history
…tribution (#2936)
  • Loading branch information
matthewdouglas authored Jul 16, 2024
1 parent 4f02bb7 commit 7a5c231
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/accelerate/utils/imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def is_import_timer_available():


def is_pynvml_available():
return _is_package_available("pynvml")
return _is_package_available("pynvml") or _is_package_available("pynvml", "nvidia-ml-py")


def is_pytest_available():
Expand Down

0 comments on commit 7a5c231

Please sign in to comment.