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

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.0
File Size Uploaded Provenance Actions
denpex_mlflow-0.1.0.tar.gz 12.1 kB Without provenance Details for denpex_mlflow-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 22.3 kB

Release files / denpex_mlflow-0.1.0.tar.gz

Download URL denpex_mlflow-0.1.0.tar.gz
Size 12.1 kB
Tags Source
SHA-256 checksum
How to use checksums
37d987b265c95f865e59d7ba5ea43a142727012b15be7ddd3e68cd9f75d3773f
BLAKE2b-256 checksum
How to use checksums
67be8adcd01de21522810ad8d3de39e640507808664b3a18a1477b086595e835
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.0-py3-none-any.whl

Download URL denpex_mlflow-0.1.0-py3-none-any.whl
Size 10.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9c275240f6bea2efc533c71af091874f4492c0d0f0018b403c32cb3d7bf3520b
BLAKE2b-256 checksum
How to use checksums
5fcb13a8122a13ed2c2f9a5ffc18a474fef5266535a139fb8109470d011ac796
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.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.

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