From a7517ee8207b1098afae5a9250b00b70838611c7 Mon Sep 17 00:00:00 2001 From: liu-shaojun Date: Mon, 8 Apr 2024 17:28:30 +0800 Subject: [PATCH] upgrade to python 3.11 --- .github/workflows/llm-c-evaluation.yml | 10 +++++----- .github/workflows/llm-harness-evaluation.yml | 10 +++++----- .github/workflows/llm-nightly-test.yml | 4 ++-- .github/workflows/llm-ppl-evaluation.yml | 10 +++++----- .github/workflows/llm-whisper-evaluation.yml | 6 +++--- .github/workflows/llm_example_tests.yml | 2 +- .github/workflows/llm_performance_tests.yml | 12 ++++++------ .../llm_tests_for_stable_version_on_arc.yml | 4 ++-- .../llm_tests_for_stable_version_on_spr.yml | 4 ++-- .github/workflows/llm_unit_tests.yml | 2 +- 10 files changed, 32 insertions(+), 32 deletions(-) diff --git a/.github/workflows/llm-c-evaluation.yml b/.github/workflows/llm-c-evaluation.yml index b77e622a1cd..9ca18276c75 100644 --- a/.github/workflows/llm-c-evaluation.yml +++ b/.github/workflows/llm-c-evaluation.yml @@ -95,7 +95,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.9"] + python-version: ["3.11"] model_name: ${{ fromJson(needs.set-matrix.outputs.model_name) }} precision: ${{ fromJson(needs.set-matrix.outputs.precision) }} device: [xpu] @@ -193,10 +193,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Set up Python 3.9 + - name: Set up Python 3.11 uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: 3.11 - name: Install dependencies shell: bash run: | @@ -230,10 +230,10 @@ jobs: runs-on: ["self-hosted", "llm", "accuracy1", "accuracy-nightly"] steps: - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # actions/checkout@v3 - - name: Set up Python 3.9 + - name: Set up Python 3.11 uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: 3.11 - name: Install dependencies shell: bash run: | diff --git a/.github/workflows/llm-harness-evaluation.yml b/.github/workflows/llm-harness-evaluation.yml index 11255e03096..9a149d3c09e 100644 --- a/.github/workflows/llm-harness-evaluation.yml +++ b/.github/workflows/llm-harness-evaluation.yml @@ -105,7 +105,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.9"] + python-version: ["3.11"] model_name: ${{ fromJson(needs.set-matrix.outputs.model_name) }} task: ${{ fromJson(needs.set-matrix.outputs.task) }} precision: ${{ fromJson(needs.set-matrix.outputs.precision) }} @@ -216,10 +216,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # actions/checkout@v3 - - name: Set up Python 3.9 + - name: Set up Python 3.11 uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: 3.11 - name: Install dependencies shell: bash run: | @@ -243,10 +243,10 @@ jobs: runs-on: ["self-hosted", "llm", "accuracy1", "accuracy-nightly"] steps: - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # actions/checkout@v3 - - name: Set up Python 3.9 + - name: Set up Python 3.11 uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: 3.11 - name: Install dependencies shell: bash run: | diff --git a/.github/workflows/llm-nightly-test.yml b/.github/workflows/llm-nightly-test.yml index 457c7a61bf1..10bfb7469af 100644 --- a/.github/workflows/llm-nightly-test.yml +++ b/.github/workflows/llm-nightly-test.yml @@ -34,10 +34,10 @@ jobs: include: - os: windows instruction: AVX-VNNI-UT - python-version: "3.9" + python-version: "3.11" - os: ubuntu-20.04-lts instruction: avx512 - python-version: "3.9" + python-version: "3.11" runs-on: [self-hosted, llm, "${{matrix.instruction}}", "${{matrix.os}}"] env: ANALYTICS_ZOO_ROOT: ${{ github.workspace }} diff --git a/.github/workflows/llm-ppl-evaluation.yml b/.github/workflows/llm-ppl-evaluation.yml index 8f549af00a0..86fafa5069c 100644 --- a/.github/workflows/llm-ppl-evaluation.yml +++ b/.github/workflows/llm-ppl-evaluation.yml @@ -104,7 +104,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.9"] + python-version: ["3.11"] model_name: ${{ fromJson(needs.set-matrix.outputs.model_name) }} precision: ${{ fromJson(needs.set-matrix.outputs.precision) }} seq_len: ${{ fromJson(needs.set-matrix.outputs.seq_len) }} @@ -201,10 +201,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # actions/checkout@v3 - - name: Set up Python 3.9 + - name: Set up Python 3.11 uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: 3.11 - name: Install dependencies shell: bash run: | @@ -227,10 +227,10 @@ jobs: runs-on: ["self-hosted", "llm", "accuracy1", "accuracy-nightly"] steps: - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # actions/checkout@v3 - - name: Set up Python 3.9 + - name: Set up Python 3.11 uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: 3.11 - name: Install dependencies shell: bash run: | diff --git a/.github/workflows/llm-whisper-evaluation.yml b/.github/workflows/llm-whisper-evaluation.yml index 0a918c56367..e60eadbf1df 100644 --- a/.github/workflows/llm-whisper-evaluation.yml +++ b/.github/workflows/llm-whisper-evaluation.yml @@ -81,7 +81,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.9"] + python-version: ["3.11"] model_name: ${{ fromJson(needs.set-matrix.outputs.model_name) }} task: ${{ fromJson(needs.set-matrix.outputs.task) }} precision: ${{ fromJson(needs.set-matrix.outputs.precision) }} @@ -158,10 +158,10 @@ jobs: runs-on: ["self-hosted", "llm", "perf"] steps: - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # actions/checkout@v3 - - name: Set up Python 3.9 + - name: Set up Python 3.11 uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: 3.11 - name: Set output path shell: bash diff --git a/.github/workflows/llm_example_tests.yml b/.github/workflows/llm_example_tests.yml index 8338e48a2fb..a19606a8dd0 100644 --- a/.github/workflows/llm_example_tests.yml +++ b/.github/workflows/llm_example_tests.yml @@ -39,7 +39,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.9"] + python-version: ["3.11"] instruction: ["AVX512"] runs-on: [ self-hosted, llm,"${{matrix.instruction}}", ubuntu-20.04-lts ] env: diff --git a/.github/workflows/llm_performance_tests.yml b/.github/workflows/llm_performance_tests.yml index b54954912f5..48cc7dc763d 100644 --- a/.github/workflows/llm_performance_tests.yml +++ b/.github/workflows/llm_performance_tests.yml @@ -33,7 +33,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.9"] + python-version: ["3.11"] runs-on: [self-hosted, llm, perf] env: OMP_NUM_THREADS: 16 @@ -163,7 +163,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.9"] + python-version: ["3.11"] runs-on: [self-hosted, llm, spr-perf] env: OMP_NUM_THREADS: 16 @@ -238,10 +238,10 @@ jobs: include: - os: windows platform: dp - python-version: "3.9" + python-version: "3.11" # - os: windows # platform: lp - # python-version: "3.9" + # python-version: "3.11" runs-on: [self-hosted, "${{ matrix.os }}", llm, perf-core, "${{ matrix.platform }}"] env: ANALYTICS_ZOO_ROOT: ${{ github.workspace }} @@ -309,7 +309,7 @@ jobs: matrix: include: - os: windows - python-version: "3.9" + python-version: "3.11" runs-on: [self-hosted, "${{ matrix.os }}", llm, perf-igpu] env: ANALYTICS_ZOO_ROOT: ${{ github.workspace }} @@ -380,7 +380,7 @@ jobs: - name: Create env for html generation shell: cmd run: | - call conda create -n html-gen python=3.9 -y + call conda create -n html-gen python=3.11 -y call conda activate html-gen pip install pandas==1.5.3 diff --git a/.github/workflows/llm_tests_for_stable_version_on_arc.yml b/.github/workflows/llm_tests_for_stable_version_on_arc.yml index 8522ad2d773..1b8c48d972d 100644 --- a/.github/workflows/llm_tests_for_stable_version_on_arc.yml +++ b/.github/workflows/llm_tests_for_stable_version_on_arc.yml @@ -30,7 +30,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.9"] + python-version: ["3.11"] runs-on: [self-hosted, llm, perf] env: OMP_NUM_THREADS: 16 @@ -154,7 +154,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.9"] + python-version: ["3.11"] runs-on: [self-hosted, llm, perf] env: OMP_NUM_THREADS: 16 diff --git a/.github/workflows/llm_tests_for_stable_version_on_spr.yml b/.github/workflows/llm_tests_for_stable_version_on_spr.yml index cedc1624ddd..d852499c57b 100644 --- a/.github/workflows/llm_tests_for_stable_version_on_spr.yml +++ b/.github/workflows/llm_tests_for_stable_version_on_spr.yml @@ -29,7 +29,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.9"] + python-version: ["3.11"] runs-on: [self-hosted, llm, spr01-perf] env: OMP_NUM_THREADS: 16 @@ -87,7 +87,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.9"] + python-version: ["3.11"] runs-on: [self-hosted, llm, spr01-perf] env: OMP_NUM_THREADS: 16 diff --git a/.github/workflows/llm_unit_tests.yml b/.github/workflows/llm_unit_tests.yml index f1b762d9bb4..239efae61f7 100644 --- a/.github/workflows/llm_unit_tests.yml +++ b/.github/workflows/llm_unit_tests.yml @@ -51,7 +51,7 @@ jobs: if [ ${{ github.event_name }} == 'schedule' ]; then python_version='["3.9", "3.10", "3.11"]' else - python_version='["3.9"]' + python_version='["3.11"]' fi list=$(echo ${python_version} | jq -c) echo "python-version=${list}" >> "$GITHUB_OUTPUT"