Instructions to use kernels-community/aiter-flash-attn with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Kernels
How to use kernels-community/aiter-flash-attn with Kernels:
# !pip install kernels from kernels import get_kernel kernel = get_kernel("kernels-community/aiter-flash-attn") - Notebooks
- Google Colab
- Kaggle
| 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") | |
| __kernel_metadata__ = kernel_module.__kernel_metadata__ | |
| __kernel_metadata__(...) | |
| ``` | |
| ## Available functions | |
| - `__kernel_metadata__` | |
| - `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` | |