HexGen: Generative Inference of Large Language Model over Heterogeneous Environment

Youhe Jiang, Ran Yan, Xiaozhe Yao, Yang Zhou, Beidi Chen +1 more
2/12/2026

No official code found. Best implementation: Relaxed-System-Lab/HexGen (36 stars, Apache-2.0, last commit 2024-05-06).

Abstract

Serving generative inference of the large language model is a crucial component of contemporary AI applications. This paper focuses on deploying such services in a heterogeneous and cross-datacenter setting to mitigate the substantial inference costs typically associated with a single centralized datacenter. Towards this end, we propose HexGen, a flexible distributed inference engine that uniquely supports the asymmetric partition of generative inference computations over both tensor model parallelism and pipeline parallelism and allows for effective deployment across diverse GPUs interconnected by a fully heterogeneous network. We further propose a sophisticated scheduling algorithm grounded in constrained optimization that can adaptively assign asymmetric inference computation across the GPUs to fulfill inference requests while maintaining acceptable latency levels. We conduct an extensive evaluation to verify the efficiency of HexGen by serving the state-of-the-art Llama-2 (70B) model. The results suggest that HexGen can choose to achieve up to 2.3 times lower latency deadlines or tolerate up to 4 times more request rates compared with the homogeneous baseline given the same budget.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

[ICML 2024] Serving LLMs on heterogeneous decentralized clusters.

363Shell, PythonNov 30, 20232 years agoApache-2.0
decentralizeddeep-learninggenerative-inferenceheterogeneouslarge-language-models+3 more

Similar Papers

Cite this paper

@article{jiang2026hexgen,
  title  = {HexGen: Generative Inference of Large Language Model over Heterogeneous Environment},
  author = {Youhe Jiang and Ran Yan and Xiaozhe Yao and Yang Zhou and Beidi Chen and Binhang Yuan},
  year   = {2026},
  eprint = {2311.11514},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2311.11514},
  journal = {ICML 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.11514.svg)](https://codeofpaper.com/paper/2311.11514)

Discussion