FlashInfer-cubin provides pre-compiled kernel binaries for FlashInfer, supporting a wide range of GPU architectures. This optional package for `flashinfer-python` eliminates JIT compilation and downloading overhead at runtime, leading to faster initialization and enabling offline usage. The FlashInfer project focuses on delivering high-performance LLM GPU kernels for serving and inference, maintaining an active development cycle with frequent nightly builds and regular patch releases.
pip install flashinfer-python flashinfer-cubinVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates the usage of the core `flashinfer` library for a single-request decode attention operation. When `flashinfer-cubin` is installed, it transparently provides pre-compiled CUDA kernels to `flashinfer-python`, significantly speeding up operations like this by avoiding runtime compilation overhead.
Always check the official FlashInfer documentation for supported PyTorch and CUDA versions. Use `flashinfer show-config` to verify your environment post-installation. It is recommended to install `flashinfer-python` and `flashinfer-cubin` together from PyPI to ensure compatible versions.
For air-gapped or restricted environments, consider using `flashinfer-jit-cache` (if available for your specific CUDA version) or pre-downloading kernels if `flashinfer-cubin` is insufficient. Monitor GitHub issues for updates on comprehensive cubin inclusion or use FlashInfer's source build for full control over compilation.
If deploying in environments where `FLASHINFER_CUBIN_DIR` is critical, verify its behavior. It may be necessary to either prevent `flashinfer-cubin` from being installed by pip and manage cubins manually, or use `flashinfer-jit-cache` with a specified index URL for specific CUDA versions.
Consult the FlashInfer documentation for a detailed breakdown of feature support per GPU architecture. Test critical workloads on your target hardware to ensure expected performance and functionality.