Skip to content

Commit

Permalink
Build for PyTorch 2.5.1 (fairinternal/xformers#1248)
Browse files Browse the repository at this point in the history
This commit will be tagged as 0.0.28.post3, which will trigger CI jobs to build a new release which depends on
the newly-released PyTorch 2.5.1.

__original_commit__ = fairinternal/xformers@76e48ce
  • Loading branch information
lw authored and xFormers Bot committed Oct 30, 2024
1 parent 8792aa6 commit f3bc7a7
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ jobs:
- "3.10"
- "3.11"
config:
- torch_version: "2.5.0"
- torch_version: "2.5.1"
torch_channel: "pytorch"
cuda_version: "12.1.0"
cuda_dep_runtime: ">=12.0,<13.0"
cuda_short_version: "121"

- torch_version: "2.5.0"
- torch_version: "2.5.1"
torch_channel: "pytorch"
cuda_version: "11.8.0"
cuda_dep_runtime: ">=11.7,<11.9"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rocm_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
matrix:
os: ['ubuntu-alola']
python: ['3.11']
torch_version: ['2.5.0']
torch_version: ['2.5.1']
toolkit_type: ['rocm']
toolkit_short_version: ['6.0', '6.1']

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
include = []
for os in ['8-core-ubuntu', 'windows-8-core']:
for torch_version in ['2.5.0']:
for torch_version in ['2.5.1']:
# CUDA builds
for python, cuda_short_version in PY_CU:
if cuda_short_version != "124" and "windows" in os:
Expand Down Expand Up @@ -96,7 +96,7 @@ jobs:
uses: ./.github/workflows/wheels_upload_pip.yml
with:
twine_username: __token__
filter: "*torch2.5.0+cu121*"
filter: "*torch2.5.1+cu121*"
execute: ${{ github.repository == 'facebookresearch/xformers' && github.event_name != 'pull_request' }}
secrets:
twine_password: ${{ secrets.PYPI_TOKEN }}
Expand All @@ -116,6 +116,6 @@ jobs:
aws_role: "arn:aws:iam::749337293305:role/pytorch_bot_uploader_role"
s3_path: s3://pytorch/whl/${{ matrix.suffix }}/
aws_s3_cp_extra_args: --acl public-read
filter: "*torch2.5.0+${{ matrix.suffix }}*"
filter: "*torch2.5.1+${{ matrix.suffix }}*"
execute: ${{ github.repository == 'facebookresearch/xformers' && github.ref_type == 'tag' }}

2 changes: 1 addition & 1 deletion .github/workflows/win-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:

- name: Install build dependencies
run: |
$PY -m pip install wheel setuptools ninja torch==2.5.0 -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cu121
$PY -m pip install wheel setuptools ninja torch==2.5.1 -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cu121
git config --global --add safe.directory "*"
$PY -c "import torch; print('torch', torch.__version__)"
$PY -c "import torch; print('torch.cuda', torch.version.cuda)"
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.0.28.post3] - 2024-10-30
Pre-built binary wheels require PyTorch 2.5.1

## [0.0.28.post2] - 2024-10-18
Pre-built binary wheels require PyTorch 2.5.0

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ xFormers is:

## Installing xFormers

* **(RECOMMENDED, linux) Install latest stable with conda**: Requires [PyTorch 2.5.0 installed with conda](https://pytorch.org/get-started/locally/)
* **(RECOMMENDED, linux) Install latest stable with conda**: Requires [PyTorch 2.5.1 installed with conda](https://pytorch.org/get-started/locally/)

```bash
# (python 3.10/3.11 only)
conda install xformers -c xformers
```

* **(RECOMMENDED, linux & win) Install latest stable with pip**: Requires [PyTorch 2.5.0](https://pytorch.org/get-started/locally/)
* **(RECOMMENDED, linux & win) Install latest stable with pip**: Requires [PyTorch 2.5.1](https://pytorch.org/get-started/locally/)

```bash
# [linux only] cuda 11.8 version
Expand Down

0 comments on commit f3bc7a7

Please sign in to comment.