Make performance test install specific ipex-llm version from pypi (#11892)
This commit is contained in:
parent
72a7bf624b
commit
bac98baab9
1 changed files with 17 additions and 13 deletions
30
.github/workflows/llm_performance_tests.yml
vendored
30
.github/workflows/llm_performance_tests.yml
vendored
|
|
@ -130,10 +130,11 @@ jobs:
|
||||||
if: ${{ github.event.schedule || (github.event_name == 'workflow_dispatch' && (inputs.checkout-ref == 'main')) }}
|
if: ${{ github.event.schedule || (github.event_name == 'workflow_dispatch' && (inputs.checkout-ref == 'main')) }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
pip install --pre --upgrade ipex-llm[xpu] --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/cn/
|
|
||||||
test_version_date=`date -d 'yesterday' '+%Y%m%d'`
|
test_version_date=`date -d 'yesterday' '+%Y%m%d'`
|
||||||
if ! pip show ipex-llm | grep $test_version_date; then
|
test_version=2.1.0b$test_version_date
|
||||||
echo "Did not install ipex-llm with excepted version $test_version_date"
|
pip install --pre --upgrade ipex-llm[xpu]==$test_version --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/cn/
|
||||||
|
if ! pip show ipex-llm | grep $test_version; then
|
||||||
|
echo "Did not install ipex-llm with excepted version $test_version"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -398,10 +399,11 @@ jobs:
|
||||||
if: ${{ github.event.schedule || (github.event_name == 'workflow_dispatch' && (inputs.checkout-ref == 'main')) }}
|
if: ${{ github.event.schedule || (github.event_name == 'workflow_dispatch' && (inputs.checkout-ref == 'main')) }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
pip install --pre --upgrade ipex-llm[all] --extra-index-url https://download.pytorch.org/whl/cpu
|
|
||||||
test_version_date=`date -d 'yesterday' '+%Y%m%d'`
|
test_version_date=`date -d 'yesterday' '+%Y%m%d'`
|
||||||
if ! pip show ipex-llm | grep $test_version_date; then
|
test_version=2.1.0b$test_version_date
|
||||||
echo "Did not install ipex-llm with excepted version $test_version_date"
|
pip install --pre --upgrade ipex-llm[all]==$test_version --extra-index-url https://download.pytorch.org/whl/cpu
|
||||||
|
if ! pip show ipex-llm | grep $test_version; then
|
||||||
|
echo "Did not install ipex-llm with excepted version $test_version"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -478,10 +480,11 @@ jobs:
|
||||||
if: ${{ github.event.schedule || (github.event_name == 'workflow_dispatch' && (inputs.checkout-ref == 'main')) }}
|
if: ${{ github.event.schedule || (github.event_name == 'workflow_dispatch' && (inputs.checkout-ref == 'main')) }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
pip install --pre --upgrade ipex-llm[all]
|
|
||||||
test_version_date=`date -d 'yesterday' '+%Y%m%d'`
|
test_version_date=`date -d 'yesterday' '+%Y%m%d'`
|
||||||
if ! pip show ipex-llm | grep $test_version_date; then
|
test_version=2.1.0b$test_version_date
|
||||||
echo "Did not install ipex-llm with excepted version $test_version_date"
|
pip install --pre --upgrade ipex-llm[all]==$test_version
|
||||||
|
if ! pip show ipex-llm | grep $test_version; then
|
||||||
|
echo "Did not install ipex-llm with excepted version $test_version"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -572,7 +575,8 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
test_version_date=`date -d 'yesterday' '+%Y%m%d'`
|
test_version_date=`date -d 'yesterday' '+%Y%m%d'`
|
||||||
echo "TEST_VERSION_DATE=${test_version_date}" >> "$GITHUB_ENV"
|
test_version=2.1.0b$test_version_date
|
||||||
|
echo "TEST_VERSION=${test_version}" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
- name: Install ipex-llm and other related packages (install from pypi)
|
- name: Install ipex-llm and other related packages (install from pypi)
|
||||||
if: ${{ github.event.schedule || (github.event_name == 'workflow_dispatch' && (inputs.checkout-ref == 'main')) }}
|
if: ${{ github.event.schedule || (github.event_name == 'workflow_dispatch' && (inputs.checkout-ref == 'main')) }}
|
||||||
|
|
@ -586,10 +590,10 @@ jobs:
|
||||||
pip install --upgrade omegaconf pandas
|
pip install --upgrade omegaconf pandas
|
||||||
pip install --upgrade tiktoken einops transformers_stream_generator matplotlib
|
pip install --upgrade tiktoken einops transformers_stream_generator matplotlib
|
||||||
|
|
||||||
pip install --pre --upgrade ipex-llm[xpu] --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/cn/
|
pip install --pre --upgrade ipex-llm[xpu]==%TEST_VERSION% --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/cn/
|
||||||
pip show ipex-llm | findstr %TEST_VERSION_DATE%
|
pip show ipex-llm | findstr %TEST_VERSION%
|
||||||
if %ERRORLEVEL% neq 0 (
|
if %ERRORLEVEL% neq 0 (
|
||||||
echo "Did not install ipex-llm with excepted version %TEST_VERSION_DATE%"
|
echo "Did not install ipex-llm with excepted version %TEST_VERSION%"
|
||||||
exit /b 1
|
exit /b 1
|
||||||
)
|
)
|
||||||
pip list
|
pip list
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue