From b3831ea0806e85ac7e1c722ba39fb2a01acbe0fe Mon Sep 17 00:00:00 2001 From: Luca Wehrstedt Date: Thu, 25 Jul 2024 11:55:30 +0000 Subject: [PATCH] Build for PyTorch 2.4.0 This commit will be tagged as 0.0.27.post1, which will trigger CI jobs to build a new release which depends on the newly-released PyTorch 2.4.0. ghstack-source-id: 245678711af63632170c33b06eb6c717fb481f55 Pull Request resolved: https://github.com/fairinternal/xformers/pull/1162 __original_commit__ = fairinternal/xformers@3bd420f4f9a8089a066bbee81258da34c7b445c8 --- .github/workflows/conda.yml | 4 ++-- .github/workflows/wheels.yml | 8 ++++---- CHANGELOG.md | 3 +++ 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/conda.yml b/.github/workflows/conda.yml index cb2f17e116..8c90f6530c 100644 --- a/.github/workflows/conda.yml +++ b/.github/workflows/conda.yml @@ -33,13 +33,13 @@ jobs: - "3.9" - "3.10" config: - - torch_version: "2.3.1" + - torch_version: "2.4.0" torch_channel: "pytorch" cuda_version: "12.1.0" cuda_dep_runtime: ">=12.0,<13.0" cuda_short_version: "121" - - torch_version: "2.3.1" + - torch_version: "2.4.0" torch_channel: "pytorch" cuda_version: "11.8.0" cuda_dep_runtime: ">=11.7,<11.9" diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 0a4858ee54..8f9ffa6768 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -35,7 +35,7 @@ jobs: include = [] for os in ['8-core-ubuntu', 'windows-8-core']: for python in PY_VERSIONS: - for torch_version in ['2.3.1']: + for torch_version in ['2.4.0']: for cuda_short_version in ["118", "121"]: include.append(dict( os=os, @@ -67,7 +67,7 @@ jobs: uses: ./.github/workflows/wheels_upload_pip.yml with: twine_username: __token__ - filter: "*torch2.3.1+cu121*" + filter: "*torch2.4.0+cu121*" execute: ${{ github.repository == 'facebookresearch/xformers' && github.event_name != 'pull_request' }} secrets: twine_password: ${{ secrets.PYPI_TOKEN }} @@ -79,7 +79,7 @@ jobs: aws_role: "arn:aws:iam::749337293305:role/pytorch_bot_uploader_role" s3_path: s3://pytorch/whl/cu118/ aws_s3_cp_extra_args: --acl public-read - filter: "*torch2.3.1+cu118*" + filter: "*torch2.4.0+cu118*" execute: ${{ github.repository == 'facebookresearch/xformers' && github.ref_type == 'tag' }} upload_pt_cu121: @@ -89,6 +89,6 @@ jobs: aws_role: "arn:aws:iam::749337293305:role/pytorch_bot_uploader_role" s3_path: s3://pytorch/whl/cu121/ aws_s3_cp_extra_args: --acl public-read - filter: "*torch2.3.1+cu121*" + filter: "*torch2.4.0+cu121*" execute: ${{ github.repository == 'facebookresearch/xformers' && github.ref_type == 'tag' }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f7c2708e7..927985bd5c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Improved ### Removed +## [0.0.27.post1] - 2024-07-25 +Pre-built binary wheels require PyTorch 2.4.0 + ## [0.0.27] - 2024-07-10 Pre-built binary wheels require PyTorch 2.3.1 ### Added