English

Efficient LLM Inference on CPUs

Machine Learning 2023-12-08 v2 Artificial Intelligence Computation and Language

Abstract

Large language models (LLMs) have demonstrated remarkable performance and tremendous potential across a wide range of tasks. However, deploying these models has been challenging due to the astronomical amount of model parameters, which requires a demand for large memory capacity and high memory bandwidth. In this paper, we propose an effective approach that can make the deployment of LLMs more efficiently. We support an automatic INT4 weight-only quantization flow and design a special LLM runtime with highly-optimized kernels to accelerate the LLM inference on CPUs. We demonstrate the general applicability of our approach on popular LLMs including Llama2, Llama, GPT-NeoX, and showcase the extreme inference efficiency on CPUs. The code is publicly available at: https://github.com/intel/intel-extension-for-transformers.

Keywords

Cite

@article{arxiv.2311.00502,
  title  = {Efficient LLM Inference on CPUs},
  author = {Haihao Shen and Hanwen Chang and Bo Dong and Yu Luo and Hengyu Meng},
  journal= {arXiv preprint arXiv:2311.00502},
  year   = {2023}
}

Comments

NeurIPS'2023 on Efficient Natural Language and Speech Processing

R2 v1 2026-06-28T13:08:32.320Z