From fcc8b4ce6b8538f5321f726e2ed2b401d75e7559 Mon Sep 17 00:00:00 2001 From: rusty1s Date: Fri, 30 May 2025 20:19:08 +0200 Subject: [PATCH 1/5] PyTorch 2.7 support --- .github/actions/setup/action.yml | 12 +--- .github/workflows/nightly.yml | 96 ++++++++++++++++++-------------- 2 files changed, 57 insertions(+), 51 deletions(-) diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index cf702ece2..5d0c9fd20 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -22,15 +22,9 @@ runs: - name: Free up disk space if: ${{ runner.os == 'Linux' }} - uses: jlumbroso/free-disk-space@v1.3.1 - with: - android: true - dotnet: true - haskell: true - large-packages: true - docker-images: true - swap-storage: true - tool-cache: true + run: | + sudo rm -rf /usr/share/dotnet + shell: bash - name: Set up Windows developer command prompt uses: ilammy/msvc-dev-cmd@v1 diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 513ce87ca..ea1580fb5 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -1,9 +1,14 @@ name: Nightly Wheels +# on: # yamllint disable-line rule:truthy +# workflow_dispatch: +# schedule: +# - cron: "0 4 * * *" # Everyday at 4:00am UTC/8:00pm PST on: # yamllint disable-line rule:truthy - workflow_dispatch: - schedule: - - cron: "0 4 * * *" # Everyday at 4:00am UTC/8:00pm PST + push: + branches: + - master + pull_request: jobs: @@ -14,12 +19,19 @@ jobs: max-parallel: 10 fail-fast: false matrix: - os: [ubuntu-22.04, macos-14, windows-2019] - python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] + # os: [ubuntu-22.04, macos-14, windows-2019] + # python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] + # # TODO: Uncomment this once we split the workflow to avoid GitHub Actions' 256 matrix configuration limit. + # # torch-version: [1.13.0, 2.0.0, 2.1.0, 2.2.0, 2.3.0, 2.4.0, 2.5.0, 2.6.0, 2.7.0] + # torch-version: [1.13.0, 2.3.0, 2.4.0, 2.5.0, 2.6.0, 2.7.0] + # cuda-version: ['cpu', 'cu117', 'cu118', 'cu121', 'cu124', 'cu126', 'cu128'] + os: [ubuntu-22.04] + python-version: ['3.9'] # TODO: Uncomment this once we split the workflow to avoid GitHub Actions' 256 matrix configuration limit. # torch-version: [1.13.0, 2.0.0, 2.1.0, 2.2.0, 2.3.0, 2.4.0, 2.5.0, 2.6.0, 2.7.0] - torch-version: [1.13.0, 2.3.0, 2.4.0, 2.5.0, 2.6.0, 2.7.0] - cuda-version: ['cpu', 'cu117', 'cu118', 'cu121', 'cu124', 'cu126', 'cu128'] + torch-version: [2.7.0] + cuda-version: ['cpu'] + exclude: - torch-version: 1.13.0 python-version: '3.13' @@ -177,38 +189,38 @@ jobs: cd .. shell: bash - - name: Configure AWS - uses: aws-actions/configure-aws-credentials@v4 - with: - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - aws-region: us-west-1 - - - name: Upload wheel - run: | - aws s3 sync dist s3://data.pyg.org/whl/nightly/torch-${{ matrix.torch-version }}+${{ matrix.cuda-version }} --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers - - boto3: - if: ${{ always() }} - needs: [wheel] - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: 3.9 - - - name: Install dependencies - run: | - pip install boto3 - - - name: Upload index - run: | - python ./.github/workflows/aws/upload_nightly_index.py - env: - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + # - name: Configure AWS + # uses: aws-actions/configure-aws-credentials@v4 + # with: + # aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + # aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + # aws-region: us-west-1 + + # - name: Upload wheel + # run: | + # aws s3 sync dist s3://data.pyg.org/whl/nightly/torch-${{ matrix.torch-version }}+${{ matrix.cuda-version }} --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers + + # boto3: + # if: ${{ always() }} + # needs: [wheel] + # runs-on: ubuntu-latest + + # steps: + # - name: Checkout repository + # uses: actions/checkout@v4 + + # - name: Set up Python + # uses: actions/setup-python@v5 + # with: + # python-version: 3.9 + + # - name: Install dependencies + # run: | + # pip install boto3 + + # - name: Upload index + # run: | + # python ./.github/workflows/aws/upload_nightly_index.py + # env: + # AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + # AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} From f083dc2ab8229ed93e59073470e8ad85310a3737 Mon Sep 17 00:00:00 2001 From: rusty1s Date: Fri, 30 May 2025 20:29:59 +0200 Subject: [PATCH 2/5] PyTorch 2.7 support --- .github/workflows/nightly.yml | 95 ++++++++++++++++------------------- 1 file changed, 42 insertions(+), 53 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index ea1580fb5..63f1d7992 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -1,14 +1,9 @@ name: Nightly Wheels -# on: # yamllint disable-line rule:truthy -# workflow_dispatch: -# schedule: -# - cron: "0 4 * * *" # Everyday at 4:00am UTC/8:00pm PST on: # yamllint disable-line rule:truthy - push: - branches: - - master - pull_request: + workflow_dispatch: + schedule: + - cron: "0 4 * * *" # Everyday at 4:00am UTC/8:00pm PST jobs: @@ -19,18 +14,12 @@ jobs: max-parallel: 10 fail-fast: false matrix: - # os: [ubuntu-22.04, macos-14, windows-2019] - # python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] - # # TODO: Uncomment this once we split the workflow to avoid GitHub Actions' 256 matrix configuration limit. - # # torch-version: [1.13.0, 2.0.0, 2.1.0, 2.2.0, 2.3.0, 2.4.0, 2.5.0, 2.6.0, 2.7.0] - # torch-version: [1.13.0, 2.3.0, 2.4.0, 2.5.0, 2.6.0, 2.7.0] - # cuda-version: ['cpu', 'cu117', 'cu118', 'cu121', 'cu124', 'cu126', 'cu128'] - os: [ubuntu-22.04] - python-version: ['3.9'] + os: [ubuntu-22.04, macos-14, windows-2019] + python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] # TODO: Uncomment this once we split the workflow to avoid GitHub Actions' 256 matrix configuration limit. # torch-version: [1.13.0, 2.0.0, 2.1.0, 2.2.0, 2.3.0, 2.4.0, 2.5.0, 2.6.0, 2.7.0] - torch-version: [2.7.0] - cuda-version: ['cpu'] + torch-version: [1.13.0, 2.3.0, 2.4.0, 2.5.0, 2.6.0, 2.7.0] + cuda-version: ['cpu', 'cu117', 'cu118', 'cu121', 'cu124', 'cu126', 'cu128'] exclude: - torch-version: 1.13.0 @@ -189,38 +178,38 @@ jobs: cd .. shell: bash - # - name: Configure AWS - # uses: aws-actions/configure-aws-credentials@v4 - # with: - # aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} - # aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - # aws-region: us-west-1 - - # - name: Upload wheel - # run: | - # aws s3 sync dist s3://data.pyg.org/whl/nightly/torch-${{ matrix.torch-version }}+${{ matrix.cuda-version }} --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers - - # boto3: - # if: ${{ always() }} - # needs: [wheel] - # runs-on: ubuntu-latest - - # steps: - # - name: Checkout repository - # uses: actions/checkout@v4 - - # - name: Set up Python - # uses: actions/setup-python@v5 - # with: - # python-version: 3.9 - - # - name: Install dependencies - # run: | - # pip install boto3 - - # - name: Upload index - # run: | - # python ./.github/workflows/aws/upload_nightly_index.py - # env: - # AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - # AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + - name: Configure AWS + uses: aws-actions/configure-aws-credentials@v4 + with: + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: us-west-1 + + - name: Upload wheel + run: | + aws s3 sync dist s3://data.pyg.org/whl/nightly/torch-${{ matrix.torch-version }}+${{ matrix.cuda-version }} --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers + + boto3: + if: ${{ always() }} + needs: [wheel] + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: 3.9 + + - name: Install dependencies + run: | + pip install boto3 + + - name: Upload index + run: | + python ./.github/workflows/aws/upload_nightly_index.py + env: + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} From 693d923a4b225a86fa0e342f1362e87344640b07 Mon Sep 17 00:00:00 2001 From: rusty1s Date: Fri, 30 May 2025 20:30:22 +0200 Subject: [PATCH 3/5] PyTorch 2.7 support --- .github/workflows/nightly.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 63f1d7992..513ce87ca 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -20,7 +20,6 @@ jobs: # torch-version: [1.13.0, 2.0.0, 2.1.0, 2.2.0, 2.3.0, 2.4.0, 2.5.0, 2.6.0, 2.7.0] torch-version: [1.13.0, 2.3.0, 2.4.0, 2.5.0, 2.6.0, 2.7.0] cuda-version: ['cpu', 'cu117', 'cu118', 'cu121', 'cu124', 'cu126', 'cu128'] - exclude: - torch-version: 1.13.0 python-version: '3.13' From fc40c2953319656d466787995ca6d7bc94cbc4a8 Mon Sep 17 00:00:00 2001 From: rusty1s Date: Fri, 30 May 2025 20:37:31 +0200 Subject: [PATCH 4/5] PyTorch 2.7 support --- .github/actions/setup/action.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 5d0c9fd20..139844cde 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -24,6 +24,8 @@ runs: if: ${{ runner.os == 'Linux' }} run: | sudo rm -rf /usr/share/dotnet + sudo rm -rf /usr/local/lib/android + sudo rm -rf /opt/hostedtoolcache/Android shell: bash - name: Set up Windows developer command prompt From 7575cb2463350978a7d7278f859160777796d975 Mon Sep 17 00:00:00 2001 From: rusty1s Date: Fri, 30 May 2025 20:40:26 +0200 Subject: [PATCH 5/5] PyTorch 2.7 support --- .github/workflows/building.yml | 4 ++-- .github/workflows/nightly.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/building.yml b/.github/workflows/building.yml index 34d6fc62d..416c7c5bf 100644 --- a/.github/workflows/building.yml +++ b/.github/workflows/building.yml @@ -10,7 +10,7 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-22.04, macos-14, windows-2019] + os: [ubuntu-22.04, macos-14, windows-2022] python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] # torch-version: [1.13.0, 2.0.0, 2.1.0, 2.2.0, 2.3.0, 2.4.0, 2.5.0, 2.6.0, 2.7.0] torch-version: [2.7.0] @@ -114,7 +114,7 @@ jobs: cuda-version: 'cu126' - os: macos-14 cuda-version: 'cu128' - - os: windows-2019 + - os: windows-2022 torch-version: 2.0.0 cuda-version: 'cu121' diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 513ce87ca..6b21b6152 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -14,7 +14,7 @@ jobs: max-parallel: 10 fail-fast: false matrix: - os: [ubuntu-22.04, macos-14, windows-2019] + os: [ubuntu-22.04, macos-14, windows-2022] python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] # TODO: Uncomment this once we split the workflow to avoid GitHub Actions' 256 matrix configuration limit. # torch-version: [1.13.0, 2.0.0, 2.1.0, 2.2.0, 2.3.0, 2.4.0, 2.5.0, 2.6.0, 2.7.0] @@ -119,7 +119,7 @@ jobs: cuda-version: 'cu126' - os: macos-14 cuda-version: 'cu128' - - os: windows-2019 + - os: windows-2022 torch-version: 2.0.0 cuda-version: 'cu121'