Skip to content

Commit

Permalink
Setup: bump python & torch version (#1098)
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe5 authored Nov 26, 2024
1 parent abf4a40 commit ac0b5f5
Show file tree
Hide file tree
Showing 20 changed files with 60 additions and 137 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/develop_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,11 @@ jobs:


matrix:
python_version: ['3.8', '3.9']
pytorch_version: ['1.9.1', '1.10.1', '1.11.0', '1.12.1', '1.13.0', '2.0.1', '2.1.0']
python_version: ['3.9', '3.10']
pytorch_version: ['1.11.0', '1.12.1', '1.13.0', '2.0.1', '2.1.0', '2.2.2', '2.3.1']
platform: ['windows-latest', 'ubuntu-latest', 'macos-latest']


exclude:
- pytorch_version: '1.9.1'
platform: 'macos-latest'



if: ${{ !github.event.pull_request.draft }}
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/end_to_end.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,12 @@ jobs:


matrix:
python_version: ['3.8', '3.9']
pytorch_version: ['1.9.1', '1.10.1', '1.11.0', '1.12.1', '1.13.0', '2.0.1', '2.1.0']
python_version: ['3.9', '3.10']
pytorch_version: ['1.11.0', '1.12.1', '1.13.0', '2.0.1', '2.1.0', '2.2.2', '2.3.1']
platform: ['windows-latest', 'ubuntu-latest', 'macos-latest']


exclude:
- pytorch_version: '1.9.1'
platform: 'macos-latest'

- platform: 'windows-latest'


Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/examples_llm_pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,12 @@ jobs:


matrix:
python_version: ['3.8', '3.9']
python_version: ['3.9', '3.10']
pytorch_version: ['2.2.2', '2.3.1', '2.4.0']
platform: ['windows-latest', 'ubuntu-latest', 'macos-latest']
jit_status: ['jit_disabled', 'jit_enabled']


exclude:
- pytorch_version: '1.9.1'
platform: 'macos-latest'

- pytorch_version: '1.9.1'
jit_status: 'jit_enabled'



if: ${{ !github.event.pull_request.draft }}
Expand Down
11 changes: 2 additions & 9 deletions .github/workflows/examples_pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,12 @@ jobs:


matrix:
python_version: ['3.8', '3.9']
pytorch_version: ['1.9.1', '1.10.1', '1.11.0', '1.12.1', '1.13.0', '2.0.1', '2.1.0']
python_version: ['3.9', '3.10']
pytorch_version: ['1.11.0', '1.12.1', '1.13.0', '2.0.1', '2.1.0', '2.2.2', '2.3.1']
platform: ['windows-latest', 'ubuntu-latest', 'macos-latest']
jit_status: ['jit_disabled', 'jit_enabled']


exclude:
- pytorch_version: '1.9.1'
platform: 'macos-latest'

- pytorch_version: '1.9.1'
jit_status: 'jit_enabled'



if: ${{ !github.event.pull_request.draft }}
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/finn_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,11 @@ jobs:


matrix:
python_version: ['3.8', '3.9']
pytorch_version: ['1.9.1', '1.10.1', '1.11.0', '1.12.1', '1.13.0', '2.0.1', '2.1.0']
python_version: ['3.9', '3.10']
pytorch_version: ['1.11.0', '1.12.1', '1.13.0', '2.0.1', '2.1.0', '2.2.2', '2.3.1']
platform: ['windows-latest', 'ubuntu-latest']


exclude:
- pytorch_version: '1.9.1'
platform: 'macos-latest'



if: ${{ !github.event.pull_request.draft }}
Expand Down
26 changes: 16 additions & 10 deletions .github/workflows/gen_github_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@
from utils import combine_od_list
from utils import generate_exclusion_list

TORCHVISION_VERSION_DICT = {
'1.11.0': '0.12.0',
'1.12.1': '0.13.1',
'1.13.0': '0.14.0',
'2.0.1': '0.15.2',
'2.1.0': '0.16.0',
'2.2.2': '0.17.2',
'2.3.1': '0.18.1',
'2.4.0': '0.19.0'}

BASE_YML_TEMPLATE = 'base.yml.template'
BASE_YML_REDUCED_TEMPLATE = 'base_reduced.yml.template'
PYTEST_YML = 'pytest.yml'
Expand All @@ -16,9 +26,9 @@
ENDTOEND_YML = 'end_to_end.yml'

# Reduced Test for PRs, except when a review is requested
PYTHON_VERSIONS_REDUCED = ('3.8',)
PYTHON_VERSIONS_REDUCED = ('3.9',)

PYTORCH_LIST_REDUCED = ["1.9.1", "1.13.0", "2.1.0"]
PYTORCH_LIST_REDUCED = ["1.11.0", "2.0.1", "2.3.1"]

PLATFORM_LIST_REDUCED = ['ubuntu-latest']

Expand All @@ -38,9 +48,9 @@
'jit_disabled',])])

# Data shared betwen Nox sessions and Github Actions, formatted as tuples
PYTHON_VERSIONS = ('3.8', '3.9')
PYTHON_VERSIONS = ('3.9', '3.10')

PYTORCH_VERSIONS = ('1.9.1', '1.10.1', '1.11.0', '1.12.1', '1.13.0', '2.0.1', '2.1.0')
PYTORCH_VERSIONS = ('1.11.0', '1.12.1', '1.13.0', '2.0.1', '2.1.0', '2.2.2', '2.3.1')
JIT_STATUSES = ('jit_disabled', 'jit_enabled')

# Data used only by Github Actions, formatted as lists or lists of ordered dicts
Expand All @@ -49,13 +59,9 @@

STRATEGY = od([('fail-fast', 'false')])

EXCLUDE_LIST = generate_exclusion_list([[
['pytorch_version', ['1.9.1']],
['platform', ['macos-latest']],]])
EXCLUDE_LIST = []

JIT_EXCLUDE_LIST = generate_exclusion_list([[['pytorch_version', ['1.9.1']],
['jit_status', [
'jit_enabled',]]]])
JIT_EXCLUDE_LIST = []

NOTEBOOK_EXCLUDE_LIST = generate_exclusion_list([[['platform', [
'macos-latest',]]]])
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/notebook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,12 @@ jobs:


matrix:
python_version: ['3.8', '3.9']
pytorch_version: ['1.9.1', '1.10.1', '1.11.0', '1.12.1', '1.13.0', '2.0.1', '2.1.0']
python_version: ['3.9', '3.10']
pytorch_version: ['1.11.0', '1.12.1', '1.13.0', '2.0.1', '2.1.0', '2.2.2', '2.3.1']
platform: ['windows-latest', 'ubuntu-latest', 'macos-latest']


exclude:
- pytorch_version: '1.9.1'
platform: 'macos-latest'

- platform: 'macos-latest'


Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/ort_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,11 @@ jobs:


matrix:
python_version: ['3.8', '3.9']
pytorch_version: ['1.9.1', '1.10.1', '1.11.0', '1.12.1', '1.13.0', '2.0.1', '2.1.0']
python_version: ['3.9', '3.10']
pytorch_version: ['1.11.0', '1.12.1', '1.13.0', '2.0.1', '2.1.0', '2.2.2', '2.3.1']
platform: ['windows-latest', 'ubuntu-latest', 'macos-latest']


exclude:
- pytorch_version: '1.9.1'
platform: 'macos-latest'



if: ${{ !github.event.pull_request.draft }}
Expand Down
11 changes: 2 additions & 9 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,12 @@ jobs:


matrix:
python_version: ['3.8', '3.9']
pytorch_version: ['1.9.1', '1.10.1', '1.11.0', '1.12.1', '1.13.0', '2.0.1', '2.1.0']
python_version: ['3.9', '3.10']
pytorch_version: ['1.11.0', '1.12.1', '1.13.0', '2.0.1', '2.1.0', '2.2.2', '2.3.1']
platform: ['windows-latest', 'ubuntu-latest', 'macos-latest']
jit_status: ['jit_disabled', 'jit_enabled']


