NanoFlow: Towards Optimal Large Language Model Serving Throughput
Kan Zhu, Yufei Gao, Yilong Zhao, Liangyu Zhao, Gefei Zuo, Yile Gu, Dedong Xie, Zihao Ye, Keisuke Kamahori, Chien-Yu Lin, Ziren Wang, Stephanie Wang
摘要
Large Language Models (LLMs) have resulted in a surging demand for planet-scale serving systems, where tens of thousands of GPUs continuously serve hundreds of millions of users. Consequently, throughput has emerged as a key metric that determines serving systems' performance. Due to large model sizes and memory-intensive self-attention, LLM serving has been commonly assumed to be memory-bound. Through a detailed analysis, we show that despite having memory-intensive components, end-to-end LLM serving is compute bound for most common workloads and LLMs. Alas, most existing serving engines fall short from optimal compute utilization, because the heterogeneous operations that comprise LLM serving-compute, memory, networking-are executed sequentially within a device. We propose NanoFlow, a novel serving framework that exploits intra-device parallelism, which overlaps the usage of heterogeneous resources within a single device. NanoFlow splits inputs into smaller nano-batches and duplicates operations to operate on each portion independently, enabling overlapping. NanoFlow automatically identifies the number, size, ordering, and GPU resource allocation of nano-batches to minimize the execution time, while considering the interference of concurrent operations. We evaluate NanoFlow's end-to-end serving throughput on several popular models such as LLaMA-2-70B, Mixtral 8×7B, LLaMA-3-8B, etc. With practical workloads, NanoFlow provides 1.91× throughput boost compared to state-of-the-art serving systems, achieving between 50% to 72% of optimal throughput across popular models.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 26 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- POD-Attention: Unlocking Full Prefill-Decode Overlap for Faster LLM Inference 引用了 Efficient Memory Management for Large Language Model Serving with PagedAttention
- POD-Attention: Unlocking Full Prefill-Decode Overlap for Faster LLM Inference 引用了 DistServe: Disaggregating Prefill and Decoding for Goodput-optimized Large Language Model Serving
- POD-Attention: Unlocking Full Prefill-Decode Overlap for Faster LLM Inference 引用了 Orca: A Distributed Serving System for Transformer-Based Generative Models
- POD-Attention: Unlocking Full Prefill-Decode Overlap for Faster LLM Inference 引用了 vAttention: Dynamic Memory Management for Serving LLMs without PagedAttention
- vAttention: Dynamic Memory Management for Serving LLMs without PagedAttention 引用了 POD-Attention: Unlocking Full Prefill-Decode Overlap for Faster LLM Inference
- FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPU 引用了 Language Models are Few-Shot Learners
- MPK: A Compiler and Runtime for Mega-Kernelizing Tensor Programs 引用了 Orca: A Distributed Serving System for Transformer-Based Generative Models
- Strata: Hierarchical Context Caching for Long Context Language Model Serving 引用了 Efficient Memory Management for Large Language Model Serving with PagedAttention
- Strata: Hierarchical Context Caching for Long Context Language Model Serving 引用了 DistServe: Disaggregating Prefill and Decoding for Goodput-optimized Large Language Model Serving
- Strata: Hierarchical Context Caching for Long Context Language Model Serving 引用了 Orca: A Distributed Serving System for Transformer-Based Generative Models
- Efficient Memory Management for Large Language Model Serving with PagedAttention 引用了 FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPU
- Efficient Memory Management for Large Language Model Serving with PagedAttention 引用了 Language Models are Few-Shot Learners
- Efficient Memory Management for Large Language Model Serving with PagedAttention 引用了 Orca: A Distributed Serving System for Transformer-Based Generative Models
- DistServe: Disaggregating Prefill and Decoding for Goodput-optimized Large Language Model Serving 引用了 Efficient Memory Management for Large Language Model Serving with PagedAttention
- DistServe: Disaggregating Prefill and Decoding for Goodput-optimized Large Language Model Serving 引用了 Orca: A Distributed Serving System for Transformer-Based Generative Models
- Towards High-Goodput LLM Serving with Prefill-decode Multiplexing 引用了 POD-Attention: Unlocking Full Prefill-Decode Overlap for Faster LLM Inference
- Towards High-Goodput LLM Serving with Prefill-decode Multiplexing 引用了 Efficient Memory Management for Large Language Model Serving with PagedAttention
- Towards High-Goodput LLM Serving with Prefill-decode Multiplexing 引用了 DistServe: Disaggregating Prefill and Decoding for Goodput-optimized Large Language Model Serving
- Towards High-Goodput LLM Serving with Prefill-decode Multiplexing 引用了 Orca: A Distributed Serving System for Transformer-Based Generative Models
- Orca: A Distributed Serving System for Transformer-Based Generative Models 引用了 Language Models are Few-Shot Learners
- vAttention: Dynamic Memory Management for Serving LLMs without PagedAttention 引用了 FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPU
- vAttention: Dynamic Memory Management for Serving LLMs without PagedAttention 引用了 Efficient Memory Management for Large Language Model Serving with PagedAttention
- vAttention: Dynamic Memory Management for Serving LLMs without PagedAttention 引用了 DistServe: Disaggregating Prefill and Decoding for Goodput-optimized Large Language Model Serving
- vAttention: Dynamic Memory Management for Serving LLMs without PagedAttention 引用了 Orca: A Distributed Serving System for Transformer-Based Generative Models
引用它的顶会 Paper26
- Strata: Hierarchical Context Caching for Long Context Language Model ServingZhiqiang Xie, Ziyi Xu, Mark Zhao, Yuwei An 等OSDI 2026 · 40 次引用
- vAttention: Dynamic Memory Management for Serving LLMs without PagedAttentionRamya Prabhu, Ajay Nayak, Jayashree Mohan, Ramachandran Ramjee 等ASPLOS 2025 · 38 次引用
- POD-Attention: Unlocking Full Prefill-Decode Overlap for Faster LLM InferenceAditya K. Kamath, Ramya Prabhu, Jayashree Mohan, Simon Peter 等ASPLOS 2025 · 24 次引用
- MPK: A Compiler and Runtime for Mega-Kernelizing Tensor ProgramsXinhao Cheng, Zhihao Zhang, Yu Zhou, Jianan Ji 等OSDI 2026 · 20 次引用
- Towards High-Goodput LLM Serving with Prefill-decode MultiplexingYukang Chen, Weihao Cui, Han Zhao, Ziyi Xu 等ASPLOS 2026 · 18 次引用
它引用的 Paper17
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
- Efficient Memory Management for Large Language Model Serving with PagedAttentionWoosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng 等SOSP 2023 · 1,016 次引用
- Orca: A Distributed Serving System for Transformer-Based Generative ModelsGyeong-In Yu, Joo Seong Jeong, Geon-Woo Kim, Soojeong Kim 等OSDI 2022 · 690 次引用
- FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPUYing Sheng, Lianmin Zheng, Binhang Yuan, Zhuohan Li 等ICML 2023 · 683 次引用
- DistServe: Disaggregating Prefill and Decoding for Goodput-optimized Large Language Model ServingYinmin Zhong, Shengyu Liu, Junda Chen, Jianbo Hu 等OSDI 2024 · 646 次引用
相关 Paper
- DuetServe: Harmonizing Prefill and Decode for LLM Serving via Adaptive GPU MultiplexingLei Gao, Chaoyi Jiang, Hossein Entezari Zarch, Daniel Wong 等ICML 2026 · 4 次引用
- HexGen-2: Disaggregated Generative Inference of LLMs in Heterogeneous EnvironmentYouhe Jiang, Ran Yan, Binhang YuanICLR 2025
- Taming Throughput-Latency Tradeoff in LLM Inference with Sarathi-ServeAmey Agrawal, Nitin Kedia, Ashish Panwar, Jayashree Mohan 等OSDI 2024 · 537 次引用
- MuxServe: Flexible Spatial-Temporal Multiplexing for Multiple LLM ServingJiangfei Duan, Runyu Lu, Haojie Duanmu, Xiuhong Li 等ICML 2024 · 51 次引用
- TokenFlow: Responsive LLM Text Streaming Serving under Request Burst via Preemptive SchedulingJunyi Chen, Chuheng Du, Renyuan Liu, Shuochao Yao 等EuroSys 2026
