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

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.3
File Size Uploaded Provenance Actions
denpex_sdk-0.2.3.tar.gz 34.5 kB Without provenance Details for denpex_sdk-0.2.3.tar.gz

Built distribution (wheel)

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

Total release size: 57.7 kB

Release files / denpex_sdk-0.2.3.tar.gz

Download URL denpex_sdk-0.2.3.tar.gz
Size 34.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f4b47ad893d7f67a2f0abc9d2f7ffc3ad7c799c22496676003191a5798912404
BLAKE2b-256 checksum
How to use checksums
39b2af55f75b86a36cec50d66ee8434220057da618e855d12acc53f013f87e2c
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.3-py3-none-any.whl

Download URL denpex_sdk-0.2.3-py3-none-any.whl
Size 23.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
11fae21f94c88634faa522a2b46b7e17f5f59f4844f8a05aa82d7e3207bd7664
BLAKE2b-256 checksum
How to use checksums
0e2c15061404e071720a84236d98223a332c00523d9028b696015d26702bc7ae
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.3

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