paper-with-me

Papers

Inference Performance Optimization for Large Language Models on CPUs

2024-07-10 · Pujiang He, Shan Zhou, Wenhuan Huang, Changqing Li, Duyi Wang, Bin Guo, Chen Meng, Sheng Gui, Weifei Yu, Yi Xie

Large language models (LLMs) have shown exceptional performance and vast potential across diverse tasks. However, the deployment of LLMs with high performance in low-resource environments has garnered significant attention in the industry. When GPU hardware resources are limited, we can explore alternative options on CPUs. To mitigate the financial burden and alleviate constraints imposed by hardware resources, optimizing inference performance is necessary. In this paper, we introduce an easily deployable inference performance optimization solution aimed at accelerating LLMs on CPUs. In this solution, we implement an effective way to reduce the KV cache size while ensuring precision. We propose a distributed inference optimization approach and implement it based on oneAPI Collective Communications Library. Furthermore, we propose optimization approaches for LLMs on CPU, and conduct tailored optimizations for the most commonly used models. The code is open-sourced at https://github.com/intel/xFasterTransformer.

📄 PDF Abstract BibTeX arXiv:2407.07304

Code (1)

intel/xfastertransformer 공식 구현 pytorch

Tasks

CPUGPUInference Optimization

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Attention 설명 없음
Library 설명 없음

Similar Papers 제목 키워드 기반

Optimizing Inference Performance of Transformers on CPUs

2021-02-12 · Dave Dice, Alex Kogan

The Transformer architecture revolutionized the field of natural language processing (NLP). Transformers-based models (e.g., BERT) power many important Web services, such as search, translation, question-answering, etc. …

Question AnsweringTranslation

ArcLight: A Lightweight LLM Inference Architecture for Many-Core CPUs

2026-03-08 · Yuzhuang Xu, Xu Han, Yuxuan Li, Wanxiang Che arxiv

Although existing frameworks for large language model (LLM) inference on CPUs are mature, they fail to fully exploit the computation potential of many-core CPU platforms. Many-core CPUs are widely deployed in web servers…

Efficient LLM Inference on CPUs

2023-11-01 · Haihao Shen, Hanwen Chang, Bo Dong, Yu Luo 외

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 pa…

Quantization

Highly Optimized Kernels and Fine-Grained Codebooks for LLM Inference on Arm CPUs

2024-12-23 · Dibakar Gope, David Mansell, Danny Loh, Ian Bratt

Large language models (LLMs) have transformed the way we think about language understanding and generation, enthralling both researchers and developers. However, deploying LLMs for inference has been a significant challe…

Quantization

1-bit AI Infra: Part 1.1, Fast and Lossless BitNet b1.58 Inference on CPUs

2024-10-21 · Jinheng Wang, Hansong Zhou, Ting Song, Shaoguang Mao 외

Recent advances in 1-bit Large Language Models (LLMs), such as BitNet and BitNet b1.58, present a promising approach to enhancing the efficiency of LLMs in terms of speed and energy consumption. These developments also e…