A team registered a model in Unity Catalog and wants to serve it on a Databricks Model Serving endpoint. During deployment, the build fails because the model's conda environment references a private Python package hosted on an internal PyPI mirror that the serving build cannot reach. Which approach resolves the deployment?
Logging the private wheel alongside the model and referencing it with a relative pip path in the conda environment file lets the serving build resolve the dependency from the model artifacts themselves, avoiding external network access. This is the documented pattern for private libraries and keeps the environment reproducible and self-contained for deployment.
Why this answer
The robust fix is to make the model environment self-contained by logging the private wheel as part of the model artifacts and pointing the conda pip section at that relative path. The serving build then installs the dependency from artifacts it already has, with no need to reach an internal index. This preserves reproducibility and avoids exposing private infrastructure to the serving build.
Exam trap
The trap here is treating a dependency-resolution failure as a compute sizing or environment-variable problem instead of a package-availability problem.