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