AI inference glossary

Software

FlashInfer

Also known as attention kernel library

In plain English

FlashInfer is a library of attention kernels that serving engines call instead of writing their own attention implementations.

Technical Definition

FlashInfer is an open-source library of attention kernels and backends used by inference engines for prefill, decode, and speculative verification.

Engineering Details

Attention is where most serving-specific complexity lives: paged caches, variable sequence lengths, grouped query heads, sparsity patterns, and verification of drafted tokens all reshape the kernel. A shared library lets several engines reuse one tuned implementation, and engines select a backend per shape and per hardware target.

Why It Matters

Because backends are selected rather than fixed, kernel availability becomes a portability question. A feature implemented only for one vendor’s backend leaves the alternative running a generic path, which on long context is not a small compromise but the wrong kernel for the shape.

How to Read It in InferenceX

The backend in use is part of the recipe, and a change to it can move a curve without any hardware or engine version change. Support for checkpointing recurrent state in these kernels is what allowed hybrid models to participate in prefix reuse at all. The Blackwell port studies copy configurations motivated by FlashInfer attention kernels and distinguishes TMA from LDGSTS paths. Some implementation discussion is explicitly inferred from binaries, not confirmed by publicly available kernel source.

See the Concept in Real Benchmarks

All articles