paper-with-me

홈 › Papers

SpotServe: Serving Generative Large Language Models on Preemptible Instances

2023-11-27 · Xupeng Miao, Chunan Shi, Jiangfei Duan, Xiaoli Xi, Dahua Lin, Bin Cui, Zhihao Jia

The high computational and memory requirements of generative large language models (LLMs) make it challenging to serve them cheaply. This paper aims to reduce the monetary cost for serving LLMs by leveraging preemptible GPU instances on modern clouds, which offer accesses to spare GPUs at a much cheaper price than regular instances but may be preempted by the cloud at any time. Serving LLMs on preemptible instances requires addressing challenges induced by frequent instance preemptions and the necessity of migrating instances to handle these preemptions. This paper presents SpotServe, the first distributed LLM serving system on preemptible instances. Several key techniques in SpotServe realize fast and reliable serving of generative LLMs on cheap preemptible instances. First, SpotServe dynamically adapts the LLM parallelization configuration for dynamic instance availability and fluctuating workload, while balancing the trade-off among the overall throughput, inference latency and monetary costs. Second, to minimize the cost of migrating instances for dynamic reparallelization, the task of migrating instances is formulated as a bipartite graph matching problem, which uses the Kuhn-Munkres algorithm to identify an optimal migration plan that minimizes communications. Finally, to take advantage of the grace period offered by modern clouds, we introduce stateful inference recovery, a new inference mechanism that commits inference progress at a much finer granularity and allows SpotServe to cheaply resume inference upon preemption. We evaluate on real spot instance preemption traces and various popular LLMs and show that SpotServe can reduce the P99 tail latency by 2.4 - 9.1x compared with the best existing LLM serving systems. We also show that SpotServe can leverage the price advantage of preemptive instances, saving 54% monetary cost compared with only using on-demand instances.

📄 PDF Abstract BibTeX arXiv:2311.15566

Code (1)

hsword/spotserve 공식 구현

Tasks

GPUGraph Matching

Similar Papers 제목 키워드 기반

PREMA: A Predictive Multi-task Scheduling Algorithm For Preemptible Neural Processing Units

2019-09-06 · Yujeong Choi, Minsoo Rhu

To amortize cost, cloud vendors providing DNN acceleration as a service to end-users employ consolidation and virtualization to share the underlying resources among multiple DNN service requests. This paper makes a case …

Scheduling

RLBoost: Harvesting Preemptible Resources for Cost-Efficient Reinforcement Learning on LLMs

2025-10-22 · Yongji Wu, Xueshen Liu, Haizhong Zheng, Juncheng Gu 외 arxiv

Reinforcement learning (RL) has become essential for unlocking advanced reasoning capabilities in large language models (LLMs). RL workflows involve interleaving rollout and training stages with fundamentally different r…

Reinforcement Learning

SWARM Parallelism: Training Large Models Can Be Surprisingly Communication-Efficient

2023-01-27 · Max Ryabinin, Tim Dettmers, Michael Diskin, Alexander Borzunov

Many deep learning applications benefit from using large models with billions of parameters. Training these models is notoriously expensive due to the need for specialized HPC clusters. In this work, we consider alternat…

Language ModelingLanguage Modelling

RLAX: Large-Scale, Distributed Reinforcement Learning for Large Language Models on TPUs

2025-12-06 · Runlong Zhou, Lefan Zhang, Shang-Chen Wu, Kelvin Zou 외 arxiv

Reinforcement learning (RL) has emerged as the de-facto paradigm for improving the reasoning capabilities of large language models (LLMs). We have developed RLAX, a scalable RL framework on TPUs. RLAX employs a parameter…

Reinforcement Learning

Distributed Deep Learning Using Volunteer Computing-Like Paradigm

2021-03-16 · Medha Atre, Birendra Jha, Ashwini Rao

Use of Deep Learning (DL) in commercial applications such as image classification, sentiment analysis and speech recognition is increasing. When training DL models with large number of parameters and/or large datasets, c…

Deep Learningimage-classificationImage ClassificationSentiment Analysis+2