Skip to main content

denpex-sdk

Zero-third-party Python helpers for SDC detection (per-layer weight/gradient norms, NaN/Inf checks, optimizer state validation) and asynchronous checkpoint validation (manifest integrity + content checksums) for S3/Lustre.

Cloud diagnosis client

from denpex_sdk import DenpexClient

client = DenpexClient(api_key="dpx_...")
result = client.diagnose(
    open("training.log").read(),
    jobName="llama3-405b-pretrain",
    telemetry={"jobId": "slurm-1842"},
)
print(result["meta"]["failureType"], result["meta"].get("confidence"))
print(result["fix"]["summary"])
print(result["fix"]["action"])
client.feedback(result["diagnosisId"], "worked")

The client reads DENPEX_API_KEY when api_key is omitted and calls the live /api/diagnose contract. Its default 320-second timeout covers the API's 290-second deep-diagnosis window. Optional arguments such as telemetry, codeContext, topologyMap, runtimeHours, and gpuRate pass through.

SDC detection

from denpex_sdk import SdcHook, install_sdc_hooks

hook = install_sdc_hooks(model, SdcHook(max_weight_norm=1e4, max_grad_norm=1e4))
weight_report = hook.inspect()
grad_report = hook.inspect_gradients()
opt_report = hook.inspect_optimizer(optimizer)

Checkpoint validation

from denpex_sdk import build_manifest, manifest_to_json, manifest_from_json, validate_checkpoint

manifest = build_manifest(["/checkpoints/step-1000/"], metadata={"job_id": "..."})
with open("/checkpoints/step-1000/manifest.json", "w") as handle:
    handle.write(manifest_to_json(manifest))

with open("/checkpoints/step-1000/manifest.json") as handle:
    expected = manifest_from_json(handle.read())

result = validate_checkpoint(["/checkpoints/step-1000/"], expected_manifest=expected)
assert result.valid

Official Denpex Ecosystem & Documentation

Resource Description Link
Denpex Platform Deterministic GPU and ML training failure diagnostics denpex.com
Documentation Hub Quickstart guides, architecture, and operational reference denpex.com/docs
Python Agent & CLI On-host monitoring, evidence capture, and zero-egress CLI denpex.com/docs/agent
REST API Reference Programmatic /api/diagnose and preflight endpoints denpex.com/docs/api
VS Code Extension Offline GPU crash diagnostics in VS Code denpex.com/vscode
Open VSX Extension Extension for Cursor, Windsurf, VSCodium, and Gitpod denpex.com/openvsx
Failure Encyclopedia 500+ documented CUDA, NCCL, Xid, Slurm, and vLLM failures denpex.com/failures
Free GPU Tools VRAM, NCCL, DeepSpeed ZeRO, and Slurm calculators denpex.com/tools
NVIDIA Xid Reference Hardware vs software Xid fault routing table denpex.com/xid
Release Changelog Platform, agent, SDK, and extension release notes denpex.com/changelog

Metadata

Release files for denpex-sdk 0.2.4

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-sdk 0.2.4
File Size Uploaded Provenance Actions
denpex_sdk-0.2.4.tar.gz 36.9 kB Without provenance Details for denpex_sdk-0.2.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for denpex-sdk 0.2.4
File Interpreter ABI Platform Actions
denpex_sdk-0.2.4-py3-none-any.whl Python 3 none any Details for denpex_sdk-0.2.4-py3-none-any.whl

Total release size: 62.1 kB

Release files / denpex_sdk-0.2.4.tar.gz

Download URL denpex_sdk-0.2.4.tar.gz
Size 36.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e844b667d88b854aa7f747503e58aaebb1bcf8985988795c00dbffaf46be80a7
BLAKE2b-256 checksum
How to use checksums
8a17ece9924837f034f7afb5a6b30854ec34acd4174b2c3a9702a10834466cb0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Release files / denpex_sdk-0.2.4-py3-none-any.whl

Download URL denpex_sdk-0.2.4-py3-none-any.whl
Size 25.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
09a9d349977b5ffc2792155416309dc5f067da9af01a97d23bfd53032d0319ea
BLAKE2b-256 checksum
How to use checksums
5eb35242831618635492be1f4f5c93036d7599553bde46b4e476690a14c7b85c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Security for denpex-sdk 0.2.4

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.

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