#FlashInfer
A technical paper for FlashInfer.

FlashInfer: Efficient and Customizable Attention Engine for LLM Inference Serving ( arxiv.org/abs/2501.01005 )
January 3, 2025 at 10:17 PM
FlashInfer v0.2 by @yzh119.bsky.social

FlashInfer is a library and kernel generator for Large Language Models that provides high-performance implementation of LLM GPU kernels such as FlashAttention, SparseAttention, PageAttention, Sampling, and more.
December 19, 2024 at 9:54 PM
Allen School researchers receive Best Paper Award for speeding up LLM performance with FlashInfer news.cs.washington.edu/2025/07/01/a...
Allen School researchers receive Best Paper Award for speeding up LLM performance with FlashInfer - Allen School News
A team of University of Washington and NVIDIA researchers developed a system that can help make large language models (LLMs) faster and more adaptable. The researchers introduced FlashInfer, a versati...
news.cs.washington.edu
July 1, 2025 at 8:38 PM
#UWAllen & NVIDIA researchers earned a #MLSys2025 Best Paper Award for developing FlashInfer to boost #LLM performance—showing “what’s possible when academia, industry and the open-source community innovate together,” says @yzh119.bsky.social.‬ #AI #UWdiscovers news.cs.washington.edu/2025/07/01/a...
Allen School researchers receive Best Paper Award for speeding up LLM performance with FlashInfer - Allen School News
A team of University of Washington and NVIDIA researchers developed a system that can help make large language models (LLMs) faster and more adaptable. The researchers introduced FlashInfer, a versati...
news.cs.washington.edu
July 9, 2025 at 4:42 PM
What you'll learn:

1. Overlap Scheduling
2. FlashAttention-3 + FlashInfer kernels
3. Radix Cache & Chunked Prefill
4. Tensor Parallelism
5. JIT CUDA kernels
6. OpenAI-compatible API

Technical blog: lmsys.org/blog/2025-12...
Mini-SGLang: Efficient Inference Engine in a Nutshell | LMSYS Org
<p>We're excited to introduce <strong>Mini-SGLang</strong>, a lightweight yet high-performance inference framework for Large Language Models (LLMs). Derived ...
lmsys.org
December 19, 2025 at 7:41 AM
My kingdom for sparse mxfp4 kernels in FlashInfer for sm120
January 22, 2026 at 3:00 PM
¿Sabías que FlashInfer ha alcanzado más de 5,500 estrellas en GitHub en solo unos meses? Su rendimiento en la inferencia de LLMs es impresionante, y es utilizado por gigantes como Hugging Face. ¡No querrás perderte cómo está cambiando el juego! 🌟
FlashInfer supera 5,500 estrellas: los kernels GPU que hacen mas rapida la inferencia de vLLM, SGLang y TensorRT-LLM - Sinaptica
FlashInfer es una biblioteca de kernels GPU de alto rendimiento para la inferencia de modelos de lenguaje grandes (LLMs). Con mas de 5,500 estrellas en GitHub d
sinapti.ca
May 8, 2026 at 4:05 AM
Open-source LLM infra expands with ggml/llama.cpp updates and enhanced tooling.

The ggml/llama.cpp ecosystem's v0.3.0 adds multimodal, tensor-split models, and wider platform support. SGLang/FlashInfer tooling boosts startup/throughput. Impacts include reduced cold-start…

Read more on Kimbodo:
New open weights and inference tooling reduce cold-start latency and unlock cross-platform GPU inference
What Happened Across the open-source LLM ecosystem this week there were two coordinated trends: (1) infrastructure-level releases and fixes in the ggml/llama.cpp ecosystem that broaden platform and backend support, add&hellip;
kimbodo.com
August 29, 2026 at 5:11 PM
vLLM v0.30.0rc1 isolates supplemental FlashInfer BF16 autotuning in a bugfix for this tuning path.
https://github.com/vllm-project/vllm/releases/tag/v0.30.0rc1
September 17, 2026 at 10:55 AM
Researchers from NVIDIA, CMU and the University of Washington Released 'FlashInfer': A Kernel Library that Provides State-of-the-Art Kernel Implementations for LLM Inference and Serving

buff.ly/3DLNzEM

#LLMs #AI
Researchers from NVIDIA, CMU and the University of Washington Released 'FlashInfer': A Kernel Library that Provides State-of-the-Art Kernel Implementations for LLM Inference and Serving
Researchers from NVIDIA, CMU and the University of Washington Released 'FlashInfer': A Kernel Library that Provides State-of-the-Art Kernel Implementations for LLM Inference and Serving
buff.ly
January 5, 2025 at 8:27 PM
We just released text-generation-inference 3.3.0. This release adds prefill chunking for VLMs 🚀. We have also Gemma 3 faster & use less VRAM by switching to flashinfer for prefills with images.

github.com/huggingface/...
Release v3.3.0 · huggingface/text-generation-inference
Notable changes Prefill chunking for VLMs. What's Changed Fixing Qwen 2.5 VL (32B). by @Narsil in #3157 Fixing tokenization like https://github.com/huggingface/text-embeddin… by @Narsil in #3156...
github.com
May 9, 2025 at 3:39 PM
🚀 New #release · sglang v0.5.15.post1

v0.5.15.post1 includes a few patches, mostly for GLM 5.2
• #30454 #30627: Fix DSA model launching on non Cuda/HIP devices
• #30858: Fix flas…

Check and #self-host it → selfhost.directory/project/sglang#update-4663845

#selfhost #selfhosted #homelab #opensource
sglang v0.5.15.post1
v0.5.15.post1 includes a few patches, mostly for GLM 5.2 • #30454 #30627: Fix DSA model launching on non Cuda/HIP devices • #30858: Fix flashinfer dependency on Cuda 12 images
selfhost.directory
July 14, 2026 at 8:55 AM
📄 Houmao agents auto-generate GPU kernels, beat hand-written CUDA by 1101x

AI-coded kernels outperformed FlashInfer baselines—no human CUDA required.

https://theneuralfeed.com/share/post/Y0YmVIqf

#AIResearch #MachineLearning #DeepLearning

Read the full story →
theneuralfeed.com
August 18, 2026 at 8:31 AM
Try --block-size 16 vs 32. On Blackwell (SM 10.0), FlashInfer often outperforms default Triton kernels for long context. Ensure your build uses Triton 3.1.0+; earlier versions lack the instruction scheduling needed to fully saturate the 5090's compute units during FP4/A4B dequantization.
April 19, 2026 at 6:16 PM
AMD ROCm 7.2 is the first release I'd actually recommend to someone with a Radeon GPU for local AI. vLLM, FlashInfer, distributed inference — it's all officially supported now. The CUDA lock-in has a real challenger. https://www.kunalganglani.com/blog/amd-rocm-consumer-gpu-open-source-cuda-alternati
March 16, 2026 at 3:53 PM
Thoughts on this? >> Researchers from NVIDIA, CMU and the University of
Washington Released ‘FlashInfer’: A Kernel Library that Provides
State-of-the-Art Kernel Implementations for LLM Inference and
Serving: Large Language Models (LLMs)… >> Comment below! #industry40 #healthtech #IoT #mhealth #AI
Researchers from NVIDIA, CMU and the University of Washington Released ‘FlashInfer’: A Kernel Library that Provides State-of-the-Art Kernel Implementations for LLM Inference and Serving
Large Language Models (LLMs) have become an integral part of modern AI applications, powering tools like chatbots and code generators. However, the increased reliance on these models has revealed critical inefficiencies in inference processes. Attention…
dlvr.it
January 5, 2025 at 3:20 AM
7. General Intuition Targets $6B Valuation for Robotics Foundation Models LINK
8. vLLM Adds FlashInfer MoE Expert Backend for DeepSeek-V4 LINK
August 25, 2026 at 1:00 PM
Agentic Kernel Optimization: Generating State-of-the-Art GPU Kernels Without Hand-Written CUDA
tech_blogs_arxiv | Author: Mao Luo, Hongbin Li, Feng Lin, Hanling Yi, Zhe Huang

#Graphics
Agentic Kernel Optimization: Generating State-of-the-Art GPU Kernels Without Hand-Written CUDA
We study whether general-purpose code agents can produce state-of-the-art GPU kernels without any manually written CUDA code. We investigate this question using representative workloads from FlashInfer-Bench, focusing on the Fused MoE, DSA TopK Indexer, and DSA Sparse Attention, and evaluate all gen
arxiv.org
August 18, 2026 at 4:14 AM
SGLang vs vLLM for enterprise LLM serving! ⚡

Key SRE Benchmarks & Fixes:
• Avoid the 0.9 VRAM CUDA Graph OOM trap
• Fix FlashInfer ninja-build crashes
• SGLang RadixTree = 5x faster TTFT for AI Agents
• Stop binding 0.0.0.0 without auth

🔗 www.servermo.com/blogs/sglang...
August 7, 2026 at 6:06 AM
利用NVIDIA FlashInfer实现高性能大型语言模型推理内核加速

https://qian.cx/posts/027925C9-7D9A-4C1B-A821-D54D85D83F4B
September 18, 2025 at 9:30 AM
Высокопроизводительные ядра инференса LLM от Nvidia с использованием FlashInfer: прорыв в области искусственного интеллекта

https://kripta.biz/posts/0772FCD0-E33A-4D05-943C-6B391095F018
September 18, 2025 at 9:30 AM
python-flashinfer Kernel Library for LLM Serving

Origin | Interest | Match
AUR (en) - python-flashinfer
aur.archlinux.org
March 19, 2026 at 6:02 PM
GPT-OSS Performance Optimizations on NVIDIA Blackwell: Pushing the Pareto Frontier TL;DR: In collaboration with the open-source community, vLLM + NVIDIA has achieved significant performance milesto...

