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.0
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 |
|---|---|---|---|---|
| denpex_pytorch-0.1.0.tar.gz | 4.3 kB | Without provenance | Details for denpex_pytorch-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| denpex_pytorch-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for denpex_pytorch-0.1.0-py3-none-any.whl |
Total release size: 8.4 kB
Release files / denpex_pytorch-0.1.0.tar.gz
| Download URL | denpex_pytorch-0.1.0.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6c7de9f838e0b81c1e4e6a96899650a426421df43e7902da4c83534bca51db25
|
|
BLAKE2b-256 checksum How to use checksums |
e25848431ed3ba662f69ee6ad61b372d28955bce6c6b01764f64490be50537b0
|
| 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.0-py3-none-any.whl
| Download URL | denpex_pytorch-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6682327490009c0bab1cffb07ff61e83dd07cd094b816a9c44360d33d29fd011
|
|
BLAKE2b-256 checksum How to use checksums |
2c4017e181c83797f5f7681f58dd70a18df966b10d2b12f3d2529f030bc00fff
|
| 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.0
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.