From 37b1708d165a7b740225cb6d55dac42fcf98ec28 Mon Sep 17 00:00:00 2001 From: Jasonzzt Date: Thu, 26 Oct 2023 15:53:44 +0800 Subject: [PATCH] Add bigdl-llm-finetune-cpu to manually_build --- .github/workflows/manually_build.yml | 28 +++++++++++++++++ .../workflows/manually_build_for_testing.yml | 30 +++++++++++++++++++ 2 files changed, 58 insertions(+) diff --git a/.github/workflows/manually_build.yml b/.github/workflows/manually_build.yml index f4728c02..720b4e96 100644 --- a/.github/workflows/manually_build.yml +++ b/.github/workflows/manually_build.yml @@ -10,6 +10,7 @@ on: type: choice options: - all + - bigdl-llm-finetune-cpu - bigdl-llm-finetune-xpu - bigdl-llm-xpu - bigdl-llm-cpu @@ -59,6 +60,33 @@ permissions: packages: write jobs: + bigdl-llm-finetune-cpu: + if: ${{ github.event.inputs.artifact == 'bigdl-llm-finetune-cpu' || github.event.inputs.artifact == 'all' }} + runs-on: [self-hosted, Shire] + + steps: + - uses: actions/checkout@v3 + - name: docker login + run: | + docker login -u ${DOCKERHUB_USERNAME} -p ${DOCKERHUB_PASSWORD} + - name: bigdl-llm-finetune-cpu + run: | + echo "##############################################################" + echo "####### bigdl-llm-finetune-cpu ########" + echo "##############################################################" + export image=intelanalytics/bigdl-llm-finetune-cpu + cd docker/llm/finetune/lora/cpu/docker + sudo docker build \ + --no-cache=true \ + --build-arg http_proxy=${HTTP_PROXY} \ + --build-arg https_proxy=${HTTPS_PROXY} \ + --build-arg no_proxy=${NO_PROXY} \ + -t ${image}:${TAG} -f ./Dockerfile . + sudo docker push ${image}:${TAG} + sudo docker tag ${image}:${TAG} 10.239.45.10/arda/${image}:${TAG} + sudo docker push 10.239.45.10/arda/${image}:${TAG} + sudo docker rmi -f ${image}:${TAG} 10.239.45.10/arda/${image}:${TAG} + bigdl-llm-finetune-xpu: if: ${{ github.event.inputs.artifact == 'bigdl-llm-finetune-xpu' || github.event.inputs.artifact == 'all' }} runs-on: [self-hosted, Shire] diff --git a/.github/workflows/manually_build_for_testing.yml b/.github/workflows/manually_build_for_testing.yml index b9c8932b..a25c47e9 100644 --- a/.github/workflows/manually_build_for_testing.yml +++ b/.github/workflows/manually_build_for_testing.yml @@ -14,6 +14,7 @@ on: type: choice options: - all + - bigdl-llm-finetune-cpu - bigdl-llm-finetune-xpu - bigdl-llm-xpu - bigdl-llm-cpu @@ -56,6 +57,35 @@ permissions: packages: write jobs: + bigdl-llm-finetune-cpu: + if: ${{ github.event.inputs.artifact == 'bigdl-llm-finetune-cpu' || github.event.inputs.artifact == 'all' }} + runs-on: [self-hosted, Shire] + + steps: + - uses: actions/checkout@v3 + with: + ref: ${{ github.event.inputs.sha }} + - name: docker login + run: | + docker login -u ${DOCKERHUB_USERNAME} -p ${DOCKERHUB_PASSWORD} + - name: bigdl-llm-finetune-cpu + run: | + echo "##############################################################" + echo "####### bigdl-llm-finetune-cpu ########" + echo "##############################################################" + export image=intelanalytics/bigdl-llm-finetune-cpu + cd docker/llm/finetune/lora/cpu/docker + sudo docker build \ + --no-cache=true \ + --build-arg http_proxy=${HTTP_PROXY} \ + --build-arg https_proxy=${HTTPS_PROXY} \ + --build-arg no_proxy=${NO_PROXY} \ + -t ${image}:${TAG} -f ./Dockerfile . + sudo docker push ${image}:${TAG} + sudo docker tag ${image}:${TAG} 10.239.45.10/arda/${image}:${TAG} + sudo docker push 10.239.45.10/arda/${image}:${TAG} + sudo docker rmi -f ${image}:${TAG} 10.239.45.10/arda/${image}:${TAG} + bigdl-llm-finetune-xpu: if: ${{ github.event.inputs.artifact == 'bigdl-llm-finetune-xpu' || github.event.inputs.artifact == 'all' }} runs-on: [self-hosted, Shire]