run this on self hosted runner for now
Browse filesfix typo
fixes to docker build
need pip wheel
don't duplicate pip install
- .github/workflows/main.yml +1 -1
- Dockerfile +8 -5
.github/workflows/main.yml
CHANGED
|
@@ -8,7 +8,7 @@ on:
|
|
| 8 |
|
| 9 |
jobs:
|
| 10 |
build:
|
| 11 |
-
runs-on:
|
| 12 |
steps:
|
| 13 |
- name: Checkout
|
| 14 |
uses: actions/checkout@v3
|
|
|
|
| 8 |
|
| 9 |
jobs:
|
| 10 |
build:
|
| 11 |
+
runs-on: self-hosted
|
| 12 |
steps:
|
| 13 |
- name: Checkout
|
| 14 |
uses: actions/checkout@v3
|
Dockerfile
CHANGED
|
@@ -3,17 +3,20 @@ FROM huggingface/transformers-pytorch-deepspeed-latest-gpu:latest
|
|
| 3 |
RUN export TORCH_CUDA_ARCH_LIST="7.0 7.5 8.0 8.6+PTX"
|
| 4 |
RUN apt-get update && \
|
| 5 |
apt-get install -y build-essential ninja-build vim git-lfs && \
|
| 6 |
-
git lfs install && \
|
| 7 |
-
|
| 8 |
-
mdir /tmp/wheels && \
|
| 9 |
cd /tmp/wheels && \
|
| 10 |
curl -L -O https://github.com/winglian/axolotl/raw/wheels/wheels/deepspeed-0.9.2%2B7ddc3b01-cp38-cp38-linux_x86_64.whl && \
|
| 11 |
curl -L -O https://github.com/winglian/axolotl/raw/wheels/wheels/flash_attn-1.0.4-cp38-cp38-linux_x86_64.whl && \
|
| 12 |
pip install deepspeed-0.9.2%2B7ddc3b01-cp38-cp38-linux_x86_64.whl && \
|
| 13 |
pip install flash_attn-1.0.4-cp38-cp38-linux_x86_64.whl && \
|
|
|
|
| 14 |
pip install "peft @ git+https://github.com/huggingface/peft.git@main" --force-reinstall --no-dependencies
|
| 15 |
|
| 16 |
WORKDIR /workspace
|
| 17 |
ARG REF=main
|
| 18 |
-
RUN git clone https://github.com/winglian/axolotl && cd axolotl && git checkout $REF
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
RUN export TORCH_CUDA_ARCH_LIST="7.0 7.5 8.0 8.6+PTX"
|
| 4 |
RUN apt-get update && \
|
| 5 |
apt-get install -y build-essential ninja-build vim git-lfs && \
|
| 6 |
+
git lfs install --skip-repo && \
|
| 7 |
+
mkdir /tmp/wheels && \
|
|
|
|
| 8 |
cd /tmp/wheels && \
|
| 9 |
curl -L -O https://github.com/winglian/axolotl/raw/wheels/wheels/deepspeed-0.9.2%2B7ddc3b01-cp38-cp38-linux_x86_64.whl && \
|
| 10 |
curl -L -O https://github.com/winglian/axolotl/raw/wheels/wheels/flash_attn-1.0.4-cp38-cp38-linux_x86_64.whl && \
|
| 11 |
pip install deepspeed-0.9.2%2B7ddc3b01-cp38-cp38-linux_x86_64.whl && \
|
| 12 |
pip install flash_attn-1.0.4-cp38-cp38-linux_x86_64.whl && \
|
| 13 |
+
pip install wheel && \
|
| 14 |
pip install "peft @ git+https://github.com/huggingface/peft.git@main" --force-reinstall --no-dependencies
|
| 15 |
|
| 16 |
WORKDIR /workspace
|
| 17 |
ARG REF=main
|
| 18 |
+
RUN git clone https://github.com/winglian/axolotl && cd axolotl && git checkout $REF && \
|
| 19 |
+
pip install -e .[int4]
|
| 20 |
+
|
| 21 |
+
RUN pip3 install --force-reinstall https://download.pytorch.org/whl/nightly/cu117/torch-2.0.0.dev20230301%2Bcu117-cp38-cp38-linux_x86_64.whl --index-url https://download.pytorch.org/whl/nightly/cu117
|
| 22 |
+
|