Skip to content

Commit c909f0d

Browse files
danthe3rdxFormers Bot
authored andcommitted
Build binaries for PyTorch 2.4.1
ghstack-source-id: 872cd3e Pull Request resolved: fairinternal/xformers#1220 __original_commit__ = fairinternal/xformers@79d0b02
1 parent 5d7aeb9 commit c909f0d

File tree

7 files changed

+26
-16
lines changed

7 files changed

+26
-16
lines changed

.github/actions/setup-build-cuda/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ runs:
2323
import sys
2424
print(sys.version)
2525
cushort = "${{ inputs.toolkit_short_version }}"
26-
TORCH_CUDA_DEFAULT = "121" # pytorch 2.4.0
26+
TORCH_CUDA_DEFAULT = "121" # pytorch 2.4.1
2727
# https://github.com/Jimver/cuda-toolkit/blob/master/src/links/linux-links.ts
2828
full_version, install_script = {
2929
"124": ("12.4.1", "https://developer.download.nvidia.com/compute/cuda/12.4.1/local_installers/cuda_12.4.1_550.54.15_linux.run"),

.github/workflows/conda.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,16 @@ jobs:
3030
fail-fast: false
3131
matrix:
3232
python:
33-
- "3.9"
3433
- "3.10"
34+
- "3.11"
3535
config:
36-
- torch_version: "2.4.0"
36+
- torch_version: "2.4.1"
3737
torch_channel: "pytorch"
3838
cuda_version: "12.1.0"
3939
cuda_dep_runtime: ">=12.0,<13.0"
4040
cuda_short_version: "121"
4141

42-
- torch_version: "2.4.0"
42+
- torch_version: "2.4.1"
4343
torch_channel: "pytorch"
4444
cuda_version: "11.8.0"
4545
cuda_dep_runtime: ">=11.7,<11.9"

.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.4.0']
25+
torch_version: ['2.4.1']
2626
toolkit_type: ['rocm']
2727
toolkit_short_version: ['6.0', '6.1']
2828

.github/workflows/wheels.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
4545
include = []
4646
for os in ['8-core-ubuntu', 'windows-8-core']:
47-
for torch_version in ['2.4.0']:
47+
for torch_version in ['2.4.1']:
4848
# CUDA builds
4949
for python, cuda_short_version in PY_CU:
5050
if cuda_short_version != "124" and "windows" in os:
@@ -94,7 +94,7 @@ jobs:
9494
uses: ./.github/workflows/wheels_upload_pip.yml
9595
with:
9696
twine_username: __token__
97-
filter: "*torch2.4.0+cu121*"
97+
filter: "*torch2.4.1+cu121*"
9898
execute: ${{ github.repository == 'facebookresearch/xformers' && github.event_name != 'pull_request' }}
9999
secrets:
100100
twine_password: ${{ secrets.PYPI_TOKEN }}
@@ -106,7 +106,7 @@ jobs:
106106
aws_role: "arn:aws:iam::749337293305:role/pytorch_bot_uploader_role"
107107
s3_path: s3://pytorch/whl/cu118/
108108
aws_s3_cp_extra_args: --acl public-read
109-
filter: "*torch2.4.0+cu118*"
109+
filter: "*torch2.4.1+cu118*"
110110
execute: ${{ github.repository == 'facebookresearch/xformers' && github.ref_type == 'tag' }}
111111

112112
upload_pt_cu121:
@@ -116,7 +116,7 @@ jobs:
116116
aws_role: "arn:aws:iam::749337293305:role/pytorch_bot_uploader_role"
117117
s3_path: s3://pytorch/whl/cu121/
118118
aws_s3_cp_extra_args: --acl public-read
119-
filter: "*torch2.4.0+cu121*"
119+
filter: "*torch2.4.1+cu121*"
120120
execute: ${{ github.repository == 'facebookresearch/xformers' && github.ref_type == 'tag' }}
121121

122122
# upload_pt_rocm6_0:
@@ -126,7 +126,7 @@ jobs:
126126
# aws_role: "arn:aws:iam::749337293305:role/pytorch_bot_uploader_role"
127127
# s3_path: s3://pytorch/whl/rocm6.0/
128128
# aws_s3_cp_extra_args: --acl public-read
129-
# filter: "*torch2.4.0+rocm6.0*"
129+
# filter: "*torch2.4.1+rocm6.0*"
130130
# execute: ${{ github.repository == 'facebookresearch/xformers' && github.ref_type == 'tag' }}
131131

132132
upload_pt_rocm6_1:
@@ -136,6 +136,6 @@ jobs:
136136
aws_role: "arn:aws:iam::749337293305:role/pytorch_bot_uploader_role"
137137
s3_path: s3://pytorch/whl/rocm6.1/
138138
aws_s3_cp_extra_args: --acl public-read
139-
filter: "*torch2.4.0+rocm6.1*"
139+
filter: "*torch2.4.1+rocm6.1*"
140140
execute: ${{ github.repository == 'facebookresearch/xformers' && github.ref_type == 'tag' }}
141141

.github/workflows/win-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252

5353
- name: Install build dependencies
5454
run: |
55-
$PY -m pip install wheel setuptools ninja torch==2.4.0 -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cu121
55+
$PY -m pip install wheel setuptools ninja torch==2.4.1 -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cu121
5656
git config --global --add safe.directory "*"
5757
$PY -c "import torch; print('torch', torch.__version__)"
5858
$PY -c "import torch; print('torch.cuda', torch.version.cuda)"

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ 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

77
## [0.0.28] - TBD
8+
Pre-built binary wheels require PyTorch 2.4.1
89
### Added
910
- Added wheels for cuda 12.4
11+
- Added conda builds for python 3.11
12+
- Added wheels for rocm 6.1
1013
### Improved
1114
- Profiler: Fix computation of FLOPS for the attention when using xFormers
1215
- Profiler: Fix MFU/HFU calculation when multiple dtypes are used
@@ -18,6 +21,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1821
- fMHA: Removed `decoder` and `small_k` backends
1922
- profiler: Removed `DetectSlowOpsProfiler` profiler
2023
- Removed compatibility with PyTorch < 2.4
24+
- Removed conda builds for python 3.11
25+
- Removed windows pip wheels for cuda 12.1 and 11.8
2126

2227
## [0.0.27.post2] - 2024-07-26
2328
Pre-built binary wheels require PyTorch 2.4.0

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,24 @@ xFormers is:
2828

2929
## Installing xFormers
3030

31-
* **(RECOMMENDED, linux) Install latest stable with conda**: Requires [PyTorch 2.4.0 installed with conda](https://pytorch.org/get-started/locally/)
31+
* **(RECOMMENDED, linux) Install latest stable with conda**: Requires [PyTorch 2.4.1 installed with conda](https://pytorch.org/get-started/locally/)
3232

3333
```bash
34+
# (python 3.10/3.11 only)
3435
conda install xformers -c xformers
3536
```
3637

37-
* **(RECOMMENDED, linux & win) Install latest stable with pip**: Requires [PyTorch 2.4.0](https://pytorch.org/get-started/locally/)
38+
* **(RECOMMENDED, linux & win) Install latest stable with pip**: Requires [PyTorch 2.4.1](https://pytorch.org/get-started/locally/)
3839

3940
```bash
40-
# cuda 11.8 version
41+
# [linux only] cuda 11.8 version
4142
pip3 install -U xformers --index-url https://download.pytorch.org/whl/cu118
42-
# cuda 12.1 version
43+
# [linux only] cuda 12.1 version
4344
pip3 install -U xformers --index-url https://download.pytorch.org/whl/cu121
45+
# [linux & win] cuda 12.4 version
46+
pip3 install -U xformers --index-url https://download.pytorch.org/whl/cu124
47+
# [linux only] (EXPERIMENTAL) rocm 6.1 version
48+
pip3 install -U xformers --index-url https://download.pytorch.org/whl/rocm6.1
4449
```
4550

4651
* **Development binaries**:

0 commit comments

Comments
 (0)