Skip to content

Commit 8d074e1

Browse files
authored
move core install to /workspace (#7706)
Signed-off-by: Abhinav Khattar <[email protected]>
1 parent 95fcfde commit 8d074e1

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Dockerfile

+5-6
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ RUN apt-get update && \
4343
rm -rf /var/lib/apt/lists/*
4444

4545
WORKDIR /workspace/
46+
# install megatron core, this can be removed once 0.3 pip package is released
47+
RUN git clone https://github.com/NVIDIA/Megatron-LM.git && \
48+
cd Megatron-LM && \
49+
git checkout ab0336a5c8eab77aa74ae604ba1e73decbf6d560 && \
50+
pip install -e .
4651

4752
WORKDIR /tmp/
4853

@@ -52,12 +57,6 @@ RUN git clone https://github.com/NVIDIA/apex.git && \
5257
git checkout 52e18c894223800cb611682dce27d88050edf1de && \
5358
pip3 install -v --no-build-isolation --disable-pip-version-check --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" --global-option="--fast_layer_norm" --global-option="--distributed_adam" --global-option="--deprecated_fused_adam" ./
5459

55-
# install megatron core, this can be removed once 0.3 pip package is released
56-
RUN git clone https://github.com/NVIDIA/Megatron-LM.git && \
57-
cd Megatron-LM && \
58-
git checkout ab0336a5c8eab77aa74ae604ba1e73decbf6d560 && \
59-
pip install -e .
60-
6160
# uninstall stuff from base container
6261
RUN pip3 uninstall -y sacrebleu torchtext
6362

0 commit comments

Comments
 (0)