-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into dm-hook-fixes
- Loading branch information
Showing
32 changed files
with
442 additions
and
217 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Existing images: | ||
# --build-arg TORCH_VERSION=1.6.0 --build-arg CUDA_VERSION=10.1 | ||
# --build-arg TORCH_VERSION=1.5 --build-arg CUDA_VERSION=10.1 | ||
# --build-arg TORCH_VERSION=1.4 --build-arg CUDA_VERSION=10.1 | ||
# --build-arg TORCH_VERSION=1.3 --build-arg CUDA_VERSION=10.1 | ||
# --build-arg TORCH_VERSION=1.2 --build-arg CUDA_VERSION=10.0 | ||
# --build-arg TORCH_VERSION=1.1.0 --build-arg CUDA_VERSION=10.0 --build-arg CUDNN_VERSION=7.5 | ||
|
||
ARG TORCH_VERSION=1.6 | ||
ARG CUDA_VERSION=10.1 | ||
ARG CUDNN_VERSION=7 | ||
|
||
FROM pytorch/pytorch:${TORCH_VERSION}-cuda${CUDA_VERSION}-cudnn${CUDNN_VERSION}-devel | ||
|
||
ENV HOROVOD_GPU_ALLREDUCE=NCCL | ||
ENV HOROVOD_GPU_BROADCAST=NCCL | ||
ENV HOROVOD_WITH_PYTORCH=1 | ||
ENV HOROVOD_WITHOUT_TENSORFLOW=1 | ||
ENV HOROVOD_WITHOUT_MXNET=1 | ||
ENV HOROVOD_WITH_GLOO=1 | ||
ENV HOROVOD_WITHOUT_MPI=1 | ||
ENV PATH="$PATH:/root/.local/bin" | ||
ENV MAKEFLAGS="-j$(nproc)" | ||
|
||
COPY ./tests/install_AMP.sh install_AMP.sh | ||
COPY ./requirements/base.txt requirements.txt | ||
COPY ./requirements/extra.txt requirements-extra.txt | ||
COPY ./requirements/test.txt requirements-tests.txt | ||
COPY ./requirements/examples.txt requirements-examples.txt | ||
|
||
RUN apt-get update && apt-get install -y cmake && \ | ||
# Install AMP | ||
bash install_AMP.sh && \ | ||
pip install -r requirements.txt && \ | ||
# HOROVOD_BUILD_ARCH_FLAGS="-mfma" && \ | ||
pip install -r requirements-extra.txt && \ | ||
pip install -r requirements-examples.txt && \ | ||
pip install -r requirements-tests.txt && \ | ||
rm requirements* && \ | ||
pip list |
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
Oops, something went wrong.