gpustat

Open source

gpustat is a Python command-line utility that shows the status and usage of NVIDIA GPUs in a compact form.

pypi.python.org
gpustat homepage screenshot
GitHub stars
4.4k
Last 30 days
-2(+0%)
Last commit
1 mo ago
Repository age
10 years
Version
v1.1.1
Licence
MIT
Self-hosted
Yes

About gpustat

gpustat is a small Python utility for monitoring NVIDIA GPU status and usage, described on PyPI as a lighter alternative to nvidia-smi. Install it with pip, or with the user flag when you lack root privileges. The latest version can also be installed from the master branch on GitHub.

It reads data through NVIDIA's official Python bindings for the NVML library, so it needs nvidia-ml-py 11.450.129 or newer, which matches NVIDIA driver R450.00 or higher. Version 1.1 needs Python 3.6 or later, while the older 0.x line supports Python 2.7.

Options let you show process owners, commands, PIDs, fan speed, encoder and decoder use and power draw, or display all of them. You can target specific GPUs by index, refresh periodically in watch mode, print JSON, and generate shell completion scripts for bash, zsh and tcsh.

Key features

  • Choose which GPU properties to display
  • Watch mode that refreshes at an interval
  • JSON output for scripting
  • Query only specific GPUs by index
  • Show power usage and limits

Good fit for

  • Checking GPU memory and utilisation
  • Seeing which user runs which GPU process
  • Scripting GPU stats through JSON
Built with
Python tools
Tags
gpu
nvidia
monitoring
python
cli
nvml

gpustat: questions and answers

What is gpustat used for?
gpustat is a Python command-line utility that shows the status and usage of NVIDIA GPUs in a compact form. It is a good fit for checking GPU memory and utilisation, seeing which user runs which GPU process, and scripting GPU stats through JSON.
Is gpustat open source?
Yes. gpustat is open source under the MIT licence. Its source code is on GitHub at wookayin/gpustat and is written mainly in Python.
Is gpustat free?
Yes. gpustat is open source, so the software itself is free to use.
What are some alternatives to gpustat?
Similar open-source tools in the Monitoring & Observability category include Nvitop, Glances and Flower. SaaS products in the same category include AppSignal, Amazon CloudWatch and AppDynamics.
Is gpustat actively maintained?
Yes. The most recent commit to gpustat was on 8 October 2026, and the latest release is v1.1.1, published on 22 August 2023. The project has 4.4k stars on GitHub.

Open-source alternatives to gpustat

See all

SaaS alternatives to gpustat

See all