Skip to content

Commit

Permalink
Release 0.0.16 - documentation & changelog
Browse files Browse the repository at this point in the history
ghstack-source-id: a2704500d66999bad40ed6583928585d54d5a065
Pull Request resolved: https://github.com/fairinternal/xformers/pull/450

__original_commit__ = fairinternal/xformers@b6269670453d8c1aaf2def083fb09b025f6d17d9
  • Loading branch information
danthe3rd authored and xFormers Bot committed Jan 31, 2023
1 parent ff5e961 commit bfbd71d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added dropout support to CUTLASS FlashAttention


## [0.0.16] - 2023-01-12
## [0.0.16] - 2023-01-31
### Fixed
- Updated triton dependency [facebookresearch/xformers#418]
- Stripe lineinfo from binaries, reducing the binary size [facebookresearch/xformers#549]
Expand Down
22 changes: 17 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,27 @@ xFormers is:

## Installing xFormers

* **(RECOMMENDED) Using binaries**: We provide binaries for Linux and recent PyTorch versions. After you have [installed pytorch in conda](https://pytorch.org/get-started/locally/), install xFormers with conda:
* **(RECOMMENDED, linux) Install latest stable with conda**: Requires [PyTorch 1.12.1 or 1.13.1 installed with conda](https://pytorch.org/get-started/locally/)

```bash
conda install xformers
```

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

```bash
pip install -U xformers
```

* **Development binaries**:

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

* **From source**: Alternatively, if no binaries are available (for instance for windows), you can also install from source:
* **Install from source**: If you want to use with another version of PyTorch for instance (including nightly-releases)

```bash
# (Optional) Makes the build much faster
Expand All @@ -44,10 +58,8 @@ pip install -v -U git+https://github.com/facebookresearch/xformers.git@main#egg=
# (this can take dozens of minutes)
```

* **pip wheels**: There is no updated package available on pip, please install from conda or from source


## Results
## Benchmarks

**Memory-efficient MHA**
![Benchmarks for ViTS](./docs/plots/mha/mha_vit.png)
Expand Down

0 comments on commit bfbd71d

Please sign in to comment.