LLM: conditionally choose python version for unit test (#10062)
* conditional python version * retry * temporary skip llm-cpp-build * apply on llm-unit-test-on-arc * fix * add llm-cpp-build dependency * use GITHUB_OUTPUT instead of set-output * check nightly build * fix quote * fix quote * add llm-cpp-build dependency * test nightly build * test pull request
This commit is contained in:
parent
8e33cb0f38
commit
f9a468a2c7
1 changed files with 21 additions and 29 deletions
50
.github/workflows/llm_unit_tests.yml
vendored
50
.github/workflows/llm_unit_tests.yml
vendored
|
|
@ -37,30 +37,33 @@ on:
|
|||
jobs:
|
||||
llm-cpp-build:
|
||||
uses: ./.github/workflows/llm-binary-build.yml
|
||||
setup-python-version:
|
||||
runs-on: [self-hosted, llm, ubuntu-20.04-lts]
|
||||
outputs:
|
||||
python-version: ${{ steps.setup-python-version.outputs.python-version }}
|
||||
steps:
|
||||
- name: setup-python-version
|
||||
id: setup-python-version
|
||||
run: |
|
||||
if ${{ github.event_name == 'pull_request' }}; then
|
||||
python_version='["3.9"]'
|
||||
else
|
||||
python_version='["3.9", "3.10", "3.11"]'
|
||||
fi
|
||||
list=$(echo ${python_version} | jq -c)
|
||||
echo "python-version=${list}" >> "$GITHUB_OUTPUT"
|
||||
llm-unit-test:
|
||||
needs: llm-cpp-build
|
||||
needs: [setup-python-version, llm-cpp-build]
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [windows, ubuntu-20.04-lts]
|
||||
python-version: ${{ fromJson(needs.setup-python-version.outputs.python-version) }}
|
||||
include:
|
||||
- os: windows
|
||||
instruction: AVX-VNNI-UT
|
||||
python-version: "3.9"
|
||||
- os: ubuntu-20.04-lts
|
||||
instruction: avx512
|
||||
python-version: "3.9"
|
||||
- os: windows
|
||||
instruction: AVX-VNNI-UT
|
||||
python-version: "3.10"
|
||||
- os: ubuntu-20.04-lts
|
||||
instruction: avx512
|
||||
python-version: "3.10"
|
||||
- os: windows
|
||||
instruction: AVX-VNNI-UT
|
||||
python-version: "3.11"
|
||||
- os: ubuntu-20.04-lts
|
||||
instruction: avx512
|
||||
python-version: "3.11"
|
||||
runs-on: [self-hosted, llm, "${{matrix.instruction}}", "${{matrix.os}}"]
|
||||
env:
|
||||
THREAD_NUM: 24
|
||||
|
|
@ -204,23 +207,12 @@ jobs:
|
|||
pip install -U pandas==2.0.3
|
||||
bash python/llm/test/run-llm-langchain-tests.sh
|
||||
llm-unit-test-on-arc:
|
||||
needs: llm-cpp-build
|
||||
needs: [setup-python-version, llm-cpp-build]
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- pytorch-version: "2.1"
|
||||
python-version: "3.9"
|
||||
- pytorch-version: "2.1"
|
||||
python-version: "3.10"
|
||||
- pytorch-version: "2.1"
|
||||
python-version: "3.11"
|
||||
- pytorch-version: "2.0"
|
||||
python-version: "3.9"
|
||||
- pytorch-version: "2.0"
|
||||
python-version: "3.10"
|
||||
- pytorch-version: "2.0"
|
||||
python-version: "3.11"
|
||||
pytorch-version: ['2.1', '2.0']
|
||||
python-version: ${{ fromJson(needs.setup-python-version.outputs.python-version) }}
|
||||
runs-on: [self-hosted, llm, arc]
|
||||
env:
|
||||
OMP_NUM_THREADS: 16
|
||||
|
|
|
|||
Loading…
Reference in a new issue