From 12620f3089c2800cd1cb62d9ad76168ac968814e Mon Sep 17 00:00:00 2001 From: Wing Lian Date: Fri, 2 Jun 2023 14:52:50 -0400 Subject: [PATCH 1/2] clone in docker --- docker/Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index cd9b8a302..c3c810d16 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -13,8 +13,7 @@ RUN pip3 install --force-reinstall "peft @ git+https://github.com/huggingface/pe "accelerate @ git+https://github.com/huggingface/accelerate.git@main" \ "transformers @ git+https://github.com/huggingface/transformers.git@main" -RUN mkdir axolotl -COPY . axolotl/ +RUN git clone https://github.com/OpenAccess-AI-Collective/axolotl.git # If AXOLOTL_EXTRAS is set, append it in brackets RUN cd axolotl && \ if [ "$AXOLOTL_EXTRAS" != "" ] ; then \ From 5cd21264397af015bc2d37daf1c87d918578efa8 Mon Sep 17 00:00:00 2001 From: Wing Lian Date: Fri, 2 Jun 2023 14:54:28 -0400 Subject: [PATCH 2/2] shallow clone --- docker/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index c3c810d16..38371c650 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -13,7 +13,7 @@ RUN pip3 install --force-reinstall "peft @ git+https://github.com/huggingface/pe "accelerate @ git+https://github.com/huggingface/accelerate.git@main" \ "transformers @ git+https://github.com/huggingface/transformers.git@main" -RUN git clone https://github.com/OpenAccess-AI-Collective/axolotl.git +RUN git clone --depth=1 https://github.com/OpenAccess-AI-Collective/axolotl.git # If AXOLOTL_EXTRAS is set, append it in brackets RUN cd axolotl && \ if [ "$AXOLOTL_EXTRAS" != "" ] ; then \