gpustat prints compact GPU utilization, memory, temperature, and process info from the terminal, with optional watch and JSON modes.
Overview
gpustat is a command-line utility for checking accelerator status at a glance. It is positioned as a concise alternative to nvidia-smi-style output while supporting several hardware backends through a shared adapter layer.
NVIDIA GPUs are queried through the official NVML Python bindings. The tool can also target AMD GPUs via ROCm SMI, Huawei Ascend NPUs through npu-smi, and Apple Silicon GPUs on macOS using system interfaces, with backend selection manual or automatic.
Default output shows each device index, model name, temperature, utilization percentage, memory used versus total, and running processes with optional owner, command, PID, fan, codec, and power fields. Flags enable colored output, filtering to specific GPU IDs, hiding process details, periodic refresh, JSON serialization, and shell completion scripts.
The same package exposes a Python API so other programs can query devices programmatically. A separate web front-end project is mentioned as an alpha companion but is not part of this CLI package itself.
Key features
- Multi-backend GPU detection
- Process and memory details
- Watch mode with intervals
- JSON machine-readable output
- Apple Silicon experimental support
- Python library API
Use cases
- Checking GPU load on shared servers
- Spotting processes using VRAM
- Scripted accelerator monitoring