torch-tb-profiler
PyTorch Profiler TensorBoard Plugin
What it is and what it does
torch-tb-profiler is a TensorBoard plugin that integrates Libkineto, PyTorch's profiling library, to visualize and analyze ML workload performance. It focuses on low-overhead GPU timeline tracing and provides actionable recommendations for common performance bottlenecks in deep learning models. The plugin runs as an in-process profiler within PyTorch and surfaces results directly in TensorBoard's interface.
The package depends on pandas for data handling and tensorboard for visualization. It's designed for developers and researchers who need to diagnose performance issues in PyTorch models, particularly GPU-related bottlenecks. Installation is straightforward with no compiled dependencies beyond what PyTorch itself requires.
Use it for:
- Visualize GPU kernel execution timelines and identify which operations consume the most compute time.
- Profile data loading, model forward/backward passes, and synchronization overhead in training loops.
- Analyze memory usage patterns and detect GPU memory bottlenecks during model execution.
- Compare profiling results across different hardware or model configurations using TensorBoard's interface.
- Generate performance recommendations for common ML training issues like GPU underutilization.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Integrates PyTorch profiling data with TensorBoard, providing GPU timeline tracing and performance diagnostics for ML workloads through a TensorBoard plugin interface.
Yes, if you actively profile PyTorch models and use TensorBoard. The low install friction, permissive license, and active maintenance make it a straightforward addition to a profiling workflow. However, the last release was in October 2023; verify compatibility with your current PyTorch version before relying on it for new projects.
Install
torch-tb-profiler on PyPI
pip
pip install torch-tb-profileruv
uv add torch-tb-profilerpoetry
poetry add torch-tb-profilerInstalling torch-tb-profiler
Before you install
Low friction installation with only two runtime dependencies (pandas and tensorboard). The project maintains active status with recent commits and follows PyTorch's release schedule on a 3-month cadence.
License in practice
BSD-3 permissive license allows commercial and private use with minimal restrictions; you must retain the license notice in distributions.
Quickstart
pip install torch-tb-profiler
import torch_tb_profiler
from torch.profiler import profile, record_function
with profile(activities=[...], on_trace_ready=torch_tb_profiler.trace_handler):
# profile your model
Requires PyTorch and TensorBoard installed; GPU profiling requires CUDA-capable hardware and appropriate drivers.
Verify before relying
- Whether the package works with current PyTorch versions (last release was 2023-10-06, over 2 years old).
- Specific GPU architectures and CUDA versions supported by Libkineto.
- Whether low-overhead GPU tracing is maintained across different hardware configurations.
Package facts
| License | BSD-3 (permissive) |
| Python support | supports the current Python release (>=3.6.2) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — pandas, tensorboard |
| Maintenance | actively maintained — 1,043 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 376,115/month — #7,131 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: torch_tb_profiler-0.4.3-py3-none-any.whl
Keywords: pytorch, tensorboard, profile, plugin
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
HolisticTraceAnalysisAnalyzes PyTorch Profiler traces to identify…
permissive · top 15,000 on PyPI
scaleneScalene profiles Python code to measure CPU,…
permissive · top 15,000 on PyPI
tensorboard-plugin-profileProvides a TensorBoard plugin and standalone…
permissive · top 5,000 on PyPI
tensorboard-plugin-witAdds the What-If Tool, an interactive visual…
permissive · top 5,000 on PyPI
cloud-accelerator-diagnosticsMonitors, debugs, and profiles workloads…
unclear · top 15,000 on PyPI
torchprofileCounts multiply-accumulate operations (MACs) in…
permissive · top 15,000 on PyPI
xprofXProf is a profiler for ML workloads that…
permissive · top 15,000 on PyPI
nvidia-nvtxProvides a Python API for annotating events and…
unclear · top 1,000 on PyPI
google-cloud-mldiagnosticsCollects metrics, configs, and performance…
permissive · top 15,000 on PyPI
nvtxnvtx annotates Python code regions with named…
unclear · top 5,000 on PyPI