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

Conversation

QianqianNie
Copy link
Member

No description provided.

Copy link

github-actions bot commented Feb 25, 2025

Test Results for assets-test

1 tests   0 ✅  5m 27s ⏱️
1 suites  0 💤
1 files    1 ❌

For more details on these failures, see this check.

Results for commit 98782ba.

♻️ This comment has been updated with latest results.

@@ -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.

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.

2 participants