ProfileInsight
Find why your GPU job is slow from its profile.
ProfileInsight reads a PyTorch profiler trace (Chrome trace JSON, optionally gzip-compressed) and reports what a person would see first when reading it. It is in an early stage.
Install
pip install profileinsight
Use
profileinsight trace_rank0.json.gz
profileinsight trace_rank0.json.gz trace_rank1.json.gz trace_rank2.json.gz trace_rank3.json.gz
prints the analysis report of the profile (the first one, when several are given). It opens with a verdict: the few findings that matter most, one line each with its evidence and, for a sign of misconfiguration, the setting to check. The parts follow:
- the cycles of the GPU timeline, such as
Timeline structure: A B^8 Cfor a setup part, eight repetitions and a tail, with the time of every repetition and how the repetitions differ from each other (src/profileinsight/cycles.py); - the bubbles, the times when no compute kernel runs, with their reasons (communication, copies, a host
synchronization, a slow host, ...) taken from what the GPU actually waited for, summed per repetition, and an
example timeline for each listed group: for a copy or communication the awaited operation's size, rate, launch
time and the queue ahead of it, for a sync how long the host was blocked (
src/profileinsight/bubbles.py); - where the busy time goes, by family of operations, with the call site, launch facts and flags for small,
underfilled or pageable work (
src/profileinsight/busy.py); - given the profiles of several ranks of one job: which rank the others wait for at the collectives, how long, and
the extra work that rank did before them (
src/profileinsight/ranks.py). A single rank's profile cannot tell slow communication from a late peer; - signs of common misconfigurations, recognised from the trace alone: attention on the math fallback, autograd anomaly
detection, driver allocations every step (caching allocator off or emptied), collectives on a slow transport, and
hooks on modules (
src/profileinsight/signs.py).
The rules behind each part are described at the top of its file.
Release
Pushing a tag v<version> that matches version in pyproject.toml builds the package and publishes it to PyPI through trusted publishing (.github/workflows/build.yml).
Metadata
Release files for profileinsight 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| profileinsight-0.0.5.tar.gz | 33.5 kB | With provenance | Details for profileinsight-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| profileinsight-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for profileinsight-0.0.5-py3-none-any.whl |
Total release size: 71.2 kB
Release files / profileinsight-0.0.5.tar.gz
| Download URL | profileinsight-0.0.5.tar.gz |
|---|---|
| Size | 33.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2d0734ea3bace03db935f15a8cbe4db88ff36e3e1efcc3b5d6579f9712d7ce27
|
|
BLAKE2b-256 checksum How to use checksums |
7aaf274faac2b74760bd4d2cfad2008d49c34ad8d8bf4ece4d4dbdf31267d748
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logRelease files / profileinsight-0.0.5-py3-none-any.whl
| Download URL | profileinsight-0.0.5-py3-none-any.whl |
|---|---|
| Size | 37.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dc9639943fc76ff5479230e57d5158d52527b4ed559d218ffedc100e30d54a6b
|
|
BLAKE2b-256 checksum How to use checksums |
c5977e2092f6763a8a7287d71ee2a1257a5f67b3e7699df8c0d7455c744e0979
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logSecurity for profileinsight 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for profileinsight-0.0.5.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.