clone in docker

This commit is contained in:
Wing Lian
2023-06-02 14:52:50 -04:00
parent 4ab0c8b201
commit 12620f3089

View File

@@ -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" \ "accelerate @ git+https://github.com/huggingface/accelerate.git@main" \
"transformers @ git+https://github.com/huggingface/transformers.git@main" "transformers @ git+https://github.com/huggingface/transformers.git@main"
RUN mkdir axolotl RUN git clone https://github.com/OpenAccess-AI-Collective/axolotl.git
COPY . axolotl/
# If AXOLOTL_EXTRAS is set, append it in brackets # If AXOLOTL_EXTRAS is set, append it in brackets
RUN cd axolotl && \ RUN cd axolotl && \
if [ "$AXOLOTL_EXTRAS" != "" ] ; then \ if [ "$AXOLOTL_EXTRAS" != "" ] ; then \