Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Promote wheels as alternative to pip install flash-attn #1297

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ export PYTHONPATH=$PWD
pytest -q -s test_flash_attn.py
```



## Installation and features
**Requirements:**
- CUDA toolkit or ROCm toolkit
Expand All @@ -78,6 +76,12 @@ compiling can take a very long time (2h) since it does not use multiple CPU
cores. With `ninja` compiling takes 3-5 minutes on a 64-core machine using CUDA toolkit.

**To install:**

> [!CAUTION]
> Installing via `pip install flash-attn` can take a _long_ time - potentially multiple hours. For faster installation options consider downloading a wheel file from [our releases page](https://github.com/Dao-AILab/flash-attention/releases) and running `pip install flash_attn_....whl` instead.
If using `pip install` to compile the package:

```sh
pip install flash-attn --no-build-isolation
```
Expand Down