Skip to content

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

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

simon-mo merged 2 commits into
ray-project:masterfrom
dmatrix:br_jsd_add_mlflow_serve_example

Conversation

@dmatrix

@dmatrix dmatrix commented Feb 7, 2022

Copy link
Copy Markdown
Contributor

Signed-off-by: Jules S.Damji [email protected]

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.

@architkulkarni architkulkarni left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread doc/source/serve/ml-models.rst Resolved
Comment thread doc/source/serve/ml-models.rst Resolved
@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