exclude:
- pytorch_version: '1.9.1'
platform: 'macos-latest'

- pytorch_version: '1.9.1'
jit_status: 'jit_enabled'



if: ${{ !github.event.pull_request.draft }}
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/reduced_develop_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,11 @@ jobs:


matrix:
python_version: ['3.8']
pytorch_version: ['1.9.1', '1.13.0', '2.1.0']
python_version: ['3.9']
pytorch_version: ['1.11.0', '2.0.1', '2.3.1']
platform: ['ubuntu-latest']


exclude:
- pytorch_version: '1.9.1'
platform: 'macos-latest'



if: ${{ !github.event.pull_request.draft }}
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/reduced_end_to_end.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,12 @@ jobs:


matrix:
python_version: ['3.8']
pytorch_version: ['1.9.1', '1.13.0', '2.1.0']
python_version: ['3.9']
pytorch_version: ['1.11.0', '2.0.1', '2.3.1']
platform: ['ubuntu-latest']


exclude:
- pytorch_version: '1.9.1'
platform: 'macos-latest'

- platform: 'windows-latest'


Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/reduced_examples_llm_pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,12 @@ jobs:


matrix:
python_version: ['3.8']
python_version: ['3.9']
pytorch_version: ['2.4.0']
platform: ['ubuntu-latest']
jit_status: ['jit_disabled']


exclude:
- pytorch_version: '1.9.1'
platform: 'macos-latest'



if: ${{ !github.event.pull_request.draft }}
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/reduced_examples_pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,12 @@ jobs:


matrix:
python_version: ['3.8']
pytorch_version: ['1.9.1', '1.13.0', '2.1.0']
python_version: ['3.9']
pytorch_version: ['1.11.0', '2.0.1', '2.3.1']
platform: ['ubuntu-latest']
jit_status: ['jit_disabled']


exclude:
- pytorch_version: '1.9.1'
platform: 'macos-latest'



if: ${{ !github.event.pull_request.draft }}
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/reduced_finn_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,11 @@ jobs:


matrix:
python_version: ['3.8']
pytorch_version: ['1.9.1', '1.13.0', '2.1.0']
python_version: ['3.9']
pytorch_version: ['1.11.0', '2.0.1', '2.3.1']
platform: ['ubuntu-latest']


exclude:
- pytorch_version: '1.9.1'
platform: 'macos-latest'



if: ${{ !github.event.pull_request.draft }}
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/reduced_notebook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,12 @@ jobs:


matrix:
python_version: ['3.8']
pytorch_version: ['1.9.1', '1.13.0', '2.1.0']
python_version: ['3.9']
pytorch_version: ['1.11.0', '2.0.1', '2.3.1']
platform: ['ubuntu-latest']


exclude:
- pytorch_version: '1.9.1'
platform: 'macos-latest'

- platform: 'macos-latest'


Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/reduced_ort_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,11 @@ jobs:


matrix:
python_version: ['3.8']
pytorch_version: ['1.9.1', '1.13.0', '2.1.0']
python_version: ['3.9']
pytorch_version: ['1.11.0', '2.0.1', '2.3.1']
platform: ['ubuntu-latest']


exclude:
- pytorch_version: '1.9.1'
platform: 'macos-latest'



if: ${{ !github.event.pull_request.draft }}
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/reduced_pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,12 @@ jobs:


matrix:
python_version: ['3.8']
pytorch_version: ['1.9.1', '1.13.0', '2.1.0']
python_version: ['3.9']
pytorch_version: ['1.11.0', '2.0.1', '2.3.1']
platform: ['ubuntu-latest']
jit_status: ['jit_disabled']


exclude:
- pytorch_version: '1.9.1'
platform: 'macos-latest'



if: ${{ !github.event.pull_request.draft }}
Expand Down
Loading

0 comments on commit ac0b5f5

Please sign in to comment.