Created
April 10, 2022 13:38
-
-
Save astellon/34da7da385185d187c4f9e6d419c4b76 to your computer and use it in GitHub Desktop.
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
FROM nvcr.io/nvidia/cuda:11.6.2-cudnn8-devel-ubuntu20.04 | |
RUN apt-get update && \ | |
apt-get -y install python3 python3-pip && \ | |
apt-get clean && \ | |
rm -rf /var/lib/apt/lists/* | |
RUN python3 -m pip install jax[cuda] flax -f https://storage.googleapis.com/jax-releases/jax_releases.html | |
RUN python3 -m pip install tensorflow tensorflow_datasets wandb hydra-core | |
ENTRYPOINT [ "python3" ] |
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
docker run -it --rm --gpus all \ | |
-v /etc/group:/etc/group:ro \ | |
-v /etc/passwd:/etc/passwd:ro \ | |
-v $PWD:/flax-example \ | |
-v $PWD/data:/data \ | |
-v $HOME/.netrc:$HOME/.netrc \ | |
-v $HOME/.config/wandb:$HOME/.config/wandb \ | |
-w /flax-example \ | |
-u $(id -u $USER):$(id -g $USER) \ | |
flax $@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment