Provide Python access to the NVML library for GPU diagnostics
Python
274
67 commits
updated Sep 5, 2025
[!WARNING]
This project has been deprecated.
The
pynvmlmodule is NOT developed or maintained in this project!This project provides unofficial NVML Python utilities (i.e. the
pynvml_utilsmodule). Thepynvml_utilsmodule is intended for demonstration purposes only. There is no guarantee for long-term maintenence or support.The
pynvml_utilsmodule depends on the official NVML bindings published by NVIDIA under a differentnvidia-ml-pyproject (see: https://pypi.org/project/nvidia-ml-py/).
This project provides unofficial Python utilities for the NVIDIA Management Library (NVML).
For information about the NVML library, see the NVML developer page http://developer.nvidia.com/nvidia-management-library-nvml
nvidia-ml-py.
pip install .
Bindings for the high-level nvidia-smi API are available
in pynvml_utils.nvidia_smi:
[!WARNING] The
nvidia_smimodule is intended for demonstration purposes only. There is no guarantee for long-term maintenence or support.
from pynvml_utils import nvidia_smi
nvsmi = nvidia_smi.getInstance()
nvsmi.DeviceQuery('memory.free, memory.total')
from pynvml_utils import nvidia_smi
nvsmi = nvidia_smi.getInstance()
print(nvsmi.DeviceQuery('--help-query-gpu'), end='\n')
332 followers · starred Feb 2025
15 followers · starred Feb 2021
Provide Python access to the NVML library for GPU diagnostics
Python
274
67 commits
updated Sep 5, 2025
[!WARNING]
This project has been deprecated.
The
pynvmlmodule is NOT developed or maintained in this project!This project provides unofficial NVML Python utilities (i.e. the
pynvml_utilsmodule). Thepynvml_utilsmodule is intended for demonstration purposes only. There is no guarantee for long-term maintenence or support.The
pynvml_utilsmodule depends on the official NVML bindings published by NVIDIA under a differentnvidia-ml-pyproject (see: https://pypi.org/project/nvidia-ml-py/).
This project provides unofficial Python utilities for the NVIDIA Management Library (NVML).
For information about the NVML library, see the NVML developer page http://developer.nvidia.com/nvidia-management-library-nvml
nvidia-ml-py.
pip install .
Bindings for the high-level nvidia-smi API are available
in pynvml_utils.nvidia_smi:
[!WARNING] The
nvidia_smimodule is intended for demonstration purposes only. There is no guarantee for long-term maintenence or support.
from pynvml_utils import nvidia_smi
nvsmi = nvidia_smi.getInstance()
nvsmi.DeviceQuery('memory.free, memory.total')
from pynvml_utils import nvidia_smi
nvsmi = nvidia_smi.getInstance()
print(nvsmi.DeviceQuery('--help-query-gpu'), end='\n')
332 followers · starred Feb 2025
15 followers · starred Feb 2021