-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
35 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,4 @@ mlruns/ | |
output/ | ||
outputs/ | ||
*.egg-info/ | ||
.ipynb_checkpoints/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,31 @@ | ||
# https://hub.docker.com/layers/winglian/axolotl/main-20241104-py3.11-cu121-2.3.1/images/sha256-790297fa1d71f8f1590c73ca4505ca39fe7dfa2886b2b6862199a6df679bf8e4?context=explore | ||
FROM winglian/axolotl@sha256:cffbcc4993e80301a8918062f8136a6ac402877fd6c29f1168be563e543aee4d | ||
SHELL ["/bin/bash", "-c"] | ||
USER root | ||
|
||
# Install torch | ||
COPY requirements.txt /tmp/ | ||
RUN pip install -U pip wheel setuptools && \ | ||
pip uninstall -y axolotl && \ | ||
pip install --no-cache-dir -U -r /tmp/requirements.txt | ||
|
||
# Install axolotl | ||
RUN mkdir -p /packages && \ | ||
cd /packages && \ | ||
git clone https://github.com/truefoundry/axolotl && \ | ||
cd axolotl/ && \ | ||
git checkout e16f637d079ef5d56321a240ef0547a50c37b708 | ||
RUN cd /packages/axolotl/ && \ | ||
git checkout e16f637d079ef5d56321a240ef0547a50c37b708 && \ | ||
cd /packages/axolotl/ && \ | ||
MAX_JOBS=1 NVCC_APPEND_FLAGS="--threads 1" pip install -U --no-build-isolation --no-cache-dir -e .[flash-attn,mamba-ssm,fused-dense-lib,optimizers,lion-pytorch,galore] && \ | ||
pip install --no-cache-dir -U -r /tmp/requirements.txt && \ | ||
rm -rf /root/.cache/pip | ||
|
||
# Install axolotl_truefoundry plugin with our requirements overrides over axolotl | ||
COPY plugins/axolotl_truefoundry /packages/axolotl_truefoundry | ||
RUN cd /packages/axolotl_truefoundry/ && \ | ||
pip install --no-cache-dir -e . && \ | ||
pip install --no-cache-dir -U -r /tmp/requirements.txt -e . && \ | ||
rm -rf /root/.cache/pip | ||
|
||
WORKDIR /app | ||
|
||
# Add source code for finetuning | ||
COPY . /app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters