QIGen: Generating Efficient Kernels for Quantized Inference on Large Language Models

Tommaso Pegolotti, Elias Frantar, Dan Alistarh, Markus Püschel
7/7/2023
cs.LGcs.CLcs.PF

Official code: IST-DASLab/QIGen (28 stars, last commit 2023-07-13).

Abstract

We present ongoing work on a new automatic code generation approach for supporting quantized generative inference on LLMs such as LLaMA or OPT on off-the-shelf CPUs. Our approach is informed by the target architecture and a performance model, including both hardware characteristics and method-specific accuracy constraints. Results on CPU-based inference for LLaMA models show that our approach can lead to high performance and high accuracy, comparing favorably to the best existing open-source solution. A preliminary implementation is available at https://github.com/IST-DASLab/QIGen.

View on arXivView PDF

Code Implementations(1)

IST-DASLab/QIGenOfficial100%

Repository for CPU Kernel Generation for LLM Inference

283C++, PythonJul 7, 20233 years ago

Cite this paper

@article{pegolotti2023qigen,
  title  = {QIGen: Generating Efficient Kernels for Quantized Inference on Large Language Models},
  author = {Tommaso Pegolotti and Elias Frantar and Dan Alistarh and Markus Püschel},
  year   = {2023},
  eprint = {2307.03738},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.03738v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2307.03738.svg)](https://codeofpaper.com/paper/2307.03738)

Discussion