Skip to content

Commit

Permalink
Remove build of conda binaries, as PyTorch no longer publishes on con…
Browse files Browse the repository at this point in the history
  • Loading branch information
danthe3rd authored and xFormers Bot committed Nov 20, 2024
1 parent a561291 commit 6e10bd2
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 398 deletions.
File renamed without changes.
155 changes: 0 additions & 155 deletions .github/workflows/conda.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/rocm_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- develop
pull_request:
paths:
- "packaging/compute_wheel_version.sh"
- ".github/compute_wheel_version.py"
- ".github/workflows/rocm_build.yml"
- ".github/workflows/wheels_build.yml"
- "setup.py"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: wheels
on:
pull_request:
paths:
- "packaging/compute_wheel_version.sh"
- ".github/compute_wheel_version.py"
- ".github/workflows/wheel*"
- ".github/actions/setup-build-cuda/action.yml"
- "setup.py"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/wheels_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:
run: |
set -Eeuo pipefail
git config --global --add safe.directory "*"
version=`python packaging/compute_wheel_version.py --source $VERSION_SOURCE`
version=`python .github/compute_wheel_version.py --source $VERSION_SOURCE`
echo $version > version.txt
echo "BUILD_VERSION=$version${{ steps.cuda_info.outputs.CUDA_VERSION_SUFFIX }}" >> ${GITHUB_ENV}
echo "BUILD_VERSION=$version${{ steps.cuda_info.outputs.CUDA_VERSION_SUFFIX }}" >> ${GITHUB_OUTPUT}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/wheels_upload_pip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
env:
VERSION_SOURCE: ${{ github.ref_type == 'tag' && 'tag' || 'dev' }}
run: |
version=`$PY packaging/compute_wheel_version.py --source $VERSION_SOURCE`
version=`$PY .github/compute_wheel_version.py --source $VERSION_SOURCE`
echo $version > version.txt
cat version.txt
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ 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] - TBD
### Removed:
- Following PyTorch, xFormers no longer builds binaries for conda. Pip is now the only recommended way to get xFormers

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

Expand Down
14 changes: 1 addition & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<img src="./docs/assets/logo.png" width=800>

![Install with conda](https://anaconda.org/xformers/xformers/badges/installer/conda.svg)
![Downloads](https://anaconda.org/xformers/xformers/badges/downloads.svg)
![License](https://anaconda.org/xformers/xformers/badges/license.svg)
[![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/facebookresearch/xformers/blob/main/docs/source/xformers_mingpt.ipynb)
<br/><!--
![PyPI](https://img.shields.io/pypi/v/xformers)
Expand All @@ -28,13 +25,6 @@ xFormers is:

## Installing xFormers

* **(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.1](https://pytorch.org/get-started/locally/)

```bash
Expand All @@ -51,8 +41,7 @@ pip3 install -U xformers --index-url https://download.pytorch.org/whl/rocm6.1
* **Development binaries**:

```bash
# Use either conda or pip, same requirements as for the stable version above
conda install xformers -c xformers/label/dev
# Same requirements as for the stable version above
pip install --pre -U xformers
```

Expand Down Expand Up @@ -108,7 +97,6 @@ python -m xformers.info
* the version of GCC that you're using matches the current NVCC capabilities
* the `TORCH_CUDA_ARCH_LIST` env variable is set to the architectures that you want to support. A suggested setup (slow to build but comprehensive) is `export TORCH_CUDA_ARCH_LIST="6.0;6.1;6.2;7.0;7.2;7.5;8.0;8.6"`
* If the build from source OOMs, it's possible to reduce the parallelism of ninja with `MAX_JOBS` (eg `MAX_JOBS=2`)
* If you encounter [`UnsatisfiableError`](https://github.com/facebookresearch/xformers/issues/390#issuecomment-1315020700) when installing with conda, make sure you have PyTorch installed in your conda environment, and that your setup (PyTorch version, cuda version, python version, OS) match [an existing binary for xFormers](https://anaconda.org/xformers/xformers/files)


### License
Expand Down
Loading

0 comments on commit 6e10bd2

Please sign in to comment.