Skip to content

Commit 8e924c6

Browse files
committed
creating new dockerfile at root
1 parent 857e3e9 commit 8e924c6

1 file changed

Lines changed: 13 additions & 12 deletions

File tree

Dockerfile

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
1-
FROM mcr.microsoft.com/azureml/base:openmpi3.1.2-ubuntu18.04
2-
RUN apt-get update
1+
FROM mcr.microsoft.com/azureml/openmpi4.1.0-cuda11.1-cudnn8-ubuntu18.04
32

3+
# install torch latest
4+
RUN conda install pytorch=1.9.1 cudatoolkit=11.1 -c pytorch -c nvidia
45

5-
# create conda environment
6-
RUN conda update -n base -c defaults conda -y
7-
RUN conda create -n marlin python=3.8 -y
8-
RUN echo ". /opt/miniconda/etc/profile.d/conda.sh" >> ~/.bashrc
6+
# install latest pymarlin published to pip with extra plugin dependencies like transformers (check setup.py)
7+
RUN pip install pymarlin[plugins] --ignore-installed
98

10-
#install torch latest
11-
# Cuda toolkit other than 1.2 makes GPUs invisible. Base image issue
12-
RUN conda install pytorch cudatoolkit=10.2 -c pytorch -y -n marlin
9+
# install opacus
10+
RUN pip install opacus
1311

14-
ADD . /workdir
15-
WORKDIR /workdir
12+
# install deepspeed
13+
RUN pip install deepspeed
1614

17-
RUN /opt/miniconda/envs/marlin/bin/pip install -U -e .
15+
# install ORT
16+
RUN pip install onnxruntime-training -f https://download.onnxruntime.ai/onnxruntime_stable_cu111.html
17+
RUN pip install torch-ort --ignore-installed
18+
RUN python -m torch_ort.configure

0 commit comments

Comments
 (0)