Kernels:
Trusted publisher
File size: 768 Bytes
e3d994e e39aace e3d994e e39aace e3d994e 5fec131 17807f1 e3d994e 17807f1 e3d994e e39aace 5e2e63d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | ---
library_name: kernels
license: mit
---
This is the repository card of kernels-community/aiter-flash-attn that has been pushed on the Hub. It was built to be used with the [`kernels` library](https://github.com/huggingface/kernels). This card was automatically generated.
## How to use
```python
# make sure `kernels` is installed: `pip install -U kernels`
from kernels import get_kernel
kernel_module = get_kernel("kernels-community/aiter-flash-attn", version=2)
flash_attn_func = kernel_module.flash_attn_func
flash_attn_func(...)
```
## Available functions
- `flash_attn_func`
- `flash_attn_varlen_func`
- `flash_attn_with_kvcache`
- `mha_set_impl`
- `mha_set_use_fused_bwd_kernel`
- `mha_set_use_int64_strides`
## Benchmarks
No benchmark available yet.
|