Debian Codegraph @

docker/Dockerfile

raw
1 FROM pytorch/pytorch:latest
2
3 RUN apt-get update && apt-get install -y --no-install-recommends \
4 software-properties-common \
5 build-essential \
6 curl \
7 git \
8 ffmpeg
9
10 RUN conda update conda && \
11 conda create -n ffcv python=3.9 \
12 cupy \
13 pkg-config \
14 compilers \
15 libjpeg-turbo \
16 opencv \
17 pytorch \
18 torchvision \
19 cudatoolkit=11.3 \
20 numba -c pytorch -c conda-forge
21
22 RUN echo "source activate" >> ~/.bashrc
23 RUN echo "conda activate ffcv" >> ~/.bashrc
24
25 RUN git clone https://github.com/libffcv/ffcv.git
26
27 RUN conda run -n ffcv pip install ffcv
28
29 # To test:
30 # 1- build the Dockerfile (e.g. docker build -t ffcv .)
31 # 2- login to the docker container (e.g. docker run -it --gpus all ffcv bash)
32 # 3- cd ffcv/examples/cifar
33 # 4- bash train_cifar.sh