Skip to content

Instantly share code, notes, and snippets.

@astellon
Created April 10, 2022 13:38
Show Gist options
  • Save astellon/34da7da385185d187c4f9e6d419c4b76 to your computer and use it in GitHub Desktop.
Save astellon/34da7da385185d187c4f9e6d419c4b76 to your computer and use it in GitHub Desktop.
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" ]
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