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

Add default packages to mlflow environment #3863

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ COPY mlflow_hf_score_cpu.py /var/mlflow_resources/mlflow_hf_score_cpu.py
COPY mlflow_hf_score_gpu.py /var/mlflow_resources/mlflow_hf_score_gpu.py

# Create conda environment
# Add default packages
RUN conda config --add create_default_packages azureml-inference-server-http --add create_default_packages azureml-ai-monitoring --add create_default_packages azureml-contrib-services
Copy link
Contributor

Choose a reason for hiding this comment

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

This is so wrong...

  1. The intent of curated environment images is to use them as is. You should not expect anyone building on top of it. Customers do that, but that is their problem. For those scenarios we have base images. So, if you need those packages, pin them properly and move them to conda spec.
  2. Contrib-services is a joke no a package. Whatever you need to do you can ship with inference server. Contrib packages by design are not allowed in any prod scenarios. Saying that as the author of contrib packages concept in AzureML
  3. azureml-ai-monitoring besides the name of the package, there are many questions. Like where is the source. Why it is not maintainer. At all. you are installing it in py312 but classifiers say it only supports up to py310. This "Create environment with base image mcr.microsoft.com/azureml/openmpi4.1.0-ubuntu20.04 and conda dependencies, then build the environment.\n\n```\nchannels:\n - conda-forge\ndependencies:\n - python=3.8\n - pip=22.3.1\n - pip:\n - azureml-defaults==1.38.0\n - azureml-ai-monitoring\nname: model-env" in the description of the package says hard no to any reference to this package. from deprecated base image, eol interpreter version, pip that is vulnerable, to 3+ years old version of azureml-defaults that brings a ton outdated and incompatible packages.

contrib-services is a joke package. None of the prod scenarios should depend on contrib, by design.

COPY conda_dependencies.yaml .
RUN conda env create -p $AZUREML_CONDA_ENVIRONMENT_PATH -f conda_dependencies.yaml -q && \
rm conda_dependencies.yaml && \
Expand Down
Loading