Skip to content

Commit bac98ba

Browse files
Make performance test install specific ipex-llm version from pypi (#11892)
1 parent 72a7bf6 commit bac98ba

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

.github/workflows/llm_performance_tests.yml

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,11 @@ jobs:
130130
if: ${{ github.event.schedule || (github.event_name == 'workflow_dispatch' && (inputs.checkout-ref == 'main')) }}
131131
shell: bash
132132
run: |
133-
pip install --pre --upgrade ipex-llm[xpu] --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/cn/
134133
test_version_date=`date -d 'yesterday' '+%Y%m%d'`
135-
if ! pip show ipex-llm | grep $test_version_date; then
136-
echo "Did not install ipex-llm with excepted version $test_version_date"
134+
test_version=2.1.0b$test_version_date
135+
pip install --pre --upgrade ipex-llm[xpu]==$test_version --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/cn/
136+
if ! pip show ipex-llm | grep $test_version; then
137+
echo "Did not install ipex-llm with excepted version $test_version"
137138
exit 1
138139
fi
139140
@@ -398,10 +399,11 @@ jobs:
398399
if: ${{ github.event.schedule || (github.event_name == 'workflow_dispatch' && (inputs.checkout-ref == 'main')) }}
399400
shell: bash
400401
run: |
401-
pip install --pre --upgrade ipex-llm[all] --extra-index-url https://download.pytorch.org/whl/cpu
402402
test_version_date=`date -d 'yesterday' '+%Y%m%d'`
403-
if ! pip show ipex-llm | grep $test_version_date; then
404-
echo "Did not install ipex-llm with excepted version $test_version_date"
403+
test_version=2.1.0b$test_version_date
404+
pip install --pre --upgrade ipex-llm[all]==$test_version --extra-index-url https://download.pytorch.org/whl/cpu
405+
if ! pip show ipex-llm | grep $test_version; then
406+
echo "Did not install ipex-llm with excepted version $test_version"
405407
exit 1
406408
fi
407409
@@ -478,10 +480,11 @@ jobs:
478480
if: ${{ github.event.schedule || (github.event_name == 'workflow_dispatch' && (inputs.checkout-ref == 'main')) }}
479481
shell: bash
480482
run: |
481-
pip install --pre --upgrade ipex-llm[all]
482483
test_version_date=`date -d 'yesterday' '+%Y%m%d'`
483-
if ! pip show ipex-llm | grep $test_version_date; then
484-
echo "Did not install ipex-llm with excepted version $test_version_date"
484+
test_version=2.1.0b$test_version_date
485+
pip install --pre --upgrade ipex-llm[all]==$test_version
486+
if ! pip show ipex-llm | grep $test_version; then
487+
echo "Did not install ipex-llm with excepted version $test_version"
485488
exit 1
486489
fi
487490
@@ -572,7 +575,8 @@ jobs:
572575
shell: bash
573576
run: |
574577
test_version_date=`date -d 'yesterday' '+%Y%m%d'`
575-
echo "TEST_VERSION_DATE=${test_version_date}" >> "$GITHUB_ENV"
578+
test_version=2.1.0b$test_version_date
579+
echo "TEST_VERSION=${test_version}" >> "$GITHUB_ENV"
576580
577581
- name: Install ipex-llm and other related packages (install from pypi)
578582
if: ${{ github.event.schedule || (github.event_name == 'workflow_dispatch' && (inputs.checkout-ref == 'main')) }}
@@ -586,10 +590,10 @@ jobs:
586590
pip install --upgrade omegaconf pandas
587591
pip install --upgrade tiktoken einops transformers_stream_generator matplotlib
588592
589-
pip install --pre --upgrade ipex-llm[xpu] --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/cn/
590-
pip show ipex-llm | findstr %TEST_VERSION_DATE%
593+
pip install --pre --upgrade ipex-llm[xpu]==%TEST_VERSION% --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/cn/
594+
pip show ipex-llm | findstr %TEST_VERSION%
591595
if %ERRORLEVEL% neq 0 (
592-
echo "Did not install ipex-llm with excepted version %TEST_VERSION_DATE%"
596+
echo "Did not install ipex-llm with excepted version %TEST_VERSION%"
593597
exit /b 1
594598
)
595599
pip list

0 commit comments

Comments
 (0)