Skip to main content

denpex-mlflow

Attach Denpex GPU and training-failure diagnoses to your MLflow runs in one line.

When a run crashes, Denpex reads the traceback (and optionally your log file), diagnoses the root cause (NCCL, Xid, CUDA, OOM, checkpoint, etc.), and writes the root cause + fix back onto the active MLflow run as tags and a denpex_diagnosis.md artifact, then re-raises your original exception so nothing is hidden.

Install

pip install denpex-mlflow

Use

import mlflow
import denpex_mlflow as denpex

with mlflow.start_run():
    with denpex.watch(job_name="llama-7b-sft"):
        train()          # if this raises, Denpex diagnoses it and tags the run

Decorator form:

@denpex.watch_run("llama-7b-sft")
def main():
    train()

One-shot (no MLflow needed):

diag = denpex.diagnose(open("train.err").read())
print(diag.failure_type, diag.confidence, diag.action)

Auth

Set an API key (create one at denpex.com/dashboard under API keys):

export DENPEX_API_KEY=dpx_...
# optional, for self-hosted / staging:
export DENPEX_API_URL=https://api.denpex.com

What gets written to the run

MLflow tag Value
denpex.failure_type e.g. NCCL_TIMEOUT, CUDA_OOM, GPU_XID_ECC
denpex.confidence 0 to 100
denpex.fix_summary the root cause (truncated)
denpex.diagnosis_id link back to denpex.com/dashboard
artifact denpex_diagnosis.md full root cause + fix

Notes

  • Best-effort & non-masking: if Denpex is unreachable, unauthenticated, or over the free-plan quota, it logs one line to stderr and still re-raises your real error.
  • KeyboardInterrupt / SystemExit are passed through undiagnosed.
  • The diagnosis runs through the same /api/diagnose endpoint as the rest of Denpex, so it also lands in your dashboard history and fires your configured alert channels.
  • Pass logfile="train.err" to watch() to include the tail of a log file alongside the traceback.

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-mlflow 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-mlflow 0.1.1
File Size Uploaded Provenance Actions
denpex_mlflow-0.1.1.tar.gz 12.5 kB Without provenance Details for denpex_mlflow-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 22.9 kB

Release files / denpex_mlflow-0.1.1.tar.gz

Download URL denpex_mlflow-0.1.1.tar.gz
Size 12.5 kB
Tags Source
SHA-256 checksum
How to use checksums
9bb6823174c95b65d9dab3b8a44139d9a8c27320126d04652cf1e19fd8f77e1d
BLAKE2b-256 checksum
How to use checksums
9fccd1ef7339c68af4117dc7a0f0336f9dcc332064042e01bb70da316675cf92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

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

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

Security for denpex-mlflow 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.

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