add bigdl-llm-finetune-xpu to manually_build (#9278)
This commit is contained in:
parent
e2264e8845
commit
4ed7f066d3
2 changed files with 58 additions and 0 deletions
28
.github/workflows/manually_build.yml
vendored
28
.github/workflows/manually_build.yml
vendored
|
|
@ -10,6 +10,7 @@ on:
|
||||||
type: choice
|
type: choice
|
||||||
options:
|
options:
|
||||||
- all
|
- all
|
||||||
|
- bigdl-llm-finetune-xpu
|
||||||
- bigdl-llm-xpu
|
- bigdl-llm-xpu
|
||||||
- bigdl-llm-cpu
|
- bigdl-llm-cpu
|
||||||
- bigdl-llm-serving-xpu
|
- bigdl-llm-serving-xpu
|
||||||
|
|
@ -58,6 +59,33 @@ permissions:
|
||||||
packages: write
|
packages: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
bigdl-llm-finetune-xpu:
|
||||||
|
if: ${{ github.event.inputs.artifact == 'bigdl-llm-finetune-xpu' || 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-xpu
|
||||||
|
run: |
|
||||||
|
echo "##############################################################"
|
||||||
|
echo "####### bigdl-llm-finetune-xpu ########"
|
||||||
|
echo "##############################################################"
|
||||||
|
export image=intelanalytics/bigdl-llm-finetune-xpu
|
||||||
|
cd docker/llm/finetune/qlora/xpu/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-xpu:
|
bigdl-llm-xpu:
|
||||||
if: ${{ github.event.inputs.artifact == 'bigdl-llm-xpu' || github.event.inputs.artifact == 'all' }}
|
if: ${{ github.event.inputs.artifact == 'bigdl-llm-xpu' || github.event.inputs.artifact == 'all' }}
|
||||||
runs-on: [self-hosted, Shire]
|
runs-on: [self-hosted, Shire]
|
||||||
|
|
|
||||||
30
.github/workflows/manually_build_for_testing.yml
vendored
30
.github/workflows/manually_build_for_testing.yml
vendored
|
|
@ -14,6 +14,7 @@ on:
|
||||||
type: choice
|
type: choice
|
||||||
options:
|
options:
|
||||||
- all
|
- all
|
||||||
|
- bigdl-llm-finetune-xpu
|
||||||
- bigdl-llm-xpu
|
- bigdl-llm-xpu
|
||||||
- bigdl-llm-cpu
|
- bigdl-llm-cpu
|
||||||
- bigdl-llm-serving-xpu
|
- bigdl-llm-serving-xpu
|
||||||
|
|
@ -55,6 +56,35 @@ permissions:
|
||||||
packages: write
|
packages: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
bigdl-llm-finetune-xpu:
|
||||||
|
if: ${{ github.event.inputs.artifact == 'bigdl-llm-finetune-xpu' || 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-xpu
|
||||||
|
run: |
|
||||||
|
echo "##############################################################"
|
||||||
|
echo "####### bigdl-llm-finetune-xpu ########"
|
||||||
|
echo "##############################################################"
|
||||||
|
export image=intelanalytics/bigdl-llm-finetune-xpu
|
||||||
|
cd docker/llm/finetune/qlora/xpu/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-xpu:
|
bigdl-llm-xpu:
|
||||||
if: ${{ github.event.inputs.artifact == 'bigdl-llm-xpu' || github.event.inputs.artifact == 'all' }}
|
if: ${{ github.event.inputs.artifact == 'bigdl-llm-xpu' || github.event.inputs.artifact == 'all' }}
|
||||||
runs-on: [self-hosted, Shire]
|
runs-on: [self-hosted, Shire]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue