Engine-Agnostic Model Hot-Swapping for Cost-Effective LLM Inference
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.
Authors
- Rodrigo Bruno (ORCID: https://orcid.org/0000-0003-1578-5149)
- Viktória Spišaková (ORCID: https://orcid.org/0000-0001-5204-1478)
- Radostin Stoyanov (ORCID: https://orcid.org/0000-0001-9688-2615)
- Marcin Copik (ORCID: https://orcid.org/0000-0002-7606-5519)
- Wesley Armour (ORCID: https://orcid.org/0000-0003-1756-3064)
- Adrian Reber (ORCID: https://orcid.org/0009-0007-4959-6561)
Institutions
- Instituto de Engenharia de Sistemas e Computadores Investigação e Desenvolvimento (PT)
- University of Lisbon (PT)
- Masaryk University (CZ)
- ETH Zurich (CH)
- University of Oxford (GB)
Publication Details
- Published
- 2025-11-07
- DOI
- https://doi.org/10.1145/3731599.3767354
- Citations
- 1
- Primary Topic
- Advanced Neural Network Applications
- Type
- article
- Field-Weighted Citation Impact
- 1.28