Add xpu-tgi manually_build (#11556)

This commit is contained in:
Wang, Jian4 2024-07-11 10:35:40 +08:00 committed by GitHub
parent 028ad4f63c
commit 51f2effb05
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19,6 +19,7 @@ on:
- ipex-llm-inference-cpp-xpu - ipex-llm-inference-cpp-xpu
- ipex-llm-serving-cpu - ipex-llm-serving-cpu
- ipex-llm-serving-xpu - ipex-llm-serving-xpu
- ipex-llm-serving-xpu-tgi
- ipex-llm-finetune-lora-cpu - ipex-llm-finetune-lora-cpu
- ipex-llm-finetune-qlora-cpu - ipex-llm-finetune-qlora-cpu
- ipex-llm-finetune-qlora-cpu-k8s - ipex-llm-finetune-qlora-cpu-k8s
@ -174,6 +175,34 @@ jobs:
sudo docker push 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} sudo docker rmi -f ${image}:${TAG} 10.239.45.10/arda/${image}:${TAG}
ipex-llm-serving-xpu-tgi:
if: ${{ github.event.inputs.artifact == 'ipex-llm-serving-xpu-tgi' || github.event.inputs.artifact == 'all' }}
runs-on: [self-hosted, Shire]
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # actions/checkout@v3
with:
ref: ${{ github.event.inputs.sha }}
- name: docker login
run: |
docker login -u ${DOCKERHUB_USERNAME} -p ${DOCKERHUB_PASSWORD}
- name: ipex-llm-serving-xpu-tgi
run: |
echo "##############################################################"
echo "####### ipex-llm-serving-xpu-tgi ########"
echo "##############################################################"
export image=intelanalytics/ipex-llm-serving-xpu-tgi
cd docker/llm/serving/xpu-tgi
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 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}
ipex-llm-inference-cpp-xpu: ipex-llm-inference-cpp-xpu:
if: ${{ github.event.inputs.artifact == 'ipex-llm-inference-cpp-xpu' || github.event.inputs.artifact == 'all' }} if: ${{ github.event.inputs.artifact == 'ipex-llm-inference-cpp-xpu' || github.event.inputs.artifact == 'all' }}
runs-on: [self-hosted, Shire] runs-on: [self-hosted, Shire]