nni/Dockerfile

95 строки
1.8 KiB
Docker
Исходник Обычный вид История

2019-11-25 10:02:23 +03:00
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
FROM nvidia/cuda:10.2-cudnn8-runtime-ubuntu18.04
2020-12-05 10:54:12 +03:00
ARG NNI_RELEASE
LABEL maintainer='Microsoft NNI Team<nni@microsoft.com>'
ENV DEBIAN_FRONTEND=noninteractive
2020-12-05 10:54:12 +03:00
RUN apt-get -y update
RUN apt-get -y install \
sudo \
apt-utils \
git \
curl \
vim \
unzip \
wget \
build-essential \
cmake \
libopenblas-dev \
automake \
openssh-client \
openssh-server \
lsof \
python3.6 \
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/*
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
#
# update pip
#
2020-12-05 10:54:12 +03:00
RUN python3 -m pip install --upgrade pip==20.2.4 setuptools==50.3.2
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
#
2020-12-05 10:54:12 +03:00
# TensorFlow
#
2020-12-05 10:54:12 +03:00
RUN python3 -m pip --no-cache-dir install tensorflow==2.3.1
#
# Keras
#
2021-06-04 09:07:52 +03:00
RUN python3 -m pip --no-cache-dir install Keras==2.4.3
Merge branch V0.2 to Master (#143) * webui logpath and document (#135) * Add webui document and logpath as a href * fix tslint * fix comments by Chengmin * Pai training service bug fix and enhancement (#136) * Add NNI installation scripts * Update pai script, update NNI_out_dir * Update NNI dir in nni sdk local.py * Create .nni folder in nni sdk local.py * Add check before creating .nni folder * Fix typo for PAI_INSTALL_NNI_SHELL_FORMAT * Improve annotation (#138) * Improve annotation * Minor bugfix * Selectively install through pip (#139) Selectively install through pip * update setup.py * fix paiTrainingService bugs (#137) * fix nnictl bug * add hdfs host validation * fix bugs * fix dockerfile * fix install.sh * update install.sh * fix dockerfile * Set timeout for HDFSUtility exists function * remove unused TODO * fix sdk * add optional for outputDir and dataDir * refactor dockerfile.base * Remove unused import in hdfsclientUtility * Add documentation for NNI PAI mode experiment (#141) * Add documentation for NNI PAI mode * Fix typo based on PR comments * Exit with subprocess return code of trial keeper * Remove additional exit code * Fix typo based on PR comments * update doc for smac tuner (#140) * Revert "Selectively install through pip (#139)" due to potential pip install issue (#142) * Revert "Selectively install through pip (#139)" This reverts commit 1d174836d3146a0363e9c9c88094bf9cff865faa. * Add exit code of subprocess for trial_keeper * Update README, add link to PAImode doc
2018-09-29 15:25:03 +03:00
#
# PyTorch
#
RUN python3 -m pip --no-cache-dir install torch==1.7.1 torchvision==0.8.2 pytorch-lightning==1.3.3
#
# sklearn 0.24.1
#
RUN python3 -m pip --no-cache-dir install scikit-learn==0.24.1
#
# pandas==0.23.4 lightgbm==2.2.2
#
RUN python3 -m pip --no-cache-dir install pandas==1.1 lightgbm==2.2.2
#
# Install NNI
#
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
2021-03-05 14:06:58 +03:00
#
# Vision patch. Need del later
#
2021-12-14 06:28:56 +03:00
COPY test/vso_tools/interim_patch.py .
RUN python3 interim_patch.py
2021-03-05 14:06:58 +03:00
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
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
WORKDIR /root