Helix: Serving Large Language Models over Heterogeneous GPUs and Network via Max-Flow
Yixuan Mei, Yonghao Zhuang, Xupeng Miao, Juncheng Yang, Zhihao Jia, Rashmi Vinayak
TL;DR
Helix introduces a max-flow based framework for serving large language models across heterogeneous GPU clusters and networks. By modeling model placement as a MILP-optimized max-flow problem and introducing per-request pipelines, Helix jointly optimizes where to place model layers and how to route individual requests, achieving higher throughput and lower latency than heterogeneous baselines in both single and geo-distributed deployments. The approach is live-implemented atop vLLM with a dedicated MILP solver and a simulator, and is validated on LLaMA-30B/70B workloads across diverse hardware mixes, demonstrating up to 3.3x throughput gains and notable latency reductions. The work lays a foundation for scalable, network-aware LLM serving in heterogeneous data centers and across regions, with practical implications for cloud providers and large-scale AI deployments.
Abstract
This paper introduces Helix, a distributed system for high-throughput, low-latency large language model (LLM) serving in heterogeneous GPU clusters. The key idea behind Helix is to formulate inference computation of LLMs over heterogeneous GPUs and network connections as a max-flow problem on directed, weighted graphs, whose nodes represent GPU instances and edges capture both GPU and network heterogeneity through their capacities. Helix then uses a mixed integer linear programming (MILP) algorithm to discover highly optimized strategies to serve LLMs on heterogeneous GPUs. This approach allows Helix to jointly optimize model placement and request scheduling, two highly entangled tasks in heterogeneous LLM serving. Our evaluation on several heterogeneous clusters ranging from 24 to 42 GPU nodes shows that Helix improves serving throughput by up to 3.3x and reduces prompting and decoding latency by up to 66% and 24%, respectively, compared to existing approaches. Helix is available at https://github.com/Thesys-lab/Helix-ASPLOS25.
