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
Abstract
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.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
26 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- POD-Attention: Unlocking Full Prefill-Decode Overlap for Faster LLM Inference cites Efficient Memory Management for Large Language Model Serving with PagedAttention
- POD-Attention: Unlocking Full Prefill-Decode Overlap for Faster LLM Inference cites DistServe: Disaggregating Prefill and Decoding for Goodput-optimized Large Language Model Serving
- POD-Attention: Unlocking Full Prefill-Decode Overlap for Faster LLM Inference cites Orca: A Distributed Serving System for Transformer-Based Generative Models
- POD-Attention: Unlocking Full Prefill-Decode Overlap for Faster LLM Inference cites vAttention: Dynamic Memory Management for Serving LLMs without PagedAttention
- vAttention: Dynamic Memory Management for Serving LLMs without PagedAttention cites POD-Attention: Unlocking Full Prefill-Decode Overlap for Faster LLM Inference
- FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPU cites Language Models are Few-Shot Learners
- MPK: A Compiler and Runtime for Mega-Kernelizing Tensor Programs cites Orca: A Distributed Serving System for Transformer-Based Generative Models
- Strata: Hierarchical Context Caching for Long Context Language Model Serving cites Efficient Memory Management for Large Language Model Serving with PagedAttention
- Strata: Hierarchical Context Caching for Long Context Language Model Serving cites DistServe: Disaggregating Prefill and Decoding for Goodput-optimized Large Language Model Serving
- Strata: Hierarchical Context Caching for Long Context Language Model Serving cites Orca: A Distributed Serving System for Transformer-Based Generative Models
- Efficient Memory Management for Large Language Model Serving with PagedAttention cites FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPU
- Efficient Memory Management for Large Language Model Serving with PagedAttention cites Language Models are Few-Shot Learners
- Efficient Memory Management for Large Language Model Serving with PagedAttention cites Orca: A Distributed Serving System for Transformer-Based Generative Models
- DistServe: Disaggregating Prefill and Decoding for Goodput-optimized Large Language Model Serving cites Efficient Memory Management for Large Language Model Serving with PagedAttention
- DistServe: Disaggregating Prefill and Decoding for Goodput-optimized Large Language Model Serving cites Orca: A Distributed Serving System for Transformer-Based Generative Models
- Towards High-Goodput LLM Serving with Prefill-decode Multiplexing cites POD-Attention: Unlocking Full Prefill-Decode Overlap for Faster LLM Inference
- Towards High-Goodput LLM Serving with Prefill-decode Multiplexing cites Efficient Memory Management for Large Language Model Serving with PagedAttention
- Towards High-Goodput LLM Serving with Prefill-decode Multiplexing cites DistServe: Disaggregating Prefill and Decoding for Goodput-optimized Large Language Model Serving
- Towards High-Goodput LLM Serving with Prefill-decode Multiplexing cites Orca: A Distributed Serving System for Transformer-Based Generative Models
- Orca: A Distributed Serving System for Transformer-Based Generative Models cites Language Models are Few-Shot Learners
- vAttention: Dynamic Memory Management for Serving LLMs without PagedAttention cites FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPU
- vAttention: Dynamic Memory Management for Serving LLMs without PagedAttention cites Efficient Memory Management for Large Language Model Serving with PagedAttention
- vAttention: Dynamic Memory Management for Serving LLMs without PagedAttention cites DistServe: Disaggregating Prefill and Decoding for Goodput-optimized Large Language Model Serving
- vAttention: Dynamic Memory Management for Serving LLMs without PagedAttention cites Orca: A Distributed Serving System for Transformer-Based Generative Models
Cited by top-tier papers26
- Strata: Hierarchical Context Caching for Long Context Language Model ServingZhiqiang Xie, Ziyi Xu, Mark Zhao, Yuwei An et al.OSDI 2026 · 40 citations
- vAttention: Dynamic Memory Management for Serving LLMs without PagedAttentionRamya Prabhu, Ajay Nayak, Jayashree Mohan, Ramachandran Ramjee et al.ASPLOS 2025 · 38 citations
- POD-Attention: Unlocking Full Prefill-Decode Overlap for Faster LLM InferenceAditya K. Kamath, Ramya Prabhu, Jayashree Mohan, Simon Peter et al.ASPLOS 2025 · 24 citations
- MPK: A Compiler and Runtime for Mega-Kernelizing Tensor ProgramsXinhao Cheng, Zhihao Zhang, Yu Zhou, Jianan Ji et al.OSDI 2026 · 20 citations
- Towards High-Goodput LLM Serving with Prefill-decode MultiplexingYukang Chen, Weihao Cui, Han Zhao, Ziyi Xu et al.ASPLOS 2026 · 18 citations
Builds on17
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
- Efficient Memory Management for Large Language Model Serving with PagedAttentionWoosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng et al.SOSP 2023 · 1,016 citations
- Orca: A Distributed Serving System for Transformer-Based Generative ModelsGyeong-In Yu, Joo Seong Jeong, Geon-Woo Kim, Soojeong Kim et al.OSDI 2022 · 690 citations
- FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPUYing Sheng, Lianmin Zheng, Binhang Yuan, Zhuohan Li et al.ICML 2023 · 683 citations
- DistServe: Disaggregating Prefill and Decoding for Goodput-optimized Large Language Model ServingYinmin Zhong, Shengyu Liu, Junda Chen, Jianbo Hu et al.OSDI 2024 · 646 citations
Related papers
- DuetServe: Harmonizing Prefill and Decode for LLM Serving via Adaptive GPU MultiplexingLei Gao, Chaoyi Jiang, Hossein Entezari Zarch, Daniel Wong et al.ICML 2026 · 4 citations
- 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 et al.OSDI 2024 · 537 citations
- MuxServe: Flexible Spatial-Temporal Multiplexing for Multiple LLM ServingJiangfei Duan, Runyu Lu, Haojie Duanmu, Xiuhong Li et al.ICML 2024 · 51 citations
- TokenFlow: Responsive LLM Text Streaming Serving under Request Burst via Preemptive SchedulingJunyi Chen, Chuheng Du, Renyuan Liu, Shuochao Yao et al.EuroSys 2026
