Papers › HexGen: Generative Inference of Large Language Model over Heterogeneous Environment

HexGen: Generative Inference of Large Language Model over Heterogeneous Environment

20 Nov 2023arXiv:2311.11514links table onlyarchive 2025-07-28

Youhe Jiang, Ran Yan, Xiaozhe Yao, Yang Zhou, Beidi Chen, Binhang Yuan

The archive published only this paper's code-link row. Authors, date and abstract are from arXiv's metadata (CC0), read from the Kaggle arXiv metadata snapshot of 2026-09-12 where its title matched the archive's; the title is the archive's.

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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2311.11514")

Code

Syntology Ran 3 of 10 code samples harvested from 1 repository linked to this paper; 7 have no recorded run. Of those that ran: 3 ran · our draft was wrong.

By repository: official repository: 10 samples from 1 repository, 3 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

relaxed-system-lab/hexgen officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

10 samples harvested; 3 ran; 0 honoured the contract we drafted; 7 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

3ran · our draft was wrong
7unverified

Licence: 0 of the 10 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from relaxed-system-lab/hexgen. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

chunk_batch relaxed-system-lab/hexgen/hexgen/hexgen_core/heterogeneous_pipeline.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 0d939562cce3288d · report
forward_step_func Relaxed-System-Lab/HexGen/hexgen/llama/llama_inference.py official repository ran · our draft was wrong Apache-2.0 (permissive) · be32a1cb7f68aa17 · report
unwrap_model relaxed-system-lab/hexgen/hexgen/hexgen_core/heterogeneous_pipeline.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 85b5684d7d73dde9 · report
PipelineParallel relaxed-system-lab/hexgen/hexgen/hexgen_core/heterogeneous_pipeline.py official repository unverified Apache-2.0 (permissive) · c7bc94829fa993b8 · report
delete_ddp_backward_hook relaxed-system-lab/hexgen/hexgen/hexgen_core/heterogeneous_pipeline.py official repository unverified Apache-2.0 (permissive) · 132c20e5030631e6 · report
delete_fsdp_post_backward_hook relaxed-system-lab/hexgen/hexgen/hexgen_core/heterogeneous_pipeline.py official repository unverified Apache-2.0 (permissive) · d4881cd6a9d551d8 · report
forward_delete_backward_hook relaxed-system-lab/hexgen/hexgen/hexgen_core/heterogeneous_pipeline.py official repository unverified Apache-2.0 (permissive) · f21a8acd941c3235 · report
post_pipeline_forward relaxed-system-lab/hexgen/hexgen/hexgen_core/heterogeneous_pipeline.py official repository unverified Apache-2.0 (permissive) · e38a8d0be6c626f6 · report
pre_pipeline_forward relaxed-system-lab/hexgen/hexgen/hexgen_core/heterogeneous_pipeline.py official repository unverified Apache-2.0 (permissive) · 6fc0d1e65a75823d · report
rewrite_fsdp_forward_no_post_backward relaxed-system-lab/hexgen/hexgen/hexgen_core/heterogeneous_pipeline.py official repository unverified Apache-2.0 (permissive) · bab49f78b2154c6f · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections