-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #99 from libffcv/main
Update no_jit_assert branch with bug fixes
- Loading branch information
Showing
7 changed files
with
51 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
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 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters