|
37 | 37 | jobs:
|
38 | 38 | llm-cpp-build:
|
39 | 39 | uses: ./.github/workflows/llm-binary-build.yml
|
| 40 | + setup-python-version: |
| 41 | + runs-on: [self-hosted, llm, ubuntu-20.04-lts] |
| 42 | + outputs: |
| 43 | + python-version: ${{ steps.setup-python-version.outputs.python-version }} |
| 44 | + steps: |
| 45 | + - name: setup-python-version |
| 46 | + id: setup-python-version |
| 47 | + run: | |
| 48 | + if ${{ github.event_name == 'pull_request' }}; then |
| 49 | + python_version='["3.9"]' |
| 50 | + else |
| 51 | + python_version='["3.9", "3.10", "3.11"]' |
| 52 | + fi |
| 53 | + list=$(echo ${python_version} | jq -c) |
| 54 | + echo "python-version=${list}" >> "$GITHUB_OUTPUT" |
40 | 55 | llm-unit-test:
|
41 |
| - needs: llm-cpp-build |
| 56 | + needs: [setup-python-version, llm-cpp-build] |
42 | 57 | strategy:
|
43 | 58 | fail-fast: false
|
44 | 59 | matrix:
|
| 60 | + os: [windows, ubuntu-20.04-lts] |
| 61 | + python-version: ${{ fromJson(needs.setup-python-version.outputs.python-version) }} |
45 | 62 | include:
|
46 | 63 | - os: windows
|
47 | 64 | instruction: AVX-VNNI-UT
|
48 |
| - python-version: "3.9" |
49 |
| - - os: ubuntu-20.04-lts |
50 |
| - instruction: avx512 |
51 |
| - python-version: "3.9" |
52 |
| - - os: windows |
53 |
| - instruction: AVX-VNNI-UT |
54 |
| - python-version: "3.10" |
55 |
| - - os: ubuntu-20.04-lts |
56 |
| - instruction: avx512 |
57 |
| - python-version: "3.10" |
58 |
| - - os: windows |
59 |
| - instruction: AVX-VNNI-UT |
60 |
| - python-version: "3.11" |
61 | 65 | - os: ubuntu-20.04-lts
|
62 | 66 | instruction: avx512
|
63 |
| - python-version: "3.11" |
64 | 67 | runs-on: [self-hosted, llm, "${{matrix.instruction}}", "${{matrix.os}}"]
|
65 | 68 | env:
|
66 | 69 | THREAD_NUM: 24
|
@@ -204,23 +207,12 @@ jobs:
|
204 | 207 | pip install -U pandas==2.0.3
|
205 | 208 | bash python/llm/test/run-llm-langchain-tests.sh
|
206 | 209 | llm-unit-test-on-arc:
|
207 |
| - needs: llm-cpp-build |
| 210 | + needs: [setup-python-version, llm-cpp-build] |
208 | 211 | strategy:
|
209 | 212 | fail-fast: false
|
210 | 213 | matrix:
|
211 |
| - include: |
212 |
| - - pytorch-version: "2.1" |
213 |
| - python-version: "3.9" |
214 |
| - - pytorch-version: "2.1" |
215 |
| - python-version: "3.10" |
216 |
| - - pytorch-version: "2.1" |
217 |
| - python-version: "3.11" |
218 |
| - - pytorch-version: "2.0" |
219 |
| - python-version: "3.9" |
220 |
| - - pytorch-version: "2.0" |
221 |
| - python-version: "3.10" |
222 |
| - - pytorch-version: "2.0" |
223 |
| - python-version: "3.11" |
| 214 | + pytorch-version: ['2.1', '2.0'] |
| 215 | + python-version: ${{ fromJson(needs.setup-python-version.outputs.python-version) }} |
224 | 216 | runs-on: [self-hosted, llm, arc]
|
225 | 217 | env:
|
226 | 218 | OMP_NUM_THREADS: 16
|
|
0 commit comments