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/SystemExitare passed through undiagnosed.- The diagnosis runs through the same
/api/diagnoseendpoint as the rest of Denpex, so it also lands in your dashboard history and fires your configured alert channels. - Pass
logfile="train.err"towatch()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.2
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_mlflow-0.1.2.tar.gz | 12.7 kB | Without provenance | Details for denpex_mlflow-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| denpex_mlflow-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for denpex_mlflow-0.1.2-py3-none-any.whl |
Total release size: 23.2 kB
Release files / denpex_mlflow-0.1.2.tar.gz
| Download URL | denpex_mlflow-0.1.2.tar.gz |
|---|---|
| Size | 12.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
386cf4ca7a2026e0e161a7b7fcaf434ee8f068fb1f14c43cb12872efcafbe9e8
|
|
BLAKE2b-256 checksum How to use checksums |
a26e71daa197adffceb2283dbaa7976b60120240b0b1ff2270d4a30d63b4df27
|
| 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.2-py3-none-any.whl
| Download URL | denpex_mlflow-0.1.2-py3-none-any.whl |
|---|---|
| Size | 10.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d885e92c38841e86fecf31915d0054fddce1777fadc48a8a1b137f7d3f2e13a9
|
|
BLAKE2b-256 checksum How to use checksums |
b6ec2464110858361efcce4a69baa76561cf2d1af2630aea8bb23c1558d6dadc
|
| 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.2
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.