From bfbd71d4abe7d7f1d1101e5066e1cb6672a228df Mon Sep 17 00:00:00 2001 From: danthe3rd Date: Tue, 31 Jan 2023 17:15:44 +0000 Subject: [PATCH] Release 0.0.16 - documentation & changelog ghstack-source-id: a2704500d66999bad40ed6583928585d54d5a065 Pull Request resolved: https://github.com/fairinternal/xformers/pull/450 __original_commit__ = fairinternal/xformers@b6269670453d8c1aaf2def083fb09b025f6d17d9 --- CHANGELOG.md | 2 +- README.md | 22 +++++++++++++++++----- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d2763446b0..e25540ad00 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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] diff --git a/README.md b/README.md index c5d12401f5..5b8aa486bf 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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)