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

Refactor MLflow register_model #1545

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Refactor MLflow register_model #1545

wants to merge 4 commits into from

Conversation

nancyhung
Copy link
Contributor

Previously, we were using some hacky logic in Composer to add retry logic to MLflow model registration. Now that MLflow has baked this into their register_model API, we can call that instead.

…cleans up the code a little and prevents us from having forked logic in Composer to fetch by run_id
…cleans up the code a little and prevents us from having forked logic in Composer to fetch by run_id
@nancyhung nancyhung requested a review from a team as a code owner September 24, 2024 01:03
@@ -128,7 +128,7 @@ def _register_model_with_run_id_multiprocess(
logging.getLogger('composer').setLevel(composer_logging_level)

# Register model.
mlflow_logger.register_model_with_run_id(
mlflow_logger.register_model(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we call this API because otherwise the run id doesn't get properly attached to the registered model, not because of retries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants