Skip to content

Commit cf5dc04

Browse files
Sean Narencarmocca
authored andcommitted
Fix apex version in Docker due to broken upstream (#7146)
* Set Apex commit before introduction of new MLP extensions * Refactor install command Co-authored-by: Carlos Mocholi <[email protected]> (cherry picked from commit 5d86109)
1 parent c0e9284 commit cf5dc04

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

dockers/base-conda/Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,9 @@ RUN \
114114
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist nvidia-dali-cuda${CUDA_VERSION%%.*}0
115115

116116
RUN \
117-
# install NVIDIA AMP
118-
git clone https://github.com/NVIDIA/apex && \
119-
pip install --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./apex && \
120-
rm -rf apex
117+
# install NVIDIA apex
118+
# TODO: later commits break CI when cpp extensions are compiling. Unset when fixed
119+
pip install --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" git+https://github.com/NVIDIA/apex@705cba9
121120

122121
RUN \
123122
# Show what we have

dockers/base-cuda/Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,9 @@ RUN \
108108
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist nvidia-dali-cuda${CUDA_VERSION%%.*}0
109109

110110
RUN \
111-
# install NVIDIA AMP
112-
git clone https://github.com/NVIDIA/apex && \
113-
pip install --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./apex && \
114-
rm -rf apex
111+
# install NVIDIA apex
112+
# TODO: later commits break CI when cpp extensions are compiling. Unset when fixed
113+
pip install --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" git+https://github.com/NVIDIA/apex@705cba9
115114

116115
RUN \
117116
# install DeepSpeed from source.

0 commit comments

Comments
 (0)