Abstract
Serving Large Language Models (LLMs) typically relies on expensive, homogeneous GPU clusters, which struggle to efficiently handle the diverse compute and memory demands of real-world user requests. This paper introduces a novel scheduling framework that optimizes LLM serving across heterogeneous cloud GPUs, dynamically matching workload characteristics to the most cost-effective hardware. By co-optimizing GPU composition, deployment configurations, and workload assignments, the system boosts throughput by up to 41% within the same price budget.
The Challenge of Workload Heterogeneity
LLM inference consists of two distinct phases: the prefill phase (processing the input prompt), which is highly compute-bound, and the decoding phase (generating the output tokens), which is highly memory-bound.
In real-world scenarios, user requests exhibit massive "workload heterogeneity." For example, a request summarizing a massive document (long input, short output) demands heavy compute, while a chatbot generating a long story from a short prompt (short input, long output) demands high memory bandwidth. Standard practice involves deploying LLMs on homogeneous clusters of high-end datacenter GPUs (like Nvidia H100s), which is often cost-inefficient. An expensive H100 might be overkill for a memory-bound decoding task where a cheaper workstation GPU could achieve similar results for a fraction of the cost.
Proposed Framework: Three Pillars of Optimization
The authors propose a framework powered by a Mixed-Integer Linear Programming (MILP) algorithm to maximize cost-efficiency under real-world budget and hardware availability constraints. The framework rests on three pillars:
- Comprehensive Benchmarking: Profiling LLMs across six GPU types (datacenter, workstation, and consumer) and various parallelism strategies (Data, Tensor, and Pipeline Parallelism) to understand hardware performance across different workload shapes.
- MILP Formulation: A scheduling algorithm that co-optimizes GPU Composition (which GPUs to rent), Deployment Configuration (how to partition the model), and Workload Assignment (routing specific requests to the best-suited GPU replicas).
- Algorithmic Speedup: To handle large search spaces, the authors introduced a "binary-search-on-makespan" technique paired with knapsack approximations, drastically reducing the time required to find an optimal serving plan.
Key Insights and Hardware Synergy
A central finding of the research is that hardware matching is a game-changer. While datacenter GPUs (H100, A100) dominate compute-heavy tasks, workstation GPUs (A40, A6000, L40) often provide ~1.2× higher memory bandwidth per dollar, making them superior for memory-heavy decoding tasks. Consumer GPUs like the RTX 4090 were also found to be surprisingly cost-effective for smaller models like Llama3-8B.
Ablation studies highlighted the necessity of the three-pillar approach: disabling any single optimization (heterogeneous composition, deployment optimization, or workload assignment) reduced throughput by 27% to 34%. Maximum efficiency is only achieved when all three are optimized simultaneously.
Cost-Efficiency and Performance Results
The proposed method was evaluated using real-world traces from the Swiss AI Center, WildChat, and Azure. Compared to homogeneous baselines under the same hourly budget, the system achieved:
- Throughput: Up to 41% higher throughput (25% on average).
- Latency: Reduced serving latency by up to 54% (20% on average).
- Competitive Advantage: The system outperformed existing heterogeneous frameworks like HexGen (by up to 18%) and Helix (by 25–35%).
Limitations and Future Work
While the framework is highly effective, it currently relies on a static MILP formulation that assumes a known batch of workloads. Although the authors discuss an online replanning mechanism for sudden surges, the primary algorithm is offline. Additionally, the system requires a one-time profiling step for new models and hardware. Future work may focus on reducing this profiling overhead and further refining dynamic response to fluctuating cloud GPU availability.
Summary updated