Saved in:
Bibliographic Details
Main Authors: Zhuge, Xiangwen, Shen, Xu, Wang, Zeyu, Dang, Fan, Ding, Xuan, Li, Danyang, Han, Yahui, Hao, Tianxiang, Yang, Zheng
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2505.10259
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866908373247590400
author Zhuge, Xiangwen
Shen, Xu
Wang, Zeyu
Dang, Fan
Ding, Xuan
Li, Danyang
Han, Yahui
Hao, Tianxiang
Yang, Zheng
author_facet Zhuge, Xiangwen
Shen, Xu
Wang, Zeyu
Dang, Fan
Ding, Xuan
Li, Danyang
Han, Yahui
Hao, Tianxiang
Yang, Zheng
contents Efficient LLM inference on resource-constrained devices presents significant challenges in compute and memory utilization. Due to limited GPU memory, existing systems offload model weights to CPU memory, incurring substantial I/O overhead between the CPU and GPU. This leads to two major inefficiencies: (1) GPU cores are underutilized, often remaining idle while waiting for data to be loaded; and (2) GPU memory has low impact on performance, as reducing its capacity has minimal effect on overall throughput.In this paper, we propose SpecOffload, a high-throughput inference engine that embeds speculative decoding into offloading. Our key idea is to unlock latent GPU resources for storing and executing a draft model used for speculative decoding, thus accelerating inference at near-zero additional cost. To support this, we carefully orchestrate the interleaved execution of target and draft models in speculative decoding within the offloading pipeline, and propose a planner to manage tensor placement and select optimal parameters. Compared to the best baseline, SpecOffload improves GPU core utilization by 4.49x and boosts inference throughput by 2.54x. Our code is available at https://github.com/MobiSense/SpecOffload-public .
format Preprint
id arxiv_https___arxiv_org_abs_2505_10259
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle SpecOffload: Unlocking Latent GPU Capacity for LLM Inference on Resource-Constrained Devices
Zhuge, Xiangwen
Shen, Xu
Wang, Zeyu
Dang, Fan
Ding, Xuan
Li, Danyang
Han, Yahui
Hao, Tianxiang
Yang, Zheng
Machine Learning
Efficient LLM inference on resource-constrained devices presents significant challenges in compute and memory utilization. Due to limited GPU memory, existing systems offload model weights to CPU memory, incurring substantial I/O overhead between the CPU and GPU. This leads to two major inefficiencies: (1) GPU cores are underutilized, often remaining idle while waiting for data to be loaded; and (2) GPU memory has low impact on performance, as reducing its capacity has minimal effect on overall throughput.In this paper, we propose SpecOffload, a high-throughput inference engine that embeds speculative decoding into offloading. Our key idea is to unlock latent GPU resources for storing and executing a draft model used for speculative decoding, thus accelerating inference at near-zero additional cost. To support this, we carefully orchestrate the interleaved execution of target and draft models in speculative decoding within the offloading pipeline, and propose a planner to manage tensor placement and select optimal parameters. Compared to the best baseline, SpecOffload improves GPU core utilization by 4.49x and boosts inference throughput by 2.54x. Our code is available at https://github.com/MobiSense/SpecOffload-public .
title SpecOffload: Unlocking Latent GPU Capacity for LLM Inference on Resource-Constrained Devices
topic Machine Learning
url https://arxiv.org/abs/2505.10259