AIAny
AI Deploy2024
Icon for item

FlashInfer

GPU kernel library for LLM inference attention, sampling, and KV-cache, built on block-sparse formats with JIT-compiled customizable templates. Reports 29-69% inter-token-latency cuts vs compiler backends; powers SGLang, vLLM, and MLC-Engine.

Introduction

Inference servers spend most of their time not in the model weights but in attention and KV-cache movement, and those kernels have to handle wildly different request shapes at once. FlashInfer's bet is that a single attention engine, specialized at runtime, can beat hand-tuned kernels across all of them — and the numbers back it up.

Key Findings
  • A block-sparse plus composable KV-cache format lets one kernel serve prefill, decode, shared-prefix batches, and ragged batches without separate code paths, cutting redundant memory traffic.
  • JIT compilation generates an attention variant tailored to each workload, so customization doesn't cost the usual performance penalty of generic kernels.
  • A load-balanced scheduler adapts to request dynamism while staying CUDAGraph-compatible, the part most ad-hoc kernels break on.
  • Measured gains: 29-69% inter-token-latency reduction vs compiler backends, 28-30% for long-context, 13-17% for parallel generation on H100.
Who It's For

Great fit if you build or operate an LLM serving stack and want attention kernels that already feed SGLang, vLLM, and MLC-Engine rather than rolling your own. Look elsewhere if you only run small batches on consumer GPUs, where the scheduling and format machinery adds complexity without paying off, or if you need kernels outside the attention/sampling path.

Information

  • Websiteflashinfer.ai
  • OrganizationsNVIDIA, University of Washington, Carnegie Mellon University, Perplexity AI
  • AuthorsFlashInfer team
  • Published date2024/02/02

Categories

More Items

GitHub
AI Deploy2026

Provides reusable Docker compose files, scripts and benchmarked configs to serve modern LLMs (Qwen, Gemma, etc.) on 1–2 NVIDIA RTX 3090/4090/5090 GPUs. Multi-engine (vLLM, llama.cpp, ik_llama), measured TPS/context tradeoffs, and validated single/dual‑GPU recipes.

GitHub
AI Deploy2023

Provides a unified platform for AI development and deployment, including the MAX serving framework and the Mojo systems programming language for writing kernels. Offers an OpenAI-compatible inference endpoint, Mojo-written CPU/GPU kernels, and tools to run hundreds of open models across diverse hardware without vendor lock-in.

GitHub
AI Deploy2026

Runs local LLMs on Apple Silicon using native MTP speculative decoding to accelerate token generation while preserving the model's output distribution. Leverages the model's own MTP heads with batched verification and exact rejection sampling; ships with a Mac app, CLI, local OpenAI/Anthropic-compatible server, auto-tune, and Forge for building/verifying MTP adapters.