Chisle
The coding-agent plugin that bills 52% of a bare model across 20 live tasks. Terse persona + tool-output compressor + context diet.
翻訳待ち
FlashInfer: Kernel Library for LLM Serving
翻訳待ち
Loading the full README. The saved excerpt is shown below.
FlashInfer is a library and kernel generator for inference that delivers state-of-the-art performance across diverse GPU architectures. It provides unified APIs for attention, GEMM, and MoE operations with multiple backend implementations including FlashAttention-2/3, cuDNN, CUTLASS, and TensorRT-LLM.Read the full README ↗FlashInfer is a library and kernel generator for inference that delivers state-of-the-art performance across diverse GPU architectures. It provides unified APIs for attention, GEMM, and MoE operations with multiple backend implementations including FlashAttention-2/3, cuDNN, CUTLASS, and TensorRT-LLM.
| Architecture | Compute Capability | Example GPUs |
|---|---|---|
| Turing | SM 7.5 | T4, RTX 20 series |
| Ampere | SM 8.0, 8.6 | A100, A10, RTX 30 series |
| Ada Lovelace | SM 8.9 | L4, L40, RTX 40 series |
| Hopper | SM 9.0 | H100, H200 |
| Blackwell | SM 10.0, 10.3 | B200, B300 |
| Blackwell | SM 11.0 | Jetson Thor |
| Blackwell | SM 12.0, 12.1 | RTX 50 series, DGX Spark |
Note: Not all features are supported across all compute capabilities.
Notable updates:
Quickstart:
pip install flashinfer-python
Package Options:
For faster initialization and offline usage, install the optional packages to have most kernels pre-compiled:
pip install flashinfer-python
flashinfer download-kernels
flashinfer download-kernels installs the flashinfer-cubin and flashinfer-jit-cache wheels that match the installed flashinfer-python and CUDA versions. By default it installs pre-built kernels for every supported GPU architecture (several GB); pass --mode minimal to install the jit-cache provider only for the visible GPUs, or --sm (e.g. --sm sm90a, repeatable) to choose architectures explicitly.
Upgrading: the kernel wheels must match
flashinfer-pythonexactly and are not upgraded with it. Runflashinfer download-kernelsagain after everypip install -U flashinfer-python; until then FlashInfer warns at import and ignores the old wheels (falling back to on-demand downloads and JIT compilation). Also note thatflashinfer-cubinis no longer published to PyPI (0.6.13 was the last release there): a plainpip install -U flashinfer-cubininstalls that stale wheel, so install it throughflashinfer download-kernelsor from--index-url https://flashinfer.ai/whl. See Upgrading.
For Blackwell (SM100+) CuTe DSL kernels, install with the CUDA 13 extra to enable Blackwell-optimized kernels:
pip install flashinfer-python[cu13]
flashinfer show-config
import torch
import flashinfer
# Single decode attention
q = torch.randn(32, 128, device="cuda", dtype=torch.float16) # [num_qo_heads, head_dim]
k = torch.randn(2048, 32, 128, device="cuda", dtype=torch.float16) # [kv_len, num_kv_heads, head_dim]
v = torch.randn(2048, 32, 128, device="cuda", dtype=torch.float16)
output = flashinfer.single_decode_with_kv_cache(q, k, v)
See documentation for comprehensive API reference and tutorials.
This is the beginning of the README. Read the rest at the original. Read the full README ↗