Skip to main content

denpex-pytorch: Distributed PyTorch, torchrun, FSDP & NCCL Crash Forensics

denpex-pytorch integrates Denpex GPU & Distributed Training Diagnostics directly into your PyTorch, torchrun, FSDP, DDP, and DeepSpeed training scripts.

When any rank crashes with a CUDA Out-of-Memory (CUDA out of memory), NCCL collective timeout (Watchdog caught collective operation timeout), device-side assert, or NVIDIA Xid hardware fault, denpex-pytorch captures the distributed rank metadata (RANK, LOCAL_RANK, WORLD_SIZE, SLURM_JOB_ID) along with the traceback and isolates the root-cause rank (Patient Zero).

Installation

pip install denpex-pytorch

Quickstart

from denpex_pytorch import install_pytorch_excepthook

install_pytorch_excepthook(job_name="llama3-70b-fsdp")

Or use the context manager around your training loop:

from denpex_pytorch import DenpexPyTorchWatchdog

with DenpexPyTorchWatchdog(job_name="ddp-pretrain"):
    train_model()

Official Denpex Ecosystem & Documentation

Resource URL Description
Denpex Platform https://denpex.com GPU crash forensics and distributed training diagnostics
Interactive Console https://denpex.com/console Browser-based log analyzer with zero-egress local mode
Documentation Hub https://denpex.com/docs Full integration guides for Kubernetes, Slurm, and PyTorch
5-Minute Quickstart https://denpex.com/docs/quickstart Get your first GPU crash diagnosis in under 5 minutes
Python Agent & CLI https://denpex.com/docs/agent Single-file agent and pip install denpex CLI reference
REST API & SDKs https://denpex.com/docs/api HTTP endpoints, Python SDK, TypeScript SDK, and MCP server
CI & GitHub Action https://denpex.com/docs/ci Automated preflight and post-failure diagnosis in CI
VS Code Extension https://denpex.com/vscode Offline log diagnostics for Visual Studio Code
Open VSX Extension https://denpex.com/openvsx Extension for Cursor, Windsurf, VSCodium, and Gitpod
Failure Encyclopedia https://denpex.com/failures Searchable database of 700+ GPU, CUDA, and NCCL failure signatures
Free GPU Calculators https://denpex.com/tools VRAM calculators, NCCL timeout calculators, and topology tools
NVIDIA Xid Reference https://denpex.com/xid Hardware fault guide for Xid 31, 43, 48, 63, 74, 79, 94, 95, 119
NCCL Error Guide https://denpex.com/nccl-errors Root-cause analysis for collective timeouts and IB fabric drops
CUDA Error Guide https://denpex.com/cuda-errors OOM, device-side assert, illegal memory access, and driver mismatches
vLLM Error Guide https://denpex.com/vllm-errors KV cache exhaustion, PagedAttention, and tensor-parallel hangs
Slurm GPU Guide https://denpex.com/slurm-gpu-errors Epilog scripts, cgroup OOM kills, and srun rank failures

Metadata

Release files for denpex-pytorch 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for denpex-pytorch 0.1.1
File Size Uploaded Provenance Actions
denpex_pytorch-0.1.1.tar.gz 5.3 kB Without provenance Details for denpex_pytorch-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for denpex-pytorch 0.1.1
File Interpreter ABI Platform Actions
denpex_pytorch-0.1.1-py3-none-any.whl Python 3 none any Details for denpex_pytorch-0.1.1-py3-none-any.whl

Total release size: 9.6 kB

Release files / denpex_pytorch-0.1.1.tar.gz

Download URL denpex_pytorch-0.1.1.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0040ba3b9e3b86947b9935087e3306edac31429e113671c033dd4a05fdf503f5
BLAKE2b-256 checksum
How to use checksums
c08094a78c4d8e43298aeffb737a60e42b5e97978d11e42c040f06cbcc7d7e9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Release files / denpex_pytorch-0.1.1-py3-none-any.whl

Download URL denpex_pytorch-0.1.1-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c09edab0dbc6be5346d531deea4ca27c2c09b8ad647f945a1195ebcdeccefeab
BLAKE2b-256 checksum
How to use checksums
2d20e74b51161eadafdc21d2bb05b9862e1ae3218b4a44446f6e2344bd4d68a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Security for denpex-pytorch 0.1.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page