Skip to content

Commit

Permalink
move core install to /workspace (NVIDIA#7706)
Browse files Browse the repository at this point in the history
Signed-off-by: Abhinav Khattar <aklife97@gmail.com>
  • Loading branch information
aklife97 authored Oct 12, 2023
1 parent 2b808e9 commit 778832d
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ RUN apt-get update && \
rm -rf /var/lib/apt/lists/*

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

WORKDIR /tmp/

Expand All @@ -52,12 +57,6 @@ RUN git clone https://github.com/NVIDIA/apex.git && \
git checkout 52e18c894223800cb611682dce27d88050edf1de && \
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" ./

# install megatron core, this can be removed once 0.3 pip package is released
RUN git clone https://github.com/NVIDIA/Megatron-LM.git && \
cd Megatron-LM && \
git checkout ab0336a5c8eab77aa74ae604ba1e73decbf6d560 && \
pip install -e .

# uninstall stuff from base container
RUN pip3 uninstall -y sacrebleu torchtext

Expand Down

0 comments on commit 778832d

Please sign in to comment.