Demystifying Cost-Efficiency in LLM Serving over Heterogeneous GPUs
Department of Computer Science, University of Cambridge, Cambridgeshire, UK
arXiv:2502.00722 [cs.DC], (2 Feb 2025)
@misc{jiang2025demystifyingcostefficiencyllmserving,
title={Demystifying Cost-Efficiency in LLM Serving over Heterogeneous GPUs},
author={Youhe Jiang and Fangcheng Fu and Xiaozhe Yao and Guoliang He and Xupeng Miao and Ana Klimovic and Bin Cui and Binhang Yuan and Eiko Yoneki},
year={2025},
eprint={2502.00722},
archivePrefix={arXiv},
primaryClass={cs.DC},
url={https://arxiv.org/abs/2502.00722}
}
Recent advancements in Large Language Models (LLMs) have led to increasingly diverse requests, accompanied with varying resource (compute and memory) demands to serve them. However, this in turn degrades the cost-efficiency of LLM serving as common practices primarily rely on homogeneous GPU resources. In response to this problem, this work conducts a thorough study about serving LLMs over heterogeneous GPU resources on cloud platforms. The rationale is that different GPU types exhibit distinct compute and memory characteristics, aligning well with the divergent resource demands of diverse requests. Particularly, through comprehensive benchmarking, we discover that the cost-efficiency of LLM serving can be substantially optimized by meticulously determining GPU composition, deployment configurations, and workload assignments. Subsequently, we design a scheduling algorithm via mixed-integer linear programming, aiming at deducing the most cost-efficient serving plan under the constraints of price budget and real-time GPU availability. Remarkably, our approach effectively outperforms homogeneous and heterogeneous baselines under a wide array of scenarios, covering diverse workload traces, varying GPU availablilities, and multi-model serving. This casts new light on more accessible and efficient LLM serving over heterogeneous cloud resources.
February 10, 2025 by hgpu