semi-PD: Towards Efficient LLM Serving via Phase-Wise Disaggregated Computation and Unified Storage

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Hong, Ke, Chen, Lufang, Wang, Zhong, Li, Xiuhong, Mao, Qiuli, Ma, Jianping, Xiong, Chao, Wu, Guanyu, Han, Buhe, Dai, Guohao, Liang, Yun, Wang, Yu
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866912350388355072
author Hong, Ke
Chen, Lufang
Wang, Zhong
Li, Xiuhong
Mao, Qiuli
Ma, Jianping
Xiong, Chao
Wu, Guanyu
Han, Buhe
Dai, Guohao
Liang, Yun
Wang, Yu
author_facet Hong, Ke
Chen, Lufang
Wang, Zhong
Li, Xiuhong
Mao, Qiuli
Ma, Jianping
Xiong, Chao
Wu, Guanyu
Han, Buhe
Dai, Guohao
Liang, Yun
Wang, Yu
contents Existing large language model (LLM) serving systems fall into two categories: 1) a unified system where prefill phase and decode phase are co-located on the same GPU, sharing the unified computational resource and storage, and 2) a disaggregated system where the two phases are disaggregated to different GPUs. The design of the disaggregated system addresses the latency interference and sophisticated scheduling issues in the unified system but leads to storage challenges including 1) replicated weights for both phases that prevent flexible deployment, 2) KV cache transfer overhead between the two phases, 3) storage imbalance that causes substantial wasted space of the GPU capacity, and 4) suboptimal resource adjustment arising from the difficulties in migrating KV cache. Such storage inefficiency delivers poor serving performance under high request rates. In this paper, we identify that the advantage of the disaggregated system lies in the disaggregated computation, i.e., partitioning the computational resource to enable the asynchronous computation of two phases. Thus, we propose a novel LLM serving system, semi-PD, characterized by disaggregated computation and unified storage. In semi-PD, we introduce a computation resource controller to achieve disaggregated computation at the streaming multi-processor (SM) level, and a unified memory manager to manage the asynchronous memory access from both phases. semi-PD has a low-overhead resource adjustment mechanism between the two phases, and a service-level objective (SLO) aware dynamic partitioning algorithm to optimize the SLO attainment. Compared to state-of-the-art systems, semi-PD maintains lower latency at higher request rates, reducing the average end-to-end latency per request by 1.27-2.58x on DeepSeek series models, and serves 1.55-1.72x more requests adhering to latency constraints on Llama series models.
format Preprint
id arxiv_https___arxiv_org_abs_2504_19867
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle semi-PD: Towards Efficient LLM Serving via Phase-Wise Disaggregated Computation and Unified Storage
Hong, Ke
Chen, Lufang
Wang, Zhong
Li, Xiuhong
Mao, Qiuli
Ma, Jianping
Xiong, Chao
Wu, Guanyu
Han, Buhe
Dai, Guohao
Liang, Yun
Wang, Yu
Computation and Language
Distributed, Parallel, and Cluster Computing
Machine Learning
Existing large language model (LLM) serving systems fall into two categories: 1) a unified system where prefill phase and decode phase are co-located on the same GPU, sharing the unified computational resource and storage, and 2) a disaggregated system where the two phases are disaggregated to different GPUs. The design of the disaggregated system addresses the latency interference and sophisticated scheduling issues in the unified system but leads to storage challenges including 1) replicated weights for both phases that prevent flexible deployment, 2) KV cache transfer overhead between the two phases, 3) storage imbalance that causes substantial wasted space of the GPU capacity, and 4) suboptimal resource adjustment arising from the difficulties in migrating KV cache. Such storage inefficiency delivers poor serving performance under high request rates. In this paper, we identify that the advantage of the disaggregated system lies in the disaggregated computation, i.e., partitioning the computational resource to enable the asynchronous computation of two phases. Thus, we propose a novel LLM serving system, semi-PD, characterized by disaggregated computation and unified storage. In semi-PD, we introduce a computation resource controller to achieve disaggregated computation at the streaming multi-processor (SM) level, and a unified memory manager to manage the asynchronous memory access from both phases. semi-PD has a low-overhead resource adjustment mechanism between the two phases, and a service-level objective (SLO) aware dynamic partitioning algorithm to optimize the SLO attainment. Compared to state-of-the-art systems, semi-PD maintains lower latency at higher request rates, reducing the average end-to-end latency per request by 1.27-2.58x on DeepSeek series models, and serves 1.55-1.72x more requests adhering to latency constraints on Llama series models.
title semi-PD: Towards Efficient LLM Serving via Phase-Wise Disaggregated Computation and Unified Storage
topic Computation and Language
Distributed, Parallel, and Cluster Computing
Machine Learning
url https://arxiv.org/abs/2504.19867