LLM-PQ: Serving LLM on Heterogeneous Clusters with Phase-Aware Partition and Adaptive Quantization

Juntao Zhao, Borui Wan, Yanghua Peng, Haibin Lin, Chuan Wu
3/2/2024
cs.LGcs.AIcs.DC

No official code found. Best implementation: tonyzhao-jt/LLM-PQ (39 stars, last commit 2025-08-29).

Abstract

Recent breakthroughs in Large-scale language models (LLMs) have demonstrated impressive performance on various tasks. The immense sizes of LLMs have led to very high resource demand and cost for running the models. Though the models are largely served using uniform high-caliber GPUs nowadays, utilizing a heterogeneous cluster with a mix of available high- and low-capacity GPUs can potentially substantially reduce the serving cost. There is a lack of designs to support efficient LLM serving using a heterogeneous cluster, while the current solutions focus on model partition and uniform compression among homogeneous devices. This paper proposes LLM-PQ, a system that advocates adaptive model quantization and phase-aware partition to improve LLM serving efficiency on heterogeneous GPU clusters. We carefully decide on mixed-precision model quantization together with phase-aware model partition and micro-batch sizing in distributed LLM serving with an efficient algorithm, to greatly enhance inference throughput while fulfilling user-specified model quality targets. Extensive experiments on production inference workloads in 11 different clusters demonstrate that LLM-PQ achieves up to 2.88x (2.26x on average) throughput improvement in inference, showing great advantages over state-of-the-art works.

View on arXivView PDF

Code Implementations(1)

tonyzhao-jt/LLM-PQCommunity100%

Official Repo for "SplitQuant / LLM-PQ: Resource-Efficient LLM Offline Serving on Heterogeneous GPUs via Phase-Aware Model Partition and Adaptive Quantization"

393Shell, PythonMar 28, 20231 years ago

Similar Papers

Cite this paper

@article{zhao2024llmpq,
  title  = {LLM-PQ: Serving LLM on Heterogeneous Clusters with Phase-Aware Partition and Adaptive Quantization},
  author = {Juntao Zhao and Borui Wan and Yanghua Peng and Haibin Lin and Chuan Wu},
  year   = {2024},
  eprint = {2403.01136},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.01136v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2403.01136.svg)](https://codeofpaper.com/paper/2403.01136)

Discussion