Instructions to use replicate/vllm-flash-attn3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Kernels
How to use replicate/vllm-flash-attn3 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/vllm-flash-attn3", version=1) - Notebooks
- Google Colab
- Kaggle
File size: 317 Bytes
674fdd3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | from kernels.benchmarks import (
FlashAttentionBenchmark,
FlashAttentionCausalBenchmark,
FlashAttentionVarlenBenchmark,
)
class FlashAttn(FlashAttentionBenchmark):
pass
class FlashAttnCausal(FlashAttentionCausalBenchmark):
pass
class FlashAttnVarlen(FlashAttentionVarlenBenchmark):
pass
|