medium severitymlflow.pyfunc.load_model, mlflow.register_model, mlflow.create_experiment

OSError when loading registered model with models:/name/version: "No such file or directory: '/custom_artifact_location/run_id/artifacts/models/'". Model registers fine but fails to load; artifacts exist under /custom_location/run_id/model but not in expected artifacts/models path.

Root cause

Mismatch in artifact path expectations when using custom artifact_location in mlflow.create_experiment(). Model loads expect artifacts under a standard structure (likely relative to default tracking store), but custom locations cause MLflow to search incorrect paths like '/custom_location/run_id/artifacts/models/' where the model directory isn't found, even if registered successfully.

mlflowmodel-registryartifact_locationOSErrorload_modelcreate_experiment

Citations