Kernels:
Trusted publisher
Download benchmark.py from kernels-community/flash-attn3: direct link, hf CLI and curl.
- Browser
- Download file 317 Bytes
-
https://huggingface.co/kernels/kernels-community/flash-attn3/resolve/v2/benchmark.py
- Command line
-
hf download hf://kernels-community/flash-attn3@v2/benchmark.py
-
curl -L -o benchmark.py https://huggingface.co/kernels/kernels-community/flash-attn3/resolve/v2/benchmark.py
317 Bytes
| from kernels.benchmarks import ( | |
| FlashAttentionBenchmark, | |
| FlashAttentionCausalBenchmark, | |
| FlashAttentionVarlenBenchmark, | |
| ) | |
| class FlashAttn(FlashAttentionBenchmark): | |
| pass | |
| class FlashAttnCausal(FlashAttentionCausalBenchmark): | |
| pass | |
| class FlashAttnVarlen(FlashAttentionVarlenBenchmark): | |
| pass | |