Dockerfile 1.12 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM hpcaitech/pytorch-cuda:1.12.0-11.3.0

# install torch
# RUN conda install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch
RUN apt-get update
RUN apt-get install ffmpeg libsm6 libxext6  -y

# install apex
RUN git clone https://github.com/NVIDIA/apex && \
    cd apex && \
    pip install -v --disable-pip-version-check --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" --global-option="--fast_layer_norm" ./

# install colossalai
# RUN git clone https://github.com/hpcaitech/ColossalAI.git \
#     && cd ./ColossalAI \
#     && pip install -v --no-cache-dir .

18
RUN pip install colossalai
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34


# install titans
RUN pip install --no-cache-dir titans

RUN git clone https://github.com/hpcaitech/ColossalAI.git  && \
    cd ./ColossalAI/examples/images/diffusion && \
    pip install -r requirements.txt && \
    pip install --no-cache-dir transformers==4.19.2 diffusers invisible-watermark

# 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 .