wookayin/gpustat

📊 A simple command-line utility for querying and monitoring GPU status

What it solves

gpustat provides a clean, readable, and informative summary of GPU status and usage. It is designed to be a more user-friendly alternative to standard command-line tools like nvidia-smi, offering a concise view of GPU temperature, utilization, memory usage, and the processes currently running on your hardware.

How it works

It acts as a wrapper that queries various hardware-specific drivers to gather performance data. It automatically detects your GPU backend—supporting NVIDIA (via NVML), AMD (via ROCm), Huawei Ascend (via npu-smi), and Apple Silicon (via ioreg). You can run it directly from the command line for a quick snapshot, use it in "watch" mode to monitor changes in real-time, or integrate it into your own Python scripts using its provided API.

Who it’s for

It is for developers, researchers, and system administrators who work with GPU-accelerated workloads and need a quick, reliable way to check resource availability and identify which processes are consuming GPU memory or compute power.

Highlights

  • Supports multiple hardware platforms including NVIDIA, AMD, Huawei Ascend, and Apple Silicon.
  • Offers flexible output options, including color-coded text, JSON format for programmatic use, and detailed process information (PID, user, command).
  • Includes a "watch" mode for continuous, real-time monitoring of GPU status.
  • Provides a simple Python library interface to query GPU stats directly within your own applications.
  • Lightweight and easy to install via pip.

Related

  • Project
  • Project
  • Project
  • Project
  • Project