Dockerfile 847 Bytes
Newer Older
1
2
3
FROM hpcaitech/cuda-conda:11.3

# install torch
4
RUN conda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cudatoolkit=11.3 -c pytorch
5
6
7
8

# install apex
RUN git clone https://github.com/NVIDIA/apex && \
    cd apex && \
9
    pip install packaging && \
kurisusnowdeng's avatar
kurisusnowdeng committed
10
    pip install -v --disable-pip-version-check --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" --global-option="--fast_layer_norm" ./
Frank Lee's avatar
Frank Lee committed
11
12
13

# install colossalai
RUN git clone https://github.com/hpcaitech/ColossalAI.git \
kurisusnowdeng's avatar
kurisusnowdeng committed
14
    && cd ./ColossalAI \
15
    && CUDA_EXT=1 pip install -v --no-cache-dir .
16
17

# install titans
18
RUN pip install --no-cache-dir titans
19
20
21
22
23
24
25

# install tensornvme
RUN conda install cmake && \
    git clone https://github.com/hpcaitech/TensorNVMe.git && \
    cd TensorNVMe && \
    pip install -r requirements.txt && \
    pip install -v --no-cache-dir .