HyperGen: Optimizing Generative Inference with Long Prompts for Resource-Constrained Systems
Generative inference with long prompts often exceeds GPU memory limits in resource-constrained systems (e.g., workstations and edge devices), thereby causing inference failures. We present HyperGen, a lightweight generative inference framework that optimizes the prefill stage (i.e., when input prompts are processed) via two fine-grained partitioning techniques: (i) partitioning and loading model parameters with size awareness into GPU memory; and (ii) partitioning computations of different inference steps to fit into GPU memory and offloading concatenation of partial results to CPU memory. Evaluation shows that HyperGen supports a maximum prompt length of up to 3.8× longer than an existing GPU-based inference approach and reduces the time-to-first-token from hours to seconds compared to the CPU-based prefill approach.
Authors
- Patrick P. C. Lee (ORCID: https://orcid.org/0000-0002-4501-4364)
- Dan Feng (ORCID: https://orcid.org/0000-0002-4674-6006)
- Lu Gong (ORCID: https://orcid.org/0000-0002-7265-3831)
- Shujie Han (ORCID: https://orcid.org/0000-0001-5311-5782)
- Yuchong Hu (ORCID: https://orcid.org/0000-0003-1265-7141)
- Xiaolu Li (ORCID: https://orcid.org/0000-0002-3582-0792)
- Kaixin Liu
Institutions
- Northwestern Polytechnical University (CN)
- Chinese University of Hong Kong (HK)
- Huazhong University of Science and Technology (CN)
Publication Details
- Published
- 2025-10-09
- DOI
- https://doi.org/10.1145/3725783.3764409
- Primary Topic
- AI-based Problem Solving and Planning
- Type
- article
- Field-Weighted Citation Impact
- 0.00