Skip to content

Added a hands-on self-containted MLflow/Ray Serve deployment example#22192

Merged
simon-mo merged 2 commits intoray-project:masterfrom
dmatrix:br_jsd_add_mlflow_serve_example
Feb 8, 2022
Merged

Added a hands-on self-containted MLflow/Ray Serve deployment example#22192
simon-mo merged 2 commits intoray-project:masterfrom
dmatrix:br_jsd_add_mlflow_serve_example

Conversation

@dmatrix
Copy link
Copy Markdown
Contributor

@dmatrix dmatrix commented Feb 7, 2022

Signed-off-by: Jules S.Damji jules@anyscale.com

Why are these changes needed?

To augment examples in Ray Serve's Integration with Model Registries section,
I added a hands-on self-contained example of how to use mlflow.sklearn.autolog(), which logs
all the metrics, parameters, and artifacts to the local model registry; and a deployment class that
loads the registered model as a pyfunc model and does the prediction.

This complete example augments the previous partial code snippet.

Checks

  • [x ] I've run scripts/format.sh to lint the changes in this PR.

Signed-off-by: Jules S.Damji <jules@anyscale.com>
Copy link
Copy Markdown
Contributor

@architkulkarni architkulkarni left a comment

Choose a reason for hiding this comment

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

Looks great, thanks for adding this! I'll make a followup issue to run this code sample in CI using Sphinx's literalinclude. I'll need to figure out where to install mlflow in the CI setup but it should be straightforward.

Signed-off-by: Jules S.Damji <jules@anyscale.com>
@simon-mo simon-mo merged commit 6b7d995 into ray-project:master Feb 8, 2022
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.

3 participants