environments ai ml automl dnn vision gpu - Azure/azureml-assets GitHub Wiki
An environment used by Azure ML AutoML for training models.
Version: 11
OS : Ubuntu20.04
Training
Preview
OpenMpi : 4.1.0
Python : 3.9
View in Studio: https://ml.azure.com/registries/azureml/environments/ai-ml-automl-dnn-vision-gpu/version/11
Docker image: mcr.microsoft.com/azureml/curated/ai-ml-automl-dnn-vision-gpu:11
FROM mcr.microsoft.com/aifx/acpt/stable-ubuntu2004-cu121-py310-torch222:biweekly.202412.3
ENV AZUREML_CONDA_ENVIRONMENT_PATH /azureml-envs/azureml-automl-dnn-vision-gpu
# Prepend path to AzureML conda environment
ENV PATH $AZUREML_CONDA_ENVIRONMENT_PATH/bin:$PATH
COPY --from=mcr.microsoft.com/azureml/mlflow-ubuntu20.04-py38-cpu-inference:20230306.v3 /var/mlflow_resources/mlflow_score_script.py /var/mlflow_resources/mlflow_score_script.py
ENV MLFLOW_MODEL_FOLDER="mlflow-model"
# ENV AML_APP_ROOT="/var/mlflow_resources"
# ENV AZUREML_ENTRY_SCRIPT="mlflow_score_script.py"
# Inference requirements
COPY --from=mcr.microsoft.com/azureml/o16n-base/python-assets:20230419.v1 /artifacts /var/
RUN /var/requirements/install_system_requirements.sh && \
cp /var/configuration/rsyslog.conf /etc/rsyslog.conf && \
cp /var/configuration/nginx.conf /etc/nginx/sites-available/app && \
ln -sf /etc/nginx/sites-available/app /etc/nginx/sites-enabled/app && \
rm -f /etc/nginx/sites-enabled/default
ENV SVDIR=/var/runit
ENV WORKER_TIMEOUT=400
EXPOSE 5001 8883 8888
ENV ENABLE_METADATA=true
# Create conda environment
# begin conda create
RUN conda create -p $AZUREML_CONDA_ENVIRONMENT_PATH \
python=3.9 \
# begin conda dependencies
pip=21.3.1 \
numpy~=1.23.5 \
libffi=3.3 \
pycocotools=2.0.4 \
shap=0.39.0 \
llvmlite=0.39.1 \
scipy=1.10.1 \
setuptools=72.1.0 \
wheel=0.44.0 \
tbb=2021.1.1 \
# end conda dependencies
-c conda-forge -c cerebis && \
conda run -p $AZUREML_CONDA_ENVIRONMENT_PATH && \
conda clean -a -y
# end conda create
# begin pip install
# Install pip dependencies
RUN pip install \
# begin pypi dependencies
azureml-mlflow==1.59.0.post1 \
azureml-dataset-runtime==1.59.0 \
azureml-telemetry==1.59.0 \
azureml-responsibleai==1.59.0 \
azureml-automl-core==1.59.0 \
azureml-automl-runtime==1.59.0 \
azureml-train-automl-client==1.59.0 \
azureml-defaults==1.59.0 \
azureml-interpret==1.59.0 \
azureml-train-automl-runtime==1.59.0 \
azureml-automl-dnn-vision==1.59.0 \
'azureml-dataprep>=2.24.4' \
'azure-identity>=1.16.1'
# end pypi dependencies
# Update cryptography and pyarow for fixing vulnerability. Doing it separately from pip install to avoid conflict with other packages
RUN pip install cryptography>=42.0.5 \
pyarrow==14.0.2 \
aiohttp>=3.9.4
# end pip install
ENV LD_LIBRARY_PATH $AZUREML_CONDA_ENVIRONMENT_PATH/lib:$LD_LIBRARY_PATH