Instructions to use replicate/flash-attn2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Kernels
How to use replicate/flash-attn2 with Kernels:
# !pip install kernels from kernels import get_kernel # a version (or an explicit revision) is required; see the "Files and versions" tab for the available ones kernel = get_kernel("replicate/flash-attn2", version=1) - Notebooks
- Google Colab
- Kaggle
Sync capabilities with upstream
Browse files- build.toml +2 -4
build.toml
CHANGED
|
@@ -6,12 +6,10 @@ src = ["torch-ext/torch_binding.cpp", "torch-ext/torch_binding.h"]
|
|
| 6 |
|
| 7 |
[kernel.flash_attn]
|
| 8 |
cuda-capabilities = [
|
| 9 |
-
# "7.0", "7.2", "7.5",
|
| 10 |
"8.0",
|
| 11 |
-
"8.6",
|
| 12 |
-
"8.7",
|
| 13 |
-
"8.9",
|
| 14 |
"9.0",
|
|
|
|
|
|
|
| 15 |
]
|
| 16 |
src = [
|
| 17 |
"flash_attn/flash_api.cpp",
|
|
|
|
| 6 |
|
| 7 |
[kernel.flash_attn]
|
| 8 |
cuda-capabilities = [
|
|
|
|
| 9 |
"8.0",
|
|
|
|
|
|
|
|
|
|
| 10 |
"9.0",
|
| 11 |
+
"10.0",
|
| 12 |
+
"12.0",
|
| 13 |
]
|
| 14 |
src = [
|
| 15 |
"flash_attn/flash_api.cpp",
|