npx skills add ...
npx skills add nvidia/skills --skill medtech-model-evidence-export
Exports sanitized metadata, parameters, reproducibility details, quality metrics, and optional review artifacts from Medical AI inference runs or evidence packs to MLflow. Use after inference, including NV-Generate runs; not for live training tracking, model registration, or clinical use.
npx skills add nvidia/skills --skill medtech-model-evidence-export
Mirror an existing medical-inference result or evidence pack into MLflow after
the run and emit the export_result JSON contract. Keep the original evidence
pack as the source of truth. Training skills should add MLflow inside their
training loops instead.
scripts/export_evidence_pack.py in the default dry-run mode.params, metrics, artifact_plan, and mlflow.note.content.--mode local or --mode databricks only after checking the target.--artifact-policy metadata unless the target is approved for images.preview or all in a live mode, also pass
--confirm-medical-artifact-upload.--source-ref, --note, config filenames, and artifact filenames free
of patient or secret identifiers; always review the dry-run output first.Hosts with a script helper can use
run_script("scripts/export_evidence_pack.py", args=["PACK_OR_RESULT", "--mode", "dry-run"]).
| Script | Purpose | Arguments |
|---|---|---|
scripts/export_evidence_pack.py | Export post-hoc inference evidence through MLflow. | PACK_OR_RESULT --mode dry-run --artifact-policy metadata |
mlflow>=2.10,<4 for local or databricks mode.numpy>=1.24,<3 and nibabel>=4,<6 for NIfTI quality metrics and previews.MLFLOW_TRACKING_URI may select a caller-managed tracking server.DATABRICKS_HOST, DATABRICKS_TOKEN, or
configured Databricks profile. The declared network endpoint is
https://<caller-provided-mlflow-or-databricks-workspace>; Docker and GPU
are not required.<current-working-directory>/mlruns.Preview the export without contacting MLflow:
Export a direct NV-Generate result with reproducibility metadata:
Log downsampled slice previews, but not raw NIfTI files:
--artifact-policy all additionally uploads discovered or explicitly supplied
NIfTI images and masks, subject to --max-artifact-mb. Use --image and
--mask when paths are not present in the result JSON.
The exporter logs:
--source-ref, plus a prompt digest when present;mlflow.note.content with a short human-readable run summary;all policy.| Error | Cause | Fix |
|---|---|---|
| Evidence source not recognized | No direct result JSON or pack manifest.json. | Pass the result file, evidence-pack directory, or trusted-run root. |
| MLflow import fails | Live mode lacks the declared package. | Install mlflow>=2.10,<4 or use --mode dry-run. |
| Preview/all confirmation error | A live image upload was not acknowledged. | Review the destination, then pass --confirm-medical-artifact-upload. |
| Referenced image not found | Result paths moved after inference. | Pass current paths with --image and --mask. |
python skills/medtech-model-evidence-export/scripts/export_evidence_pack.py \
runs/nv-generate/result.json \
--mode databricks \
--experiment-name /Shared/medical-ai-inference \
--artifact-policy preview \
--confirm-medical-artifact-upload