QuestionQ66

VerifiedModel Deployment

A retailer’s data science team has built a custom MLflow pyfunc model that uses private Python dependencies. They want to deploy and serve the model for real-time inference through Databricks Model Serving, but deployment is failing with dependency errors.

What is the correct way to resolve this issue?

Explanation

MLflow pyfunc models should be logged with their required Python packages. Use pip_requirements to define the model’s complete pip environment, or extra_pip_requirements to add private dependencies to MLflow’s inferred requirements. MLflow stores these requirements with the model so the serving environment can install them. Managing Dependencies in MLflow Models

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!