atlas

Research map / Large language models / Reasoning and chain of thought

HexGen: Generative Inference of Large Language Model over Heterogeneous Environment

ICML 2024 · Large language models › Reasoning and chain of thought · approach: Efficient LLM serving

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes HexGen, a distributed LLM inference engine with asymmetric tensor and pipeline parallelism and a genetic-algorithm scheduler that serves Llama-2 (70B) across heterogeneous GPUs and cross-datacenter networks.

Problem

Serving LLM generative inference cheaply over heterogeneous GPUs connected by heterogeneous (including cross-region) networks, where existing systems assume symmetric homogeneous parallel layouts.

Approach

Allow each pipeline stage to have its own number of layers and tensor-parallel degree, and find the device-to-pipeline assignment with a two-phase search: a genetic algorithm over GPU partitions with mutations (merge, split, swap) and a dynamic program for stage layout per pipeline, scored by an analytic cost model and the AlpaServe simulator.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Deploy inference across heterogeneous GPUs with asymmetric parallelism and scheduling instead of a homogeneous centralized deploymentLlama-2 (70B) inference · Heterogeneous full-price vs homogeneous deploymentlatency deadline: up to 2.3× lowerHelped
Deploy inference across heterogeneous GPUs with asymmetric parallelism and scheduling instead of a homogeneous centralized deploymentLlama-2 (70B) inference · Heterogeneous full-price vs homogeneous deploymentpeak request rate: up to 4× higher ($2× higher on average)Helped
Use a heterogeneous deployment at half the budgetHexGen · Heterogeneous half-price vs homogeneous deploymentinference service performanceNo clear effect
Add asymmetric parallel groupsHexGen · Heterogeneous full-price deploymentlatency deadline: up to 1.8× improvementHelped
Add asymmetric parallel groupsHexGen · Heterogeneous full-price deploymentpeak request rate: up to 2× higher ($1.5× on average)Helped
Use static scheduling with asymmetric parallelism instead of Petals' decentralized inference approachLlama-2 (70B) inference · Heterogeneous half-price deploymentlatency deadline: up to 3.5× lowerHelped
Use static scheduling with asymmetric parallelism instead of Petals' decentralized inference approachLlama-2 (70B) inference · Heterogeneous half-price deploymentrequest rate: up to 10× higherHelped
Use heterogeneous full-price deployment instead of Huggingface-TGI's homogeneous deploymentLlama-2 (70B) inference · End-to-end system comparisonlatency deadline: up to 1.25× lowerHelped
Use heterogeneous full-price deployment instead of Huggingface-TGI's homogeneous deploymentLlama-2 (70B) inference · End-to-end system comparisonrequest rateNo clear effect
Use constrained mutation rather than random mutation in the schedulerHexGen scheduler · Heterogeneous full-price and half-price scenariosSLO attainment: around 26% moreHelped
Remove the constrained mutation policy and use random mutation (ablation)HexGen scheduler · Heterogeneous full-price and half-price scenariosconvergenceHurt
Use fully asymmetric allocation rather than symmetric parallel executionLlama-2 (70B) inference · Heterogeneous 8-GPU case studyspeedup: 2× and 19× speedupHelped

Surprising findings

Limitations

Experimental setup

Datasets: real-world prompts (unnamed)

Benchmarks: SLO attainment under Poisson request workloads on Llama-2 (70B)

Metrics: SLO attainment minimum latency deadline at 99% attainment peak request rate search convergence

Baselines: FlashAttention (homogeneous) HuggingFace-TGI Petals HexGen without asymmetric parallelism random mutation search

Builds on: AlpaServe FlashAttention Petals PagedAttention

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy