FlashInfer: Efficient and Customizable Attention Engine for LLM Inference Serving

推论 计算机科学 环境科学 人工智能
作者
Zihao Ye,Lequn Chen,Ruihang Lai,Wuwei Lin,Y. Charles Zhang,Stephanie W. Wang,Tianqi Chen,Baris Kasikci,Vinod Grover,Arvind Krishnamurthy,Luís Ceze
出处
期刊:Cornell University - arXiv [Cornell University]
被引量:2
标识
DOI:10.48550/arxiv.2501.01005
摘要

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.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
无极微光应助skywet采纳,获得20
2秒前
桐桐应助linqishi采纳,获得10
2秒前
含蓄薯片发布了新的文献求助10
4秒前
4秒前
5秒前
大方岩完成签到,获得积分10
5秒前
6秒前
7秒前
繁荣的凡完成签到 ,获得积分10
8秒前
8秒前
天真晓博完成签到,获得积分10
8秒前
9秒前
殷勤的哈密瓜完成签到,获得积分10
9秒前
cdc完成签到 ,获得积分10
10秒前
加油干发布了新的文献求助10
11秒前
RaymondLeong发布了新的文献求助10
11秒前
痴痴的噜完成签到,获得积分10
11秒前
mei完成签到,获得积分10
12秒前
12秒前
Akim应助钱罐罐采纳,获得10
12秒前
whysoserious发布了新的文献求助10
13秒前
13秒前
初晴后雨完成签到 ,获得积分10
14秒前
15秒前
15秒前
qwer完成签到,获得积分10
16秒前
18秒前
arniu2008发布了新的文献求助10
19秒前
tcy完成签到,获得积分10
19秒前
drbrianlau发布了新的文献求助10
19秒前
21秒前
21秒前
下班积极分子完成签到 ,获得积分20
23秒前
NAICHA发布了新的文献求助10
23秒前
打打应助RaymondLeong采纳,获得10
24秒前
min发布了新的文献求助10
24秒前
天天快乐应助Rainsky采纳,获得10
24秒前
完美世界应助PC采纳,获得10
24秒前
守护星02发布了新的文献求助30
25秒前
whysoserious完成签到,获得积分10
25秒前
高分求助中
Principles of Economics, 11th Edition 10000
University Physics with Modern Physics, 16th edition 10000
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Development of a Bridge Weigh-In-Motion System: A technology to convert the bridge response to the passage of traffic into data on vehicle configurations, speeds, times of travel and weights 1000
Organic Reactions, Volume 116 1000
Current concepts in cutaneous toxicity : proceedings of the Fourth Conference on Cutaneous Toxicity, Washington, D.C., May 9-11, 1979 1000
ズームレンズの光学設計に関する研究 800
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7276936
求助须知:如何正确求助?哪些是违规求助? 8897994
关于积分的说明 18815805
捐赠科研通 6949548
什么是DOI,文献DOI怎么找? 3206327
关于科研通互助平台的介绍 2377413
邀请新用户注册赠送积分活动 2181265