Origin | Interest | Match
GPT-OSS Performance Optimizations on NVIDIA Blackwell: Pushing the Pareto Frontier
**TL;DR:** In collaboration with the open-source community, vLLM + NVIDIA has achieved significant performance milestones on the `gpt-oss-120b` model running on NVIDIA’s Blackwell GPUs. Through deep integration with FlashInfer, novel kernel fusions via `torch.compile`, and various inference runtime features, we have set a new record for the model’s performance Pareto frontier —simultaneously optimizing for maximum throughput (+38%) and best interactivity (+13%). This post details the engineering journey, technical breakthroughs, and instructions to reproduce the results. Continuous benchmarks are also available on **SemiAnalysis Inference MAX and vLLM Recipes**. ## Table of Contents * Introduction * FlashInfer + torch.compile * Runtime Improvements * Deployment Recipes * Results * Next Steps * Acknowledgements * * * ## Introduction Optimizing for a single metric—like maximum throughput or single-batch latency—is often insufficient for real-world deployments. Different use cases require different latency constraints and request concurrency. As a result, the real challenge lies in optimizing the **Pareto frontier** : the curve that represents the best possible trade-off between **Tokens Per Second (TPS) per GPU** (TCO, total cost of ownership) and **TPS per User** (interactivity). Pushing this curve upwards and to the right means delivering faster generation for individual users while allowing more users to share the hardware. SemiAnalysis InferenceMAX has identified this critical need to measure, report and improve performance data for such LLM inference workloads on modern GPUs. One of the key use-cases is serving OpenAI’s `gpt-oss-120b` model, a natively 4-bit quantized (MXFP4) Mixture-of-Experts (MoE) LLM. It has achieved SoTA model accuracy for its size along with strong agentic capabilities. At the recent SemiAnalysis InferenceMAX showcase, vLLM demonstrated its capability to handle this workload efficiently on NVIDIA’s latest Blackwell (B200/GB200) architecture. The heart of the optimizations is hardware-software co-design. The NVIDIA B200/GB200 GPUs introduce powerful features like native FP4 TensorCores and 192GB HBM per GPU, which are critical for serving large MoE models like `gpt-oss`. To leverage this hardware fully, vLLM and NVIDIA teams have integrated with **FlashInfer** and adopted a rigorous optimization strategy focusing on kernel fusion, communication overhead reduction, and host-device overlapping. ## FlashInfer Integration and torch.compile based fusion To maximize the utilization of Blackwell’s tensor cores, vLLM leverages **FlashInfer** as its primary kernel backend for attention, MoE, and other compute-intensive and fused operations. **1. Key Compute Kernel Integration** : * **MoE Backends:** We enabled both `trtllm-gen` (PR23819) and `cutlass` (PR23696) backends for MoE operations with FlashInfer. This allows vLLM to select the most performant kernel for expert routing and computation. In addition to providing the best-performing kernels for LLMs, FlashInfer also includes jit-in-time compilation, auto-tuning, and kernel caching, which greatly improves the user experience for any developer with high-performance kernel needs. * **FP8 KV-Cache:** Storing kv-cache in FP8 precision allows the engine to serve more concurrent requests with the same kv-cache budget. Moreover, carrying out some of the attention operations in FP8 precision also reduces the compute/memory complexity of the attention operation. To achieve the best performance for this use case, vLLM has integrated FlashInfer’s optimized attention kernels in PR25674. **2. Graph Fusions via torch.compile** A significant portion of our optimization effort focused on kernel fusion to reduce memory access and kernel launch overhead. Instead of hard-coded fusion optimizations, vLLM has built an extensive infrastructure based on `torch.compile` to conduct kernel fusion automatically. This approach not only improves performance, but significantly reduces the effort to enable, generalize, and maintain such improvements. * **AR + Norm Fusion:** We implemented the fusion of AllReduce (AR) and RMSNorm operations. This is particularly important for tensor-parallel (TP) deployments, where communication overhead can become a bottleneck, details please see PR20691. * **Pad + Quant & Finalize + Slice:** We are actively rolling out the fusion passes, PR30647 for padding/quantization and finalize/slice operations to further streamline the MoE execution path, with an expected 6% performance gain. As we identify and develop new fused operations, the team will continue to deliver automatic performance gains via this infrastructure. ## Runtime Improvements On next-generation hardware like Blackwell, the GPU is so fast that the CPU (host) often becomes the bottleneck, struggling to dispatch kernels quickly enough to keep the GPU busy. In addition, `prepare\_batch`, request scheduling and sampling logic also require heavy CPU side logic. This “host overhead” manifests as gaps between kernel executions, degrading performance and overall GPU utilization. To address this, we implemented both **Async Scheduling** and **Stream Interval** to vLLM that effectively eliminate host-side overhead. Async Scheduling: * **Mechanism:** This scheduler decouples the CPU’s request scheduling from the GPU’s execution. By allowing the CPU to prepare the next batch of requests while the GPU is still processing the current batch, we effectively hide the host overhead. * **Impact:** This optimization is crucial for the `gpt-oss` model, particularly in both high-throughput and min-latency scenarios. On more capable GPUs (H200s, B200s, GB200s), you can expect around a 10% performance gain. * **Configuration:** This has been turned on by default in recent vLLM releases. Stream Interval: * **Mechanism:** This feature reduces the granularity of network responses by buffering generated tokens before sending them to the client. Instead of triggering a network call for every single token, the engine waits until a specified buffer size (the “interval”) is reached. Crucially, the implementation preserves responsiveness by ensuring the **first token is always sent immediately** (keeping Time-To-First-Token low), while subsequent tokens are batched. * **Impact:** By reducing the frequency of HTTP/gRPC response dispatching, this significantly lowers the CPU overhead associated with network I/O and serialization. In high-concurrency benchmarks (e.g., `gpt-oss-20b` with 1024 concurrent requests), this optimization relieved output queue bottlenecks, resulting in a **57% end-to-end performance gain** and improved Time Per Output Token (TPOT). * **Configuration:** Users can configure this behavior using the `--stream-interval <num_tokens>` argument. The default value is `1` (standard streaming), but increasing this value (e.g., to `10`) is highly effective for reducing host overhead in high-throughput deployments. ## Deployment Recipes Most of the optimizations are already applied by default on the latest vLLM release. In addition, to reproduce the optimized performance for `gpt-oss` on Blackwell GPUs (B200/GB200), we recommend the following configurations in your vLLM deployment recipes. They can also be found under vLLM Recipes page. **Recommended Configuration Flags:** * **Graph Capture:** * `--cuda-graph-capture-size 2048` * **Scheduling:** * `--api-server-count 20` or `--stream-interval 20`: This helps decouple the HTTP API server overhead from the inference engine, stabilizing performance at high concurrency. * **MoE Backend:** * Explicitly enable the optimized Cutlass backend for FP8/FP4 MoE to ensure maximum throughput: `VLLM_USE_FLASHINFER_MOE_MXFP4_MXFP8=1`. ## Results The combined effect of the optimizations has resulted in a significant uptick of performance since the launch of InferenceMax. Notably, a 38% performance increase at max-throughput, and 13% performance increase at min-latency Such improvements are not just for a single use-case, but rather **across the entire Pareto curve to benefit the vLLM community at large**. ## Next steps Our work on `gpt-oss` is ongoing. Here is a look at the active engineering tracks to further push the Pareto frontier. The list can also be found in Issue 30758. ### Disaggregation By separating the Prefill stage and the Decode stage on to different GPUs, we can potentially achieve better throughput per GPU. We are currently experimenting with this setup and find the correct configs that achieve better performance. ### Data+Expert parallel performance Our projection shows that using DEP2 (Attention DP + MoE EP on 2 GPUs) can potentially achieve higher throughput per GPU compared to TP1 and TP2 at the same latency (TPS/user). However, currently the DEP2 performance is worse than TP1/TP2 mainly due to the MoE kernel selection issue. We are actively working on this to resolve it. ### Minimum latency performance We have identified a few performance optimization opportunities for min-latency scenario, or TP8 concurrency 8 more specifically: * RoPE+Q+Cache fusion: Kernel is available in FlashInfer. Integration in vLLM is in progress. * The router gemm and fc_qkv/fc_o_proj gemms: we can use specialized tiny gemm kernels with better performance and PDL support. ## Acknowledgements We would like to give thanks to the many talented people in the vLLM community who worked together as a part of this effort: * Red Hat: Michael Goin, Alexander Matveev, Lucas Wilkinson, Luka Govedič, Wentao Ye, Ilia Markov, Matt Bonanni, Varun Sundar Rabindranath, Bill Nell, Tyler Michael Smith, Robert Shaw * NVIDIA: Po-Han Huang, Pavani Majety, Shu Wang, Elvis Chen, Zihao Ye, Duncan Moss, Kaixi Hou, Siyuan Fu, Benjamin Chislett, Xin Li, Vadim Gimpelson, Minseok Lee, Amir Samani, Elfie Guo, Lee Nau, Kushan Ahmadian, Grace Ho, Pen Chun Li * vLLM: Chen Zhang, Yongye Zhu, Bowen Wang, Kaichao You, Simon Mo, Woosuk Kwon, Zhuohan Li * Meta: Yang Chen, Xiaozhu Meng, Boyuan Feng, Lu Fang
blog.vllm.ai
February 5, 2026 at 4:29 AM