2019-11-25 10:02:23 +03:00
|
|
|
# Copyright (c) Microsoft Corporation.
|
|
|
|
# Licensed under the MIT license.
|
2018-10-26 11:55:27 +03:00
|
|
|
|
2021-06-03 09:48:56 +03:00
|
|
|
FROM nvidia/cuda:10.2-cudnn8-runtime-ubuntu18.04
|
2018-09-14 10:00:51 +03:00
|
|
|
|
2020-12-05 10:54:12 +03:00
|
|
|
ARG NNI_RELEASE
|
|
|
|
|
2018-09-14 10:00:51 +03:00
|
|
|
LABEL maintainer='Microsoft NNI Team<nni@microsoft.com>'
|
|
|
|
|
2020-08-12 15:32:17 +03:00
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
2020-12-05 10:54:12 +03:00
|
|
|
RUN apt-get -y update
|
|
|
|
RUN apt-get -y install \
|
|
|
|
sudo \
|
2018-10-26 11:55:27 +03:00
|
|
|
apt-utils \
|
|
|
|
git \
|
|
|
|
curl \
|
|
|
|
vim \
|
|
|
|
unzip \
|
|
|
|
wget \
|
2019-06-19 09:20:38 +03:00
|
|
|
build-essential \
|
2018-10-26 11:55:27 +03:00
|
|
|
cmake \
|
|
|
|
libopenblas-dev \
|
|
|
|
automake \
|
|
|
|
openssh-client \
|
|
|
|
openssh-server \
|
|
|
|
lsof \
|
2020-08-12 15:32:17 +03:00
|
|
|
python3.6 \
|
2018-10-26 11:55:27 +03:00
|
|
|
python3-dev \
|
|
|
|
python3-pip \
|
|
|
|
python3-tk \
|
2020-12-05 10:54:12 +03:00
|
|
|
libcupti-dev
|
|
|
|
RUN apt-get clean
|
|
|
|
RUN rm -rf /var/lib/apt/lists/*
|
2018-10-26 11:55:27 +03:00
|
|
|
|
2020-07-06 16:48:09 +03:00
|
|
|
#
|
|
|
|
# generate python script
|
|
|
|
#
|
2020-12-05 10:54:12 +03:00
|
|
|
RUN ln -s python3 /usr/bin/python
|
2020-07-06 16:48:09 +03:00
|
|
|
|
2019-01-11 06:04:21 +03:00
|
|
|
#
|
|
|
|
# update pip
|
|
|
|
#
|
2020-12-05 10:54:12 +03:00
|
|
|
RUN python3 -m pip install --upgrade pip==20.2.4 setuptools==50.3.2
|
2019-01-11 06:04:21 +03:00
|
|
|
|
2021-06-04 09:07:52 +03:00
|
|
|
# numpy 1.19.5 scipy 1.5.4
|
|
|
|
RUN python3 -m pip --no-cache-dir install numpy==1.19.5 scipy==1.5.4
|
2018-10-26 11:55:27 +03:00
|
|
|
|
2018-09-14 10:00:51 +03:00
|
|
|
#
|
2020-12-05 10:54:12 +03:00
|
|
|
# TensorFlow
|
2018-09-14 10:00:51 +03:00
|
|
|
#
|
2020-12-05 10:54:12 +03:00
|
|
|
RUN python3 -m pip --no-cache-dir install tensorflow==2.3.1
|
2018-09-14 10:00:51 +03:00
|
|
|
|
|
|
|
#
|
2021-06-03 09:48:56 +03:00
|
|
|
# Keras
|
2018-09-14 10:00:51 +03:00
|
|
|
#
|
2021-06-04 09:07:52 +03:00
|
|
|
RUN python3 -m pip --no-cache-dir install Keras==2.4.3
|
2018-09-29 15:25:03 +03:00
|
|
|
|
2018-11-13 11:35:24 +03:00
|
|
|
#
|
2019-06-19 09:20:38 +03:00
|
|
|
# PyTorch
|
2018-11-13 11:35:24 +03:00
|
|
|
#
|
2021-06-03 09:48:56 +03:00
|
|
|
RUN python3 -m pip --no-cache-dir install torch==1.7.1 torchvision==0.8.2 pytorch-lightning==1.3.3
|
2018-11-13 11:35:24 +03:00
|
|
|
|
|
|
|
#
|
2021-03-03 07:14:58 +03:00
|
|
|
# sklearn 0.24.1
|
2018-11-13 11:35:24 +03:00
|
|
|
#
|
2021-03-03 07:14:58 +03:00
|
|
|
RUN python3 -m pip --no-cache-dir install scikit-learn==0.24.1
|
2018-11-01 11:23:56 +03:00
|
|
|
|
2018-12-21 07:36:10 +03:00
|
|
|
#
|
2019-01-11 06:04:21 +03:00
|
|
|
# pandas==0.23.4 lightgbm==2.2.2
|
|
|
|
#
|
2021-06-03 09:48:56 +03:00
|
|
|
RUN python3 -m pip --no-cache-dir install pandas==1.1 lightgbm==2.2.2
|
2019-01-11 06:04:21 +03:00
|
|
|
|
|
|
|
#
|
|
|
|
# Install NNI
|
2018-12-21 07:36:10 +03:00
|
|
|
#
|
2020-12-05 10:54:12 +03:00
|
|
|
COPY dist/nni-${NNI_RELEASE}-py3-none-manylinux1_x86_64.whl .
|
|
|
|
RUN python3 -m pip install nni-${NNI_RELEASE}-py3-none-manylinux1_x86_64.whl
|
2018-12-21 07:36:10 +03:00
|
|
|
|
2021-03-05 14:06:58 +03:00
|
|
|
#
|
|
|
|
# Vision patch. Need del later
|
|
|
|
#
|
|
|
|
COPY interim_vision_patch.py .
|
|
|
|
RUN python3 interim_vision_patch.py
|
|
|
|
|
2020-07-06 16:48:09 +03:00
|
|
|
#
|
|
|
|
# install aml package
|
|
|
|
#
|
|
|
|
RUN python3 -m pip --no-cache-dir install azureml
|
|
|
|
RUN python3 -m pip --no-cache-dir install azureml-sdk
|
|
|
|
|
2018-11-07 10:43:24 +03:00
|
|
|
ENV PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/root/.local/bin:/usr/bin:/bin:/sbin
|
2018-10-26 11:55:27 +03:00
|
|
|
|
2018-11-13 11:07:05 +03:00
|
|
|
WORKDIR /root
|