Skip to content

Commit eb0946a

Browse files
danthe3rdxFormers Bot
authored andcommitted
Build for PyTorch 2.7.1
ghstack-source-id: 687672fe86b9b7db141537adc27658fa9bb245e7 Pull-Request: fairinternal/xformers#1399 __original_commit__ = fairinternal/xformers@96f264c
1 parent 5e72005 commit eb0946a

File tree

5 files changed

+15
-8
lines changed

5 files changed

+15
-8
lines changed

.github/workflows/rocm_build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
matrix:
2323
os: ['ubuntu-alola']
2424
python: ['3.11']
25-
torch_version: ['2.7.0']
25+
torch_version: ['2.7.1']
2626
toolkit_type: ['rocm']
2727
toolkit_short_version: ['6.2.4', '6.3']
2828

.github/workflows/wheels.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
3939
include = []
4040
for os in ['8-core-ubuntu', 'windows-8-core']:
41-
for torch_version in ['2.7.0']:
41+
for torch_version in ['2.7.1']:
4242
# CUDA builds
4343
for cuda_short_version in CU_VERSIONS:
4444
if cuda_short_version < "124" and "windows" in os:
@@ -88,7 +88,7 @@ jobs:
8888
uses: ./.github/workflows/wheels_upload_pip.yml
8989
with:
9090
twine_username: __token__
91-
filter: "*torch2.7.0+cu126*"
91+
filter: "*torch2.7.1+cu126*"
9292
execute: ${{ github.repository == 'facebookresearch/xformers' && github.event_name != 'pull_request' }}
9393
secrets:
9494
twine_password: ${{ secrets.PYPI_TOKEN }}
@@ -109,5 +109,5 @@ jobs:
109109
aws_role: "arn:aws:iam::749337293305:role/pytorch_bot_uploader_role"
110110
s3_path: s3://pytorch/whl/${{ matrix.suffix }}/
111111
aws_s3_cp_extra_args: --acl public-read
112-
filter: "*torch2.7.0+${{ matrix.suffix }}*"
112+
filter: "*torch2.7.1+${{ matrix.suffix }}*"
113113
execute: ${{ github.repository == 'facebookresearch/xformers' && github.ref_type == 'tag' }}

.github/workflows/win-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
7474
- name: Install build dependencies
7575
run: |
76-
$PY -m pip install wheel setuptools ninja torch==2.7.0 -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cu126
76+
$PY -m pip install wheel setuptools ninja torch==2.7.1 -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cu126
7777
git config --global --add safe.directory "*"
7878
$PY -c "import torch; print('torch', torch.__version__)"
7979
$PY -c "import torch; print('torch.cuda', torch.version.cuda)"

CHANGELOG.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,17 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7-
## [0.0.31] - 2025-??-??
7+
## [0.0.32] - 2025-??-??
8+
9+
## [0.0.31] - 2025-06-25
10+
Pre-built binary wheels are available for PyTorch 2.7.1.
11+
### Added
12+
- xFormers wheels are now python-version agnostic: this means that the same wheel can be used for python 3.9, 3.10, ... 3.13
13+
- Added support for Flash-Attention 3 on Ampere GPUs
814
### Removed
915
- We will no longer support V100 or older GPUs, following PyTorch (pytorch/pytorch#147607)
10-
- Removed support for building Flash-Attention 2 as part of xFormers. For Ampere GPUs, we now use Flash-Attention 3. On Linux, Flash-Attention 2 can still be used through PyTorch.
16+
- Deprecated support for building Flash-Attention 2 as part of xFormers. For Ampere GPUs, we now use Flash-Attention 3 on windows, and Flash-Attention 2 can still be used through PyTorch on linux.
17+
1118
## [0.0.30] - 2025-04-28
1219
Pre-built binary wheels are available for PyTorch 2.7.0. Following PyTorch, we build wheels for CUDA 11.8, 12.6, and 12.8 only (we no longer build for CUDA 12.4).
1320
xFormers now requires PyTorch >= 2.7

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.31
1+
0.0.32

0 commit comments

Comments
 (0)