APIs for interacting with artifacts in MLflow
download_artifacts(artifact_uri: Optional[str] = None, run_id: Optional[str] = None, artifact_path: Optional[str] = None, dst_path: Optional[str] = None) → str
Download an artifact file or directory to a local directory.
artifact_uri – URI pointing to the artifacts, such as
"s3://my_bucket/my/file.txt". Exactly one of
run_idmust be specified.
run_id – ID of the MLflow Run containing the artifacts. Exactly one of
artifact_urimust be specified.
artifact_path – (For use with
run_id) If specified, a path relative to the MLflow Run’s root directory containing the artifacts to download.
dst_path – Path of the local filesystem destination directory to which to download the specified artifacts. If the directory does not exist, it is created. If unspecified, the artifacts are downloaded to a new uniquely-named directory on the local filesystem, unless the artifacts already exist on the local filesystem, in which case their local path is returned directly.
The location of the artifact file or directory on the local filesystem.