TORCH_CUDA_ARCH_LIST should be an ARG
Browse files- Dockerfile +1 -2
Dockerfile
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
FROM huggingface/transformers-pytorch-deepspeed-latest-gpu:latest
|
| 2 |
|
| 3 |
-
|
| 4 |
RUN apt-get update && \
|
| 5 |
apt-get install -y build-essential ninja-build vim git-lfs && \
|
| 6 |
git lfs install --skip-repo && \
|
|
@@ -10,7 +10,6 @@ RUN apt-get update && \
|
|
| 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
|
|
|
|
| 1 |
FROM huggingface/transformers-pytorch-deepspeed-latest-gpu:latest
|
| 2 |
|
| 3 |
+
ARG 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 && \
|
|
|
|
| 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 "peft @ git+https://github.com/huggingface/peft.git@main" --force-reinstall --no-dependencies
|
| 14 |
|
| 15 |
WORKDIR /workspace
|