gputaskman: A GPU Task Manager for LLM and AI Workloads
GitHub Open Source
Monitor per-process GPU memory and LLM activity on Windows, Linux, and WSL with a single terminal command.
Repository snapshot
- Repository: shanselman/gputaskman
- Language: Python
- License: MIT
- Stars: 3 472
- Forks: 172
Daily open-source picks: GitHub Open Source on Telegram
What it is
gputaskman is a terminal-based utility designed to provide deep visibility into GPU resource utilization. Unlike standard system monitors that only report aggregate VRAM usage, it breaks down activity by process, identifying specific LLM models, KV-cache buffers, and compute tasks. It supports a wide range of hardware, including NVIDIA, AMD, Intel, and Huawei Ascend GPUs across Windows, Linux, and WSL environments.
Why it matters
When working with local AI models, the gap between 'reported usage' and 'actual allocation' is often massive. Standard tools often fail to distinguish between static model weights, dynamic KV-cache, and background system processes. This leads to frustrating OOM errors that are difficult to diagnose. gputaskman bridges this gap by providing a granular view of what is actually occupying your GPU memory, allowing developers to optimize their inference pipelines and training jobs with actual data rather than guesswork.
Key features
- Cross-Platform Telemetry: Unified monitoring for NVIDIA (NVML), AMD (ADL/SMI), Intel (WDDM), and Huawei Ascend (NPU-SMI) hardware.
- LLM Insight: Specifically designed to surface model weights and KV-cache usage, making it easier to see how much memory your current prompt context is consuming.
- Container Awareness: Automatically pairs containerized GPU processes with host-level metrics, solving the common issue where Docker hides process-specific GPU activity.
- Zero-Config Setup: Can be installed via
uvorpipx, or run as a portable binary on Windows and Linux without requiring complex driver toolkits. - Scriptable Output: Includes a
--jsonflag, enabling you to pipe GPU metrics into other monitoring or logging systems.
Quick start
The easiest way to get started is using uv to install the package directly into an isolated environment:
uv tool install gputaskman
gputaskmanIf you prefer not to install Python, you can download the portable Windows or Linux binaries directly from the project's GitHub releases page.
Who should try it
This tool is built for developers, researchers, and hobbyists running local LLMs, Stable Diffusion, or other GPU-intensive AI tasks. If you find yourself frequently checking nvidia-smi and still not understanding why your script failed, this is for you. It is less useful for pure graphics developers or those working exclusively with cloud-managed services where you lack the necessary driver-level access.
Verdict
gputaskman is a highly practical utility that solves a very specific pain point in the local AI development stack. It is transparent about its experimental nature and limitations, but the visibility it provides is unmatched by generic system monitors. It is a must-have for your local dev toolkit.
Continue exploring
Get the next pick in Telegram: Follow GitHub Open Source
Curated from the repository README and metadata. No hands-on test is claimed; evaluate it in a sandbox before production use.