Unlock the Potential of Fine-grained LLM Serving via Dynamic Module Scaling

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Wu, Jingfeng, He, Yiyuan, Xu, Minxian, Gao, Xitong, Ye, Kejiang, Xu, Chengzhong
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866912499243155456
author Wu, Jingfeng
He, Yiyuan
Xu, Minxian
Gao, Xitong
Ye, Kejiang
Xu, Chengzhong
author_facet Wu, Jingfeng
He, Yiyuan
Xu, Minxian
Gao, Xitong
Ye, Kejiang
Xu, Chengzhong
contents The rise of large language models (LLMs) has created new opportunities across various fields but has also introduced significant challenges in resource management. Current LLM serving systems face a fundamental tension: balancing serving demands with limited resources while adapting to unpredictable traffic patterns. Static deployments lead to suboptimal resource utilization and performance degradation under dynamic workloads. Furthermore, the high cost of adjusting instances hinders dynamic scaling, limiting the true potential of efficient LLM serving. To address this, we propose CoCoServe, an elastic system that facilitates dynamic and fine-grained scaling. Its key innovation lies in the module-level operations for the replication and migration of LLM modules, such as decoder layers and projections. Through a comprehensive analysis of the trade-offs associated with these operations, we develop an auto-scaling mechanism that dynamically regulates module-level resource allocation and performance optimization, enabling a more cost-effective deployment of LLMs. Our evaluation demonstrates that the scaling operations employed by CoCoServe exhibit excellent scalability and can reduce costs by 46% while maintaining availability. Compared to state-of-the-art LLM serving systems (e.g., Hugging Face Transformers and vLLM), our approach reduces latency by 14%-75% and achieves 1.16x-4x throughput on average across different model sizes and workloads.
format Preprint
id arxiv_https___arxiv_org_abs_2507_18006
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Unlock the Potential of Fine-grained LLM Serving via Dynamic Module Scaling
Wu, Jingfeng
He, Yiyuan
Xu, Minxian
Gao, Xitong
Ye, Kejiang
Xu, Chengzhong
Distributed, Parallel, and Cluster Computing
The rise of large language models (LLMs) has created new opportunities across various fields but has also introduced significant challenges in resource management. Current LLM serving systems face a fundamental tension: balancing serving demands with limited resources while adapting to unpredictable traffic patterns. Static deployments lead to suboptimal resource utilization and performance degradation under dynamic workloads. Furthermore, the high cost of adjusting instances hinders dynamic scaling, limiting the true potential of efficient LLM serving. To address this, we propose CoCoServe, an elastic system that facilitates dynamic and fine-grained scaling. Its key innovation lies in the module-level operations for the replication and migration of LLM modules, such as decoder layers and projections. Through a comprehensive analysis of the trade-offs associated with these operations, we develop an auto-scaling mechanism that dynamically regulates module-level resource allocation and performance optimization, enabling a more cost-effective deployment of LLMs. Our evaluation demonstrates that the scaling operations employed by CoCoServe exhibit excellent scalability and can reduce costs by 46% while maintaining availability. Compared to state-of-the-art LLM serving systems (e.g., Hugging Face Transformers and vLLM), our approach reduces latency by 14%-75% and achieves 1.16x-4x throughput on average across different model sizes and workloads.
title Unlock the Potential of Fine-grained LLM Serving via Dynamic Module Scaling
topic Distributed, Parallel, and Cluster Computing
url https://arxiv.org/abs/2507.18006