Document Type
Article
Source Publication Title
The 17th ACM International Systems and Storage Conference
DOI
https://dl.acm.org/doi/10.1145/3688351.3689164
Abstract
When trained Large Language Models (LLMs) become available, it is desirable to carry out LLM inferences at the user end with limited resources. A common belief on LLM inference is that GPU is essentially the only meaningful processor as almost all computation is tensor multiplication that GPU excels in. However, this belief and its practice are challenged by the fact that GPU has insufficient memory and runs at a much slower speed due to constantly waiting for data to be loaded from the CPU memory via a slow PCIe bus. This makes the CPU a processor with meaningful computing power that can be leveraged to accelerate the inference. In this paper, we propose a new computing paradigm to accommodate the twin computing engines (GPU and CPU) and the hierarchical memory architecture (GPU and CPU memory) in an asymmetric multiprocessing framework named TwinPilots. This framework enables an effective scheduling that balances the speeds of the CPU and the GPU. Our proposed scheduling strategy maximizes CPU and GPU utilization and fully hides the data loading time behind the CPU compute time. We have implemented TwinPilots in PyTorch and evaluated it on several language models (OPT and Llama) with various model sizes (13B, 30B, and 33B) on a server with an NVIDIA A10G GPU with 24GB memory and an AMD EPYC 7R32 CPU with 256GB memory. Experiment results show up to 3.39× speedup on inference throughput and 72.1% data transfer reduction compared with SOTA schemes.
Publication Date
9-16-2024
Language
English
License

This work is licensed under a Creative Commons Attribution 4.0 International License.
Recommended Citation
Jiang, Song; Yu, Chengye; Wang, Tianyu; Shao, Zili; Zhu, Linjie; and Zhou, Xu, "TwinPilots: A New Computing Paradigm for GPU-CPU Parallel LLM Inference" (2024). Association of Computing Machinery Open Access Agreement Publications-Archive. 109.
https://mavmatrix.uta.edu/utalibraries_acmoapubs/109