HydraServe: Minimizing Cold Start Latency for Serverless LLM Serving in Public Clouds
Chiheng Lou (School of Computer Science, Peking University), Sheng Qi (School of Computer Science, Peking University), Chao Jin (School of Computer Science, Peking University), Dapeng Nie (Alibaba Group), Haoran Yang (Alibaba Group), Yu Ding (Alibaba Group), Xuanzhe Liu (School of Computer Science, Peking University), Xin Jin (School of Computer Science, Peking University)
23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26) · Day 1 · Cloudy with a Chance of Tenants
Overview
The explosive growth of Large Language Models (LLMs) has forced public cloud providers to manage an expansive and diverse catalog of architectures, sizes, and task-specific fine-tunes. While Hugging Face hosts over 2 million models, usage remains heavily skewed: a small fraction of models dominate traffic, leaving the vast majority as long-tail assets characterized by sparse, bursty request patterns and relaxed Service Level Objectives (SLOs). Serverless inference has emerged as the most cost-efficient deployment paradigm for these long-tail workloads, dynamically scaling GPU resources up or down based on traffic while charging users only for active inference time. However, this elasticity introduces a severe operational bottleneck known as cold start latency, where an idle model's instance is reclaimed, forcing the system to provision a new instance from scratch when a fresh request arrives.

