-
Notifications
You must be signed in to change notification settings - Fork 127
environments evaluation
github-actions[bot] edited this page Dec 17, 2024
·
5 revisions
Environment for evaluating models.
Version: 2
OS : Ubuntu22.04
Evaluation
View in Studio: https://ml.azure.com/registries/azureml/environments/evaluation/version/2
Docker image: mcr.microsoft.com/azureml/curated/evaluation:2
FROM mcr.microsoft.com/azureml/openmpi4.1.0-ubuntu22.04:20241215.v1
RUN apt-get update && apt-get -y upgrade
WORKDIR /
ENV CONDA_PREFIX=/azureml-envs/aoai-evaluation
ENV CONDA_DEFAULT_ENV=$CONDA_PREFIX
COPY conda.yaml .
# Create conda environment
RUN conda env create -p $CONDA_PREFIX -f conda.yaml -q && \
rm conda.yaml && \
conda run -p $CONDA_PREFIX pip cache purge && \
conda clean -a -y
# clean conda and pip caches
RUN rm -rf ~/.cache/pip
# Prepend path to AzureML conda environment
ENV PATH=$CONDA_PREFIX/bin:$PATH
# This is needed for mpi to locate libpython
ENV LD_LIBRARY_PATH $CONDA_PREFIX/lib:$LD_LIBRARY_PATH