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 [arXiv]
被引量: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
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
刚刚
友好的冷玉完成签到,获得积分10
刚刚
刚刚
酷波er的应助被刘兆亮采纳,获得10
刚刚
刚刚
天气不错发布了新的文献求助10
1秒前
1秒前
小二郎的应助被liao采纳,获得10
1秒前
科研通AI2S的应助被炙热的微笑采纳,获得10
2秒前
想好好搞事业完成签到,获得积分10
2秒前
2秒前
2秒前
oliver发布了新的文献求助10
3秒前
4秒前
Xu发布了新的文献求助10
4秒前
4秒前
4秒前
shuangyanli完成签到,获得积分10
4秒前
猿猴发布了新的文献求助10
4秒前
yan完成签到 ,获得积分10
4秒前
水墨云烟完成签到,获得积分10
5秒前
5秒前
所所的应助被刘艳阳采纳,获得10
5秒前
闲01发布了新的文献求助10
5秒前
香蕉觅云的应助被张晨采纳,获得10
6秒前
6秒前
共产主义战士的应助被zhao采纳,获得10
7秒前
阿飞完成签到,获得积分10
7秒前
细心若南完成签到,获得积分10
7秒前
QWER发布了新的文献求助10
8秒前
8秒前
情怀的应助被大万采纳,获得10
8秒前
琪小7发布了新的文献求助10
8秒前
123完成签到 ,获得积分10
8秒前
xingx完成签到 ,获得积分10
8秒前
jiafang发布了新的文献求助10
9秒前
xxxx完成签到 ,获得积分10
9秒前
加油的梨发布了新的文献求助10
9秒前
ll发布了新的文献求助10
10秒前
小状元发布了新的文献求助10
10秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
膵がん早期診断の現状 600
Bonding in Metal(IV) Hexafluorides Examined Using Fluorine K-edge X-ray Absorption Spectroscopy 500
Trend and Out-of-Trend Analysis for Pharmaceutical Quality and Manufacturing Using Minitab 500
Sleisenger and Fordtran's Gastrointestinal and Liver Disease - 2 Volume Set Pathophysiology, Diagnosis, Management 500
Tutorials in Operations Research: Operations Research and Artificial Intelligence: Better Together 400
Tutorials in Operations Research: Advances in Analytics and Operations Research: Improving Decisions to Secure the Future 400
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 计算机科学 工程类 有机化学 化学工程 生物化学 物理 复合材料 内科学 催化作用 光电子学 人工智能 细胞生物学 无机化学 物理化学 数学
热门帖子
关注 科研通微信公众号,转发送积分 8246566
求助须知:如何正确求助?哪些是违规求助? 9621776
关于积分的说明 22117714
捐赠科研通 7863813
什么是DOI,文献DOI怎么找? 3455407
关于科研通互助平台的介绍 2574778
邀请新用户注册赠送积分活动 2506589