ipex-llm/.github/actions/llm/setup-llm-env/action.yml
xingyuan li 704a896e90 [LLM] Add perf test on xpu for bigdl-llm (#8866)
* add xpu latency job
* update install way
* remove duplicated workflow
* add perf upload
2023-09-05 17:36:24 +09:00

31 lines
1.2 KiB
YAML

name: "Setup BigDL-LLM Env"
description: "BigDL-LLM installation"
inputs:
extra-dependency:
description: "Name of extra dependencies filled in brackets"
required: false
default: "all"
runs:
using: "composite"
steps:
- name: Create conda env for llm tests and conduct install tests
shell: bash
run: |
pip install requests
if [[ ${{ runner.os }} == 'Linux' ]]; then
bash python/llm/dev/release_default_linux.sh default false
elif [[ ${{ runner.os }} == 'Windows' ]]; then
bash python/llm/dev/release_default_windows.sh default false
else
echo "Runner os is not supported!!!!!"
exit 1
fi
whl_name=$(ls python/llm/dist)
if [[ ${{ inputs.extra-dependency }} == 'xpu' ]]; then
pip install -i https://pypi.python.org/simple --force-reinstall "python/llm/dist/${whl_name}[xpu]" -f https://developer.intel.com/ipex-whl-stable-xpu
pip install pytest datasets librosa soundfile
else
pip install -i https://pypi.python.org/simple --force-reinstall "python/llm/dist/${whl_name}[all]"
pip install pytest
bash python/llm/test/run-llm-install-tests.sh
fi