From 73450d9de7337a423d8e20c847afb9866413dba1 Mon Sep 17 00:00:00 2001 From: Wing Lian Date: Sun, 7 May 2023 07:28:57 -0400 Subject: [PATCH] TORCH_CUDA_ARCH_LIST should be an ARG --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index f29b9adf9..f0333251a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM huggingface/transformers-pytorch-deepspeed-latest-gpu:latest -RUN export TORCH_CUDA_ARCH_LIST="7.0 7.5 8.0 8.6+PTX" +ARG TORCH_CUDA_ARCH_LIST="7.0 7.5 8.0 8.6+PTX" RUN apt-get update && \ apt-get install -y build-essential ninja-build vim git-lfs && \ git lfs install --skip-repo && \ @@ -10,7 +10,6 @@ RUN apt-get update && \ curl -L -O https://github.com/winglian/axolotl/raw/wheels/wheels/flash_attn-1.0.4-cp38-cp38-linux_x86_64.whl && \ pip install deepspeed-0.9.2%2B7ddc3b01-cp38-cp38-linux_x86_64.whl && \ pip install flash_attn-1.0.4-cp38-cp38-linux_x86_64.whl && \ - pip install wheel && \ pip install "peft @ git+https://github.com/huggingface/peft.git@main" --force-reinstall --no-dependencies WORKDIR /workspace