What problem does it solve?
This Skill provides a robust framework for accurately measuring the performance of FlashInfer's GPU kernels, enabling detailed performance analysis and comparison across different backends.
Core Features & Use Cases
- Accurate Timing: Utilizes CUPTI for precise GPU kernel execution times, falling back to CUDA events.
- Backend Comparison: Easily compare performance across multiple backends like FlashAttention-2/3, cuDNN, CUTLASS, and TensorRT-LLM.
- Reproducible Results: Generates CSV reports with detailed metrics and commands to reproduce benchmarks.
- Use Case: A researcher wants to determine the fastest attention kernel for their specific hardware and workload. They can use this Skill to run benchmarks for various attention routines with different configurations and backends, then analyze the results to select the optimal kernel.
Quick Start
Run a benchmark for the BatchDecodeWithPagedKVCacheWrapper routine using FlashAttention-2 and cuDNN backends with specified batch and sequence lengths.