Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix errors when build docker #130

Merged
merged 3 commits into from
Jun 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 2 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ ARG DEBIAN_FRONTEND=noninteractive
RUN mkdir -p /build
WORKDIR /build

# Fix for https://github.com/NVIDIA/nvidia-docker/issues/1631
RUN rm /etc/apt/sources.list.d/cuda.list
RUN rm /etc/apt/sources.list.d/nvidia-ml.list
RUN apt-key del 7fa2af80 && \
apt-get -qq update && \
apt-get -qq install -y --no-install-recommends curl && \
Expand All @@ -32,17 +29,16 @@ RUN pip3 install -v --no-cache-dir --global-option="--cpp_ext" --global-option="
# Install Megatron-LM branch
WORKDIR /build

RUN git clone --branch fairseq_v2 https://github.git adcom/ngoyal2707/Megatron-LM.git
RUN git clone --branch fairseq_v2 https://github.com/ngoyal2707/Megatron-LM.git
WORKDIR /build/Megatron-LM
RUN pip3 install six regex
RUN pip3 install -e .

# Install Fairscale
WORKDIR /build

RUN git clone https://github.com/facebookresearch/fairscale.git
RUN git clone --branch prefetch_fsdp_params_simple https://github.com/facebookresearch/fairscale.git
WORKDIR /build/fairscale
RUN git checkout prefetch_fsdp_params_simple
RUN pip3 install -e .

# Install metaseq
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def do_setup(package_data):
"editdistance",
"fire",
"flask==2.1.1", # for api
"hydra-core>=1.1.0",
"hydra-core>=1.1.0,<1.2",
"iopath",
"ipdb",
"ipython",
Expand All @@ -155,7 +155,7 @@ def do_setup(package_data):
"mypy",
"ninja",
'numpy; python_version>="3.7"',
"omegaconf==2.1.1",
"omegaconf<=2.1.1",
"pre-commit",
"pytest",
"regex",
Expand Down