r/MachineLearning • • 10h ago

Discussion Open-source GPU dashboard for training runs: true SM/Tensor Core usage, bottleneck diagnosis, "job finished" and "VRAM held idle" alerts [P]

GPU Pulse is an MIT-licensed GPU monitor built for watching training runs. It ships as two tools that share the same rules and history format: a VS Code extension (it runs on the GPU machine over Remote-SSH and WSL, so it monitors the server, not your laptop) and a terminal dashboard (`gpu-pulse`) for SSH and tmux.

Repo: https://github.com/Optimizer077/gpu-pulse

Why another GPU monitor? `nvidia-smi`'s "GPU utilization" is the share of time that at least one kernel was running. A small kernel keeping one SM busy reads 100% while most of the chip sits idle. Where the driver exposes NVML's GPM counters, GPU Pulse shows SM activity, SM occupancy, Tensor Core activity and DRAM bandwidth, and flags cases like "util 95% but SM 15%".

What it does

- Bottleneck diagnosis. It reads the last 3 minutes of samples and names the likely limit, with evidence and a suggested fix: input-bound (gaps between steps, so more DataLoader workers or pin_memory), CPU-bound (including a single pegged core), disk- or network-bound, memory-bandwidth-bound, power- or thermal-capped, low SM parallelism, or VRAM held by an idle process. There's also a 0–100 efficiency score for the last hour.

- Alerts: job finished (with duration and average utilization), VRAM held while the GPU idles for 15 min (the forgotten notebook kernel), running hot, VRAM nearly full. They work as VS Code notifications or headless via `gpu-pulse log --alerts`.

- Usage history: 5 min / 30 min / 1 h / 24 h averages, a per-minute 24-hour heatmap, auto-detected training sessions with energy used (Wh), and CSV export. A background logger records even when no dashboard is open.

- Multi-GPU: every GPU at once, plus cross-GPU checks for a likely straggler, uneven VRAM, one GPU throttling alone, or a card on a narrower PCIe link.

- Architecture card: compute capability, SM count, Tensor Core generation, memory bandwidth, FP32 TFLOPS, PCIe link.

Overhead (measured on one Windows machine, as a share of one CPU core): the VS Code extension uses ~0.2–0.6% at 500 ms sampling. The terminal dashboard uses ~5% on the animated Overview tab and ~0.5–1% on the others; `--fps 0` turns animation off.

Try it. The demo needs no GPU:

pip install "git+https://github.com/Optimizer077/gpu-pulse.git#subdirectory=pip"

gpu-pulse --demo # simulated training load

gpu-pulse --demo --demo-gpus 4 # multi-GPU view with a simulated straggler

gpu-pulse # your real GPU

gpu-pulse status # one-shot snapshot, handy over SSH

The VS Code extension is a `.vsix` on the Releases page (`code --install-extension gpu-pulse-0.3.0.vsix`). It isn't on PyPI or the VS Code Marketplace yet.

Platforms

- NVIDIA on Windows and Linux: full support. The true-usage panels need NVML GPM support (recent GPUs and drivers; tested on an RTX 50-series card). Older cards fall back to plain utilization, and the dashboard says which one it is using.

- AMD on Linux: utilization, VRAM, power and temperature via sysfs, best effort.

- Apple Silicon: GPU utilization and shared memory via `ioreg`, no sudo. Beta (v0.4.0-beta.1).

- No telemetry and no network calls. History stays on your machine.

Known limits: Windows (WDDM) doesn't report per-process VRAM. The diagnosis rules are heuristics, so treat a verdict as a starting point for profiling, not a replacement for Nsight or the PyTorch profiler.

Feedback is welcome, especially verdicts that are wrong on your workloads, and GPUs where the GPM counters do or don't show up.

3 Upvotes

0 comments sorted by