An open API service indexing awesome lists of open source software.

https://github.com/eljandoubi/triton-flash-attn


https://github.com/eljandoubi/triton-flash-attn

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        








Triton Flash Attention


![License](https://img.shields.io/github/license/eljandoubi/triton-flash-attn)
![Pylint](https://github.com/eljandoubi/triton-flash-attn/actions/workflows/Lint.yml/badge.svg)

| Python Version | Build Status |
|---------------|-------------|
| 3.8 | ![Python 3.8](https://github.com/eljandoubi/triton-flash-attn/actions/workflows/Build.yml/badge.svg?event=push&job=Build%20Python%203.8) |
| 3.9 | ![Python 3.9](https://github.com/eljandoubi/triton-flash-attn/actions/workflows/Build.yml/badge.svg?event=push&job=Build%20Python%203.9) |
| 3.10 | ![Python 3.10](https://github.com/eljandoubi/triton-flash-attn/actions/workflows/Build.yml/badge.svg?event=push&job=Build%20Python%203.10) |
| 3.11 | ![Python 3.11](https://github.com/eljandoubi/triton-flash-attn/actions/workflows/Build.yml/badge.svg?event=push&job=Build%20Python%203.11) |
| 3.12 | ![Python 3.12](https://github.com/eljandoubi/triton-flash-attn/actions/workflows/Build.yml/badge.svg?event=push&job=Build%20Python%203.12) |
| 3.13 | ![Python 3.13](https://github.com/eljandoubi/triton-flash-attn/actions/workflows/Build.yml/badge.svg?event=push&job=Build%20Python%203.13) |

Coding Flash Attention from scratch using triton and pytorch.

## Setup environment
* Clone the repository and Go to `triton-flash-attn` directory.
```bash
git clone https://github.com/eljandoubi/triton-flash-attn.git && cd triton-flash-attn
```

* Build environment.
```bash
make build
```

## Clean environment
```bash
make clean
```