Key moments
- 0:00 Introduction and background on serverless LLM serving
- 2:05 The cold start problem and 45-second latency breakdown
- 5:15 First insight: Aggregating bandwidth via pipeline parallelism and consolidation
- 7:30 Second insight: Best effort overlapping of runtime preparation and fetching
- 10:00 Pipeline cold start, consolidation, and KV-cache migration
- 11:20 Trade-off analysis on TTFT, TPOT, and GPU costs
- 13:50 Stage overlapping implementation details
- 14:20 Evaluation results, TTFT reduction, and conclusion
HydraServe: Minimizing Cold Start Latency for Serverless LLM Serving in Public Clouds
Speakers: Chiheng Lou (School of Computer Science, Peking University); Sheng Qi (School of Computer Science, Peking University); Chao Jin (School of Computer Science, Peking University); Dapeng Nie (Alibaba Group); Haoran Yang (Alibaba Group); Yu Ding (Alibaba Group); Xuanzhe Liu (School of Computer Science, Peking University); Xin Jin (School of Computer Science, Peking University)
Conference: USENIX NSDI
YouTube: https://www.youtube.com/watch?v=o-iNpUDvrrA
Overview
The explosive growth of Large Language Models (LLMs) has forced public cloud providers to manage an expansive and diverse catalog of architectures, sizes, and task-specific fine-tunes. While Hugging Face hosts over 2 million models, usage remains heavily skewed: a small fraction of models dominate traffic, leaving the vast majority as long-tail assets characterized by sparse, bursty request patterns and relaxed Service Level Objectives (SLOs). Serverless inference has emerged as the most cost-efficient deployment paradigm for these long-tail workloads, dynamically scaling GPU resources up or down based on traffic while charging users only for active inference time. However, this elasticity introduces a severe operational bottleneck known as cold start latency, where an idle model's instance is reclaimed, forcing the system to provision a new instance from scratch when a fresh request arrives.
In production serverless GPU environments, a single cold start can consume up to 45 seconds before the user receives the first token—an intolerable delay for interactive applications. This talk presents HydraServe, a systems-level framework co-developed by researchers from Peking University and Alibaba Group designed to slash cold start latency without compromising steady-state throughput or inflating infrastructure costs. By rethinking how models are fetched, how runtimes are initialized, and how inference pipelines transition from cold startup to steady-state execution, HydraServe achieves dramatic speedups over state-of-the-art serving baselines.
Background
▶ Watch: Introduction and background on serverless LLM serving (0:00)
The economic and structural realities of public cloud infrastructure create a unique set of constraints for LLM serving. When a serverless instance undergoes a cold start, the end-to-end initialization pipeline is broken down into six sequential stages: creating the container, loading the software libraries, initializing the CUDA context, fetching model weights from remote storage, loading those weights into GPU memory, and finally executing the inference request.
Profiling production serverless GPU platforms reveals two dominant bottlenecks in this sequence. First, fetching the model accounts for roughly 25 seconds—more than half of the total cold start duration. This latency stems from network bandwidth limitations on GPU servers, which are multi-tenant environments where noisy neighbors consume bandwidth headroom, compounded by the cost-sensitive network configurations typically provisioned for serverless tiers. Second, runtime environment preparation (container creation, library loading, and CUDA context initialization) consumes over 10 seconds. Modern serving frameworks utilize heavy software stacks encompassing PyTorch, CUDA runtimes, custom fused kernels, and compilation caches. Because these operations are strictly sequential and each performs essential initialization work, simply eliminating them is impossible under standard execution models.
Prior work in serverless systems has attempted to optimize container startup or local caching, but these approaches fail to address the fundamental ceiling imposed by single-server network bandwidth and rigid software dependency chains. HydraServe targets this gap by introducing architectural parallelism for model acquisition and asynchronous overlap for runtime preparation.
Key Findings
▶ Watch: First insight: Aggregating bandwidth via pipeline parallelism and consolidation (5:15)
HydraServe’s core contributions center around resolving the tension between rapid instantiation and efficient steady-state execution. The main findings and results demonstrated in the system evaluation include:
- Aggregated Network Bandwidth via Pipeline Parallelism: By sharding model weights across the layer dimension and distributing fetching across multiple servers, HydraServe circumvents single-tenant network bottlenecks.
- Zero Steady-State Latency Penalty: Through a runtime mechanism called pipeline consolidation, HydraServe collapses multi-worker pipeline parallelism back down to a single-node deployment once the cold start phase concludes, ensuring that steady-state Time Per Output Token (TPOT) matches standard single-node serving.
- Hidden Runtime Preparation: By executing GPU runtime environment setup concurrently with model fetching and using low-level CUDA APIs to stream weights directly into GPU memory prior to Python library loading, HydraServe hides CPU and disk-bound initialization tasks behind network transfers.
- Substantial Latency Reductions: In empirical evaluations against production baselines, HydraServe delivers a 2.1 to 4.7 times reduction in Time to First Token (TTFT) compared to standard vLLM, and a 1.7 to 3.1 times reduction compared to ServLM, an existing system optimized for cold starts.
- Improved SLO Attainment: Under realistic bursty workloads, HydraServe improves TTFT SLO attainment by 1.43 to 1.74 times, translating raw cold-start savings into reliable user-facing performance.
Technical Deep Dive
▶ Watch: Pipeline cold start, consolidation, and KV-cache migration (10:00)
HydraServe’s architecture is structured across three distinct layers—cluster, worker, and inference—operating in concert to eliminate cold start overheads through two primary mechanisms: pipeline cold starts and stage-ahead overlapping.
Pipeline Cold Starts and Consolidation
The primary insight behind HydraServe’s network optimization is that model fetching is bottlenecked at the individual GPU server side, not at the remote storage tier. Rather than attempting to force higher throughput through a single constrained network interface, HydraServe maps model fetching onto pipeline parallelism. When a cold start is triggered, the cluster scheduler spins up multiple workers, assigning each worker a distinct layer slice of the model.
While pipeline parallelism successfully aggregates network bandwidth to fetch weights rapidly, it introduces a major drawback: regular inference latency increases because tokens must cross multiple network nodes to pass activation tensors between layers. HydraServe solves this via pipeline consolidation. Once the initial cold start phase completes and the instance begins serving traffic, Worker 0 asynchronously fetches the remaining model weight shards from storage in the background without disrupting foreground serving.
To handle in-flight requests during consolidation without interruption, HydraServe migrates the Key-Value (KV) cache across workers. Requests seamlessly transition to Worker 0, after which the auxiliary workers are released back to the cluster resource pool. Steady-state inference then proceeds at single-node latency.
SLO-Aware Resource Allocation
Because allocating more pipeline stages increases resource consumption (measured in GPU-hours), HydraServe incorporates an SLO-aware resource allocation algorithm. Larger models with tighter SLOs are assigned more pipeline stages. Conversely, smaller models or relaxed SLOs utilize fewer stages and reduced per-worker GPU memory allocations. Because compute capacity in public cloud GPUs is proportional to allocated memory, reducing a worker's memory footprint lowers infrastructure cost at the expense of a proportional increase in TPOT. The resource allocation engine balances these trade-offs dynamically based on model size and user constraints.
Best-Effort Stage Overlapping
The second core mechanism addresses the CPU- and disk-bound runtime preparation stages (container creation, library loading, and CUDA context initialization). HydraServe observes that these stages have weak data dependencies with network transmission.
The system implements stage overlapping through two tightly integrated components:
- Model Prefetcher: Initiates weight transfers from remote storage into host DRAM before the execution container is even fully created, ensuring weights are resident in host memory ahead of time.
- Parameter Manager: Begins copying weights from host memory to GPU memory before Python libraries finish loading. By leveraging low-level CUDA APIs directly, the system bypasses the need for fully initialized Python runtimes during early transfer phases.
Consequently, container creation, library loading, and CUDA initialization times are completely masked behind network fetching and GPU memory loading.
Experimental Setup & Results
▶ Watch: Trade-off analysis on TTFT, TPOT, and GPU costs (11:20)
HydraServe is evaluated on a hybrid GPU cluster comparing its performance against vLLM and ServLM. Benchmarks utilize realistic production workloads characterized by bursty, sparse request arrivals typical of long-tail model deployments in public clouds.
- Raw Cold Start Latency (TTFT): Measured against vLLM, HydraServe achieves a 2.1× to 4.7× reduction in TTFT. Against ServLM—a baseline specifically tuned for cold start mitigation—HydraServe achieves a 1.7× to 3.1× reduction across varying model scales and GPU architectures.
- End-to-End SLO Attainment: Under realistic request traffic, HydraServe improves TTFT SLO attainment rates by 1.43× to 1.74×.
- Steady-State Performance (TPOT): Because pipeline stages are consolidated into single-node execution following startup, HydraServe incurs only a minor 1.06× increase in steady-state TPOT compared to standard serverless Virtual Machine (VM) deployments.
- Cost Efficiency: Despite utilizing multiple workers during the initial cold start window, HydraServe reduces overall operational costs relative to baselines. This efficiency gain stems from drastically shorter cold start lifetimes, which reduces the duration of unutilized resource holding periods.
Practical Implications
▶ Watch: Evaluation results, TTFT reduction, and conclusion (14:20)
For infrastructure teams and cloud architects deploying serverless LLM infrastructure, HydraServe demonstrates that cold start latencies can be structurally dismantled by treating model acquisition and runtime initialization as distributed, parallelizable systems problems rather than single-node bottlenecks.
For model builders and deployers, the framework eliminates the traditional trade-off between offering a vast, long-tail catalog of fine-tuned models and maintaining acceptable user responsiveness. Because long-tail models can now be spun up in a fraction of their former startup time without incurring long-term latency or inflated memory costs, platforms can expand model offerings safely. However, deployers must carefully configure SLO-aware resource allocation policies to balance the cost of auxiliary pipeline workers against strict TTFT targets.
Key Takeaways
- The Long-Tail Serverless Challenge: Public clouds face massive catalogs of long-tail LLMs with bursty traffic, making serverless GPU autoscaling essential for cost efficiency, though cold starts up to 45 seconds severely degrade user experience.
- Bandwidth Aggregation via Pipeline Parallelism: Splitting model fetching across multiple workers aggregates public cloud network bandwidth, drastically reducing weight-loading time.
- Zero Steady-State Latency Penalty: Pipeline consolidation asynchronously merges distributed workers back into a single-node instance and migrates KV caches in-flight, preserving native single-node inference latency.
- Asynchronous Stage Overlapping: Decoupling runtime environment preparation from data movement using low-level CUDA APIs hides CPU/disk initialization behind network transfers.
- Production-Grade Improvements: HydraServe delivers up to a 4.7× reduction in TTFT and improves SLO attainment by up to 1.74× over state-of-the-art baselines while maintaining cost efficiency.
About the Speaker(s)
The research was presented by Chiheng Lou, a student researcher from the School of Computer Science at Peking University, representing a collaborative effort between Peking University and systems engineers at Alibaba Group.
Reviews
→ Top-rated talks at 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)
All talks from 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)