fix clone

This commit is contained in:
Mohit Sharma 2024-08-06 12:39:49 +00:00
parent 5788c942a5
commit d61f7e63fa

View File

@ -92,14 +92,17 @@ RUN chmod +x ~/mambaforge.sh && \
# Install flash-attention, torch dependencies
RUN pip install numpy einops ninja --no-cache-dir
RUN conda install mkl-static mkl-include
RUN conda install intel::mkl-static intel::mkl-include
RUN pip uninstall -y triton && \
git clone --depth 1 --single-branch https://github.com/ROCm/triton.git && \
cd triton/python && \
pip install .
RUN git clone --depth 1 --recursive --single-branch --branch main https://github.com/pytorch/pytorch.git pytorch && cd pytorch && pip install -r requirements.txt --no-cache-dir && \
git checkout da320214e66b5af0f7db8fd18a64dbb519d17b27
RUN git clone --depth 1 --recursive --single-branch --branch main https://github.com/pytorch/pytorch.git pytorch && \
cd pytorch && git fetch --depth 1 origin da320214e66b5af0f7db8fd18a64dbb519d17b27 && \
git checkout da320214e66b5af0f7db8fd18a64dbb519d17b27 && \
pip install -r requirements.txt --no-cache-dir
ARG _GLIBCXX_USE_CXX11_ABI="1"
ARG CMAKE_PREFIX_PATH="/opt/conda"