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

Added export to MLflow pyfunc model format #1192

Merged
merged 39 commits into from
Jun 3, 2021
Merged

Added export to MLflow pyfunc model format #1192

merged 39 commits into from
Jun 3, 2021

Conversation

tgaddair
Copy link
Collaborator

@tgaddair tgaddair commented Jun 3, 2021

This PR adds a new mlflow.pyfunc model variant called LudwigMlflowModel that allows users to load Ludwig models and use them for prediction alongside other Mlflow model types. When using experiment tracking, the model directory will now be uploaded to the run as an Mlflow model at the end of each epoch, instead of simply a directory.

This PR also adds a new export_mlflow command to take an existing Ludwig model and convert it to Mlflow or (when model_name is provided) register it in the Mlflow model registry.

logger.info(
'\nFinished: {0}_{1}'.format(experiment_name, model_name))
logger.info('Saved to: {0}'.format(output_directory))
finally:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Note: this whole block of changes is just adding a try ... finally to ensure on_train_end is also called in the event of an exception.

@tgaddair tgaddair changed the title Added export to Mlflow pyfunc model format Added export to MLflow pyfunc model format Jun 3, 2021
@tgaddair tgaddair requested a review from w4nderlust June 3, 2021 15:14
@w4nderlust w4nderlust merged commit 0573b3a into master Jun 3, 2021
@tgaddair tgaddair deleted the mlflow-model branch June 3, 2021 17:21
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.

None yet

2 participants