Skip to content

Commit

Permalink
Set MAX_JOBS=1 for C/I
Browse files Browse the repository at this point in the history
  • Loading branch information
chiragjn committed Mar 12, 2024
1 parent 19b130a commit fa18cac
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ USER root
COPY requirements.txt /tmp/
RUN pip install -U pip wheel setuptools && \
pip uninstall -y mlflow axolotl && \
pip install --no-cache-dir -U -r /tmp/requirements.txt && \
mkdir -p /packages && \
pip install --no-cache-dir -U -r /tmp/requirements.txt
RUN mkdir -p /packages && \
cd /packages && \
git clone https://github.com/OpenAccess-AI-Collective/axolotl && \
cd axolotl/ && \
git checkout 43265208299242e3bc32690e22efadef79365c9d && \
pip install -U --no-build-isolation -e .[deepspeed,flash-attn,mamba-ssm,fused-dense-lib] && \
git checkout 43265208299242e3bc32690e22efadef79365c9d
RUN MAX_JOBS=1 pip install -U --no-build-isolation -e .[deepspeed,flash-attn,mamba-ssm,fused-dense-lib] && \
pip uninstall -y mlflow tfy-mlflow-client && \
pip install --no-cache-dir -U -r /tmp/requirements.txt
pip install --no-cache-dir -U -r /tmp/requirements.txt && \
rm -rf /root/.cache/pip
WORKDIR /app
COPY . /app

0 comments on commit fa18cac

Please sign in to comment.