Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support passing artifact_uri in config #557

Open
Calychas opened this issue May 28, 2024 · 1 comment
Open

Support passing artifact_uri in config #557

Calychas opened this issue May 28, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Calychas
Copy link
Contributor

Calychas commented May 28, 2024

Description

Allow passing in artifact_uri to enable automatic creation of experiments with it and not defaulting to the one provided by the MLFlow Server.

Context

If the MLFlow Server has artifact_uri configured, but e.g.:

  • points to the "wrong" bucket (misconfigured or we don't have permissions);
  • the convention of saving artifacts in the bucket is gs://<bucket_name>/<experiment_name>/artifacts - subfolders per experiment;
  • or you just want to save it somewhere else,

then it is impossible to have the experiment created automatically with the custom artifact_uri.

Slack thread

Possible Implementation

Currently there are 2 things missing in kedro-mlflow that need to happen:

  • enable passing mlflow_artifact_uri in mlflow.yaml (next tomlflow_registry_uri and mlflow_tracking_uri)
  • kedro-mlflow now uses mlflow.set_experiment (here) function that handles experiment creation, but unfortunately it doesn't support specifying artifact_uri. The switch to mlflow.create_experiment would need to happen to enable it.

Possible Alternatives

Don't implement it at all and perform the experiment creation manually with custom artifact_uri either:

  • through the UI:
    image
  • or through the API. This approach may be possible to automate by creating a hook that runs and creates the experiment before the kedro-mlflow hook. It would also need to read the mlflow.yml
@Galileo-Galilei Galileo-Galilei added the enhancement New feature or request label Aug 21, 2024
@lvijnck
Copy link

lvijnck commented Aug 28, 2024

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 🔖 Ready
Development

No branches or pull requests

3 participants