Engine-Agnostic Model Hot-Swapping for Cost-Effective LLM Inference

Radostin Stoyanov, Viktória Spišaková, Adrian Reber, Wesley Armour, Marcin Copik, Rodrigo Bruno2025

Abstract

The widespread adoption of Large Language Models (LLMs) has led to an increased demand for large-scale inference services, presenting a unique set of challenges for the HPC community. These services are characterized by moderate-scale models that require dedicating expensive GPUs to handle bursty inference requests, leading to high costs and resource underutilization. In this paper, we propose SwapServeLLM — a novel engine-agnostic hot-swapping method for cost-effective inference. This model hot-swapping approach is enabled by recent driver capabilities for transparent GPU checkpointing. SwapServeLLM optimizes resource utilization by dynamically allocating GPU resources with two key mechanisms: (1) a demand-aware preemption leveraging information about concurrent requests, and (2) efficient request routing with memory reservation minimizing inference latency. Our evaluation demonstrates that SwapServeLLM optimizes model loading for state-of-the-art inference engines by 31 × compared to vLLM and up to 29% compared to Ollama, enabling cost-effective inference.
BibTeX
@misc{stoyanov2025engine,
  author = {Radostin Stoyanov and Viktória Spišaková and Adrian Reber and Wesley Armour and Marcin Copik and Rodrigo Bruno},
  title = {{Engine-Agnostic Model Hot-Swapping for Cost-Effective LLM Inference}},
  year = {2025},
  doi = {10.1145/3731599.3767354},
}

Loading related content...

Figure