Salvato in:
Dettagli Bibliografici
Autori principali: Li, Weiqing, Jiang, Guochao, Ding, Xiangyong, Tao, Zhangcheng, Hao, Chuzhan, Xu, Chenfeng, Zhang, Yuewei, Wang, Hao
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:https://arxiv.org/abs/2504.03775
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866916674870968320
author Li, Weiqing
Jiang, Guochao
Ding, Xiangyong
Tao, Zhangcheng
Hao, Chuzhan
Xu, Chenfeng
Zhang, Yuewei
Wang, Hao
author_facet Li, Weiqing
Jiang, Guochao
Ding, Xiangyong
Tao, Zhangcheng
Hao, Chuzhan
Xu, Chenfeng
Zhang, Yuewei
Wang, Hao
contents Disaggregated inference has become an essential framework that separates the prefill (P) and decode (D) stages in large language model inference to improve throughput. However, the KV cache transfer faces significant delays between prefill and decode nodes. The block-wise calling method and discontinuous KV cache memory allocation increase the number of calls to the transmission kernel. Additionally, existing frameworks often fix the roles of P and D nodes, leading to computational imbalances. In this paper, we propose FlowKV, a novel disaggregated inference framework, which reduces the average transmission latency of KV cache by 96%, from 0.944s to 0.053s, almost eliminating the transfer time relative to the total request latency by optimizing the KV cache transfer. FlowKV introduces the Load-Aware Scheduler for balanced request scheduling and flexible PD node allocation. This design maximizes hardware resource utilization, achieving peak system throughput across various scenarios, including normal, computational imbalance, and extreme overload conditions. Experimental results demonstrate that FlowKV significantly accelerates inference by 15.2%-48.9% on LongBench dataset compared to the baseline and supports applications with heterogeneous GPUs.
format Preprint
id arxiv_https___arxiv_org_abs_2504_03775
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle FlowKV: A Disaggregated Inference Framework with Low-Latency KV Cache Transfer and Load-Aware Scheduling
Li, Weiqing
Jiang, Guochao
Ding, Xiangyong
Tao, Zhangcheng
Hao, Chuzhan
Xu, Chenfeng
Zhang, Yuewei
Wang, Hao
Distributed, Parallel, and Cluster Computing
Artificial Intelligence
Computation and Language
Disaggregated inference has become an essential framework that separates the prefill (P) and decode (D) stages in large language model inference to improve throughput. However, the KV cache transfer faces significant delays between prefill and decode nodes. The block-wise calling method and discontinuous KV cache memory allocation increase the number of calls to the transmission kernel. Additionally, existing frameworks often fix the roles of P and D nodes, leading to computational imbalances. In this paper, we propose FlowKV, a novel disaggregated inference framework, which reduces the average transmission latency of KV cache by 96%, from 0.944s to 0.053s, almost eliminating the transfer time relative to the total request latency by optimizing the KV cache transfer. FlowKV introduces the Load-Aware Scheduler for balanced request scheduling and flexible PD node allocation. This design maximizes hardware resource utilization, achieving peak system throughput across various scenarios, including normal, computational imbalance, and extreme overload conditions. Experimental results demonstrate that FlowKV significantly accelerates inference by 15.2%-48.9% on LongBench dataset compared to the baseline and supports applications with heterogeneous GPUs.
title FlowKV: A Disaggregated Inference Framework with Low-Latency KV Cache Transfer and Load-Aware Scheduling
topic Distributed, Parallel, and Cluster Computing
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2504.03775