arXiv:2610.39999cs.DCOct 2026

Manuscript Offprint

arXiv:2610.39999

PhOSv1: Efficient Scaling of Model Sleeping on a Single Server for Autoscaling with GPU-Context Deduplication

Tianle Sun, Xingda Wei, Rong Chen

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Autoscaling is a key mechanism in model-as-a-service systems, where fast scale-up is essential because the scale-up time directly determines how long a model service remains overloaded—which in turn governs serving quality. The state-of-the-art approach—model sleeping, adopted by mainstream serving engines including vLLM and SGLang—achieves near-zero-cost scale-up by pausing pre-spawned engines on the GPU. However, sleeping is not a free lunch: each sleeping model must keep its GPU context resident, and this cost grows linearly with the number of models, degrading serving performance. Because providers must support many models, they face a dilemma between fast scale-up for all models and high service performance.

In this paper, we show that a single server can keep many models asleep without paying this GPU context tax. The key observation is that the contexts of sleeping models are largely duplicated: the driver (CUDA) context can be shared across models, and their GPU kernel binaries overlap heavily due to common operators and libraries. PHOSV1 deduplicates this context by transparently delegating each engine's GPU context allocation to a central daemon through API remoting; therefore, a single server can keep far more models asleep than current engines allow. Our evaluation shows that PHOSV1 matches the scale-up time of vanilla vLLM sleep mode while substantially reducing the GPU memory footprint, improving end-to-end multi-model serving performance.

Keywords GPU context, LLM serving, cold start, checkpoint and restore, model pooling

1 Introduction

Model as a service—deploying multiple models on one or multiple shared clusters to serve LLM requests from applications—has become an important component of modern computing infrastructure [1–3]. Autoscaling—dynamically scaling an engine up and down on spare GPUs to serve a model—is essential for model-as-a-service systems. The reasons are twofold. First, a service provider typically deploys models from many vendors (e.g., DeepSeek, Qwen, GLM, and MiniMax), each of which offers models of different sizes. Second, the request arrival rate of a model fluctuates over time [1, 4, 5], because applications choose the requested model dynamically, depending on their budgets and capability requirements. If we statically deploy each model, assigning it a fixed number of GPUs without autoscaling, the model service becomes overloaded because it is underprovisioned when the request rate exceeds the capacity of the deployed GPUs. Conversely, GPUs become idle because of overprovisioning when the request rate decreases. Autoscaling dynamically adjusts each model's GPU allocation according to its changing request rate.

Efficient scale-up is a key system requirement for autoscaling. Scale-up is triggered when the request rate increases, but during the scale-up interval, the newly provisioned GPUs still cannot serve requests, so the model service remains overloaded. As a result, the scale-up time directly determines the duration of this overload, so model-as-a-service providers seek to minimize it.

Unfortunately, current model autoscaling has a long scale-up time because starting an engine capable of serving a model requires a complex control plane to create the necessary GPU contexts ( §2§2). To reduce this delay, the state-of-the-art method—adopted by standard engines including vLLM and SGLang—is model sleeping [1,6]. To avoid creating GPU contexts during startup, the system spawns multiple engines offline, each capable of serving one model online. After all the engines finish initialization, they are paused on the host server. Thus, a scale-up during online serving directly wakes up the engine, enabling near-zero-cost scale-up.

Model sleeping is not a free lunch. To keep one model asleep, each engine must keep a substantial amount of context on the GPU—including the driver context (CUDA context) and the model's GPU kernel binaries. This places a heavy burden on the GPU because GPU memory is limited and precious: in our experiment, sleeping 24 models consumes up to 27 GB (34%) of an 80 GB GPU's memory, and this occupancy scales linearly with the number of sleeping models. This memory footprint can further degrade throughput by up to 54% when serving one model, because modern models reserve GPU memory for intermediate results (KV cache) to accelerate computation. Sleep mode must preserve the costly parts of this context on the GPU because, unlike model parameters, which can be restored quickly [4], these context components cannot be restored quickly. This poses a dilemma for the service provider: to enable fast scale-up for all models, the server pays online service overhead, while to ensure high service performance, the provider can only sleep a few models on each server, so the service still pays the scale-up costs.

In this paper, we show that we can increase the number of sleeping models on one server without paying a linear GPU-context memory tax. The key observation is that the context for each sleeping model contains many duplicate components (up to 99% similarity between two popular models, as shown in Fig. 5): the driver context can be naturally shared across models, i.e., engines created later can reuse the driver context of an earlier engine, and the GPU kernel binaries of different models also substantially overlap because current models share operators and libraries ( §3§3). By deduplicating this context, we can dramatically reduce the memory required to support more sleeping models on one server.

To realize GPU context deduplication, we adopt a separation design that delegates each engine's GPU context allocation to a central system daemon, where we can identify and avoid creating unnecessary contexts. To be compatible with existing engines, we leverage API remoting [7, 8] to implement this delegation transparently. One challenge of deduplication is that many internal GPU buffers allocated during initialization cannot be effectively deduplicated. Fortunately, such buffers can be created on the fly much faster than the other context components, so we treat them differently: we leave them unallocated while the model sleeps and reconstruct them at wake-up time.

We have implemented deduplication from scratch and integrated it with vLLM's sleep mode. Our evaluation shows that PHOSV1 achieves a scale-up time similar to that of vanilla vLLM sleep mode while reducing the GPU memory footprint by 98.1% when sleeping 23 models. This saving improves end-to-end serving performance: in a multi-model trace replay, PHOSV1 reduces average time to first token by 87.0% over vanilla vLLM, which can sleep only a limited number of instances within the memory budget. PHOSV1 instead sleeps all required models without incurring the GPU memory burden of vanilla sleep mode.

Contributions. In summary, this paper makes the following contributions:

• The first characterization of the GPU-context memory tax of model sleeping and the opportunity to deduplicate it across models ( §2§2, §3§3).

• PHOSV1, a transparent GPU-context deduplication system with delegated context management in a service daemon, shares duplicate driver contexts and kernel binaries, and reconstructs non-deduplicable buffers only at wake-up time ( §3§3).

• An implementation integrated with vLLM sleep mode and an evaluation showing that PHOSV1 retains its near-zero-cost scale-up while reducing GPU-context memory use and improving end-to-end multi-model serving performance ( §4§4).

PHOSV1 is open-sourced at https://github.com/blitz-serving/PhoenixOSv1.

References (22)