Papers › FlashInfer: Efficient and Customizable Attention Engine for LLM Inference Serving

FlashInfer: Efficient and Customizable Attention Engine for LLM Inference Serving

2 Jan 2025arXiv:2501.01005archive 2025-07-28

Zihao Ye, Lequn Chen, Ruihang Lai, Wuwei Lin, Yineng Zhang, Stephanie Wang, Tianqi Chen, Baris Kasikci, Vinod Grover, Arvind Krishnamurthy, Luis Ceze

Transformers, driven by attention mechanisms, form the foundation of large language models (LLMs). As these models scale up, efficient GPU attention kernels become essential for high-throughput and low-latency inference. Diverse LLM applications demand flexible and high-performance attention solutions. We present FlashInfer: a customizable and efficient attention engine for LLM serving. FlashInfer tackles KV-cache storage heterogeneity using block-sparse format and composable formats to optimize memory access and reduce redundancy. It also offers a customizable attention template, enabling adaptation to various settings through Just-In-Time (JIT) compilation. Additionally, FlashInfer's load-balanced scheduling algorithm adjusts to dynamism of user requests while maintaining compatibility with CUDAGraph which requires static configuration. FlashInfer have been integrated into leading LLM serving frameworks like SGLang, vLLM and MLC-Engine. Comprehensive kernel-level and end-to-end evaluations demonstrate FlashInfer's ability to significantly boost kernel performance across diverse inference scenarios: compared to state-of-the-art LLM serving solutions, FlashInfer achieve 29-69% inter-token-latency reduction compared to compiler backends for LLM serving benchmark, 28-30% latency reduction for long-context inference, and 13-17% speedup for LLM serving with parallel generation.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2501.01005")

Code

Syntology Ran 0 of 16 code samples harvested from 1 repository linked to this paper; 16 have no recorded run.

By repository: official repository: 16 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

flashinfer-ai/flashinfer officialmentioned in papermentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

16 samples harvested; 0 ran; 0 honoured the contract we drafted; 16 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

16unverified

Licence: 0 of the 16 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from flashinfer-ai/flashinfer. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

build_editable flashinfer-ai/flashinfer/flashinfer-cubin/build_backend.py official repository unverified Apache-2.0 (permissive) · 44a0c38fcf791070 · report
build_wheel flashinfer-ai/flashinfer/flashinfer-cubin/build_backend.py official repository unverified Apache-2.0 (permissive) · 8b66f8de9a6161fa · report
flush_graph_dumps flashinfer-ai/flashinfer/flashinfer/api_logging.py official repository unverified Apache-2.0 (permissive) · 4d8db70f7a999b76 · report
get_act_and_mul_module flashinfer-ai/flashinfer/flashinfer/activation.py official repository unverified Apache-2.0 (permissive) · 3abbd9a8cd490c7a · report
get_available_cubin_files flashinfer-ai/flashinfer/flashinfer/artifacts.py official repository unverified Apache-2.0 (permissive) · 6438bbe2fa20b253 · report
get_available_header_files flashinfer-ai/flashinfer/flashinfer/artifacts.py official repository unverified Apache-2.0 (permissive) · 7de81a2e3fa334d6 · report
get_checksums flashinfer-ai/flashinfer/flashinfer/artifacts.py official repository unverified Apache-2.0 (permissive) · 67f1e79951ba168d · report
min_block_table_width flashinfer-ai/flashinfer/flashinfer/attn_scores/attn_scores.py official repository unverified Apache-2.0 (permissive) · 42cb35beca6e09b0 · report
normalize_cuda_architecture flashinfer-ai/flashinfer/flashinfer-jit-cache-provider/package_config.py official repository unverified Apache-2.0 (permissive) · 97b676335b993413 · report
padded_seq_len flashinfer-ai/flashinfer/flashinfer/attn_scores/attn_scores.py official repository unverified Apache-2.0 (permissive) · 96eca989be463f73 · report
parse_bool flashinfer-ai/flashinfer/flashinfer/aot.py official repository unverified Apache-2.0 (permissive) · c6baeb0a93584501 · report
parse_head_dim flashinfer-ai/flashinfer/flashinfer/aot.py official repository unverified Apache-2.0 (permissive) · 3ea5257687b4a413 · report
prepare_metadata_for_build_wheel flashinfer-ai/flashinfer/flashinfer-jit-cache-provider/build_backend.py official repository unverified Apache-2.0 (permissive) · 21affb9cd865c03b · report
prepare_metadata_for_build_wheel flashinfer-ai/flashinfer/flashinfer-jit-cache/build_backend.py official repository unverified Apache-2.0 (permissive) · 80e22b335608272d · report
replay_from_dump flashinfer-ai/flashinfer/flashinfer/api_logging.py official repository unverified Apache-2.0 (permissive) · 85b3d4c658379be0 · report
replay_sequence flashinfer-ai/flashinfer/flashinfer/api_logging.py official repository unverified Apache-2.0 (permissive) · 3671383ef718172c · report

Tasks

Scheduling

1 archive task tag without a task page not shown.

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AttentionSoftmax

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections