Abstract
Low-Rank Adaptation (LoRA) has become the standard for fine-tuning Large Language Models (LLMs) due to its efficiency. However, serving hundreds of heterogeneous LoRA adapters in multi-tenant environments introduces significant performance challenges. We present LORASERVE, a distributed inference framework designed to handle rank heterogeneity. By employing rank-aware placement and workload-adaptive rebalancing, LORASERVE achieves up to 2× higher throughput and 9× lower tail latency while utilizing 50% fewer GPUs compared to state-of-the-art systems.
Introduction
In production environments, cloud providers often serve a massive number of LoRA adapters on shared GPU clusters. These adapters are inherently heterogeneous; some utilize low ranks (e.g., rank-8) for efficiency, while others use high ranks (e.g., rank-128) for higher capacity. Existing systems like vLLM or S-LoRA treat these adapters uniformly, leading to a "Bigger Lane" problem. When a small rank-8 adapter is co-batched with a rank-128 adapter, the smaller adapter's computation is forced to wait for the larger one, significantly increasing tail latency.
Furthermore, adapter popularity typically follows a power-law distribution, where a few adapters handle the vast majority of traffic. Static placement strategies fail to adapt to these skews, resulting in some GPUs being overwhelmed while others remain underutilized.
Methods
LORASERVE introduces a cluster orchestrator that treats adapter placement as a dynamic, rank-aware optimization problem. The system architecture is designed to minimize performance interference and maximize resource efficiency through four core components:
- Rank-Aware Placement Algorithm: LORASERVE groups adapters of similar ranks together. It uses a fractional bin-packing approach to dedicate server capacity based on current traffic demands and adapter ranks.
- Workload-Adaptive Rebalancing: The system monitors real-time traffic drifts. If an adapter's popularity shifts, the orchestrator migrates it to a more suitable server to maintain balance.
- Distributed Adapter Pool: To avoid the memory overhead of full replication, LORASERVE stores adapters across the cluster. Servers fetch required adapters via GPUDirect RDMA over InfiniBand, making the physical location of an adapter nearly irrelevant to performance.
- Probabilistic Routing: A centralized routing table directs requests to specific servers with calculated probabilities to ensure perfectly balanced loads.
Evaluation
The system was evaluated using production traces from a major cloud provider and the 2024 Azure Public Dataset. Testing was performed on the Llama-2 and Llama-3 model families (7B to 70B parameters).
Key results include:
- Performance: LORASERVE delivers up to 2× higher throughput and reduces Time-To-First-Token (TTFT) by up to 9× compared to S-LoRA.
- Efficiency: The system meets strict Service Level Objectives (SLOs) using 50% fewer GPUs than baseline systems.
- Storage: The distributed pool reduces adapter memory footprint by up to 16× compared to full replication.
Conclusion
LORASERVE demonstrates that rank-aware orchestration is essential for scaling multi-tenant LoRA services. While the system relies on high-speed interconnects like InfiniBand for its distributed pool, it provides a robust solution for the performance interference and load balancing issues inherent in heterogeneous workloads. Future work will focus on supporting multiple different base models simultaneously.
Summary updated