Skip to content

xpustat 0.1.0

Choose a tag to compare

@Bekhouche Bekhouche released this 14 Jun 15:10
· 16 commits to main since this release

First release of xpustat — a unified accelerator stat tool in the spirit of gpustat, supporting every major AI accelerator vendor from a single command.

Supported hardware

Vendor Device Status
NVIDIA L4 (cc8.9), TITAN V (cc7.0) ✅ Tested
AMD Radeon RX 7900 XTX (gfx1100) ✅ Tested
Huawei Ascend 910B2 ✅ Tested
Intel Gaudi / Gaudi 2 / Gaudi 3 🔲 Implemented
Intel Arc / Data Center GPU 🔲 Implemented
Hygon DCU 🔲 Implemented
Cambricon MLU 🔲 Implemented
Moore Threads MTT GPU 🔲 Implemented

Install

pip install xpustat
# or
conda install -c conda-forge xpustat
CLI

xpustat          # snapshot of all detected devices
xpustat -a       # add util, temp, power, arch, processes
xpustat -i 1     # watch mode, refresh every second
xpustat --json   # raw JSON output
Python API

import xpustat
stats = xpustat.query_all()
print(stats.amd[0].mem_used_mb)