SqueezeLLM: Dense-and-Sparse Quantization

AI-generated keywords: Generative Large Language Models Inference Deployment SqueezeLLM Post-training Quantization Memory Bandwidth

AI-generated Key Points

The license of the paper does not allow us to build upon its content and the key points are generated using the paper metadata rather than the full article.

  • Deployment of Generative Large Language Models (LLMs) for inference is challenging due to high resource requirements
  • SqueezeLLM, a post-training quantization framework, addresses the bottleneck for generative inference with LLMs by focusing on memory bandwidth
  • Features of SqueezeLLM:
  • Sensitivity-based non-uniform quantization optimizes bit precision assignment based on second-order information
  • Dense-and-Sparse decomposition stores outliers and sensitive weight values efficiently
  • Benefits of SqueezeLLM:
  • Achieves lossless compression to ultra-low precisions of up to 3-bit while maintaining high quantization performance under the same memory constraint
  • Reduces perplexity gap from FP16 baseline by up to 2.1x compared to state-of-the-art methods with similar memory requirements when applied to LLaMA models
  • A6000 GPU deployment achieves up to a 2.3x speedup compared to the baseline
  • Presented at ICML 2024, offering promising advancements in optimizing large language models for more efficient deployment and improved performance outcomes
Also access our AI generated: Comprehensive summary, Lay summary, Blog-like article; or ask questions about this paper to our AI assistant.

Authors: Sehoon Kim, Coleman Hooper, Amir Gholami, Zhen Dong, Xiuyu Li, Sheng Shen, Michael W. Mahoney, Kurt Keutzer

ICML 2024

Abstract: Generative Large Language Models (LLMs) have demonstrated remarkable results for a wide range of tasks. However, deploying these models for inference has been a significant challenge due to their unprecedented resource requirements. This has forced existing deployment frameworks to use multi-GPU inference pipelines, which are often complex and costly, or to use smaller and less performant models. In this work, we demonstrate that the main bottleneck for generative inference with LLMs is memory bandwidth, rather than compute, specifically for single batch inference. While quantization has emerged as a promising solution by representing weights with reduced precision, previous efforts have often resulted in notable performance degradation. To address this, we introduce SqueezeLLM, a post-training quantization framework that not only enables lossless compression to ultra-low precisions of up to 3-bit, but also achieves higher quantization performance under the same memory constraint. Our framework incorporates two novel ideas: (i) sensitivity-based non-uniform quantization, which searches for the optimal bit precision assignment based on second-order information; and (ii) the Dense-and-Sparse decomposition that stores outliers and sensitive weight values in an efficient sparse format. When applied to the LLaMA models, our 3-bit quantization significantly reduces the perplexity gap from the FP16 baseline by up to 2.1x as compared to the state-of-the-art methods with the same memory requirement. Furthermore, when deployed on an A6000 GPU, our quantized models achieve up to 2.3x speedup compared to the baseline. Our code is available at https://github.com/SqueezeAILab/SqueezeLLM.

Submitted to arXiv on 13 Jun. 2023

Ask questions about this paper to our AI assistant

You can also chat with multiple papers at once here.

The license of the paper does not allow us to build upon its content and the AI assistant only knows about the paper metadata rather than the full article.

AI assistant instructions?

Results of the summarizing process for the arXiv paper: 2306.07629v4

This paper's license doesn't allow us to build upon its content and the summarizing process is here made with the paper's metadata rather than the article.

In the realm of Generative Large Language Models (LLMs), the deployment for inference has posed a significant challenge due to their high resource requirements. Existing frameworks have resorted to multi-GPU inference pipelines or smaller, less performant models to tackle this issue. However, a breakthrough comes in the form of SqueezeLLM, a post-training quantization framework introduced by Sehoon Kim, Coleman Hooper, Amir Gholami, Zhen Dong, Xiuyu Li, Sheng Shen, Michael W. Mahoney, and Kurt Keutzer. addresses the bottleneck for generative inference with LLMs by focusing on memory bandwidth rather than compute power, especially for single batch inference scenarios. The framework enables lossless compression to ultra-low precisions of up to 3-bit while achieving higher quantization performance under the same memory constraint. This is made possible through two innovative concepts incorporated into 1. Sensitivity-based non-uniform quantization: This feature searches for the optimal bit precision assignment based on second-order information. 2. Dense-and-Sparse decomposition: By storing outliers and sensitive weight values in an efficient sparse format, this method enhances efficiency. When applied to LLaMA models, 3-bit quantization significantly reduces the perplexity gap from the FP16 baseline by up to 2.1x compared to state-of-the-art methods with similar memory requirements. Moreover, when deployed on an A6000 GPU achieves up to a 2.3x speedup compared to the baseline. This groundbreaking work was presented at ICML 2024 and offers promising advancements in optimizing large language models for more efficient deployment and improved performance outcomes. The code for is openly available at https://github.com/SqueezeAILab/SqueezeLLM for further exploration and implementation in related research endeavors.
Created on 06 Nov. 2024

Assess the quality of the AI-generated content by voting

Score: 0

Why do we need votes?

Votes are used to determine whether we need to re-run our summarizing tools. If the count reaches -10, our tools can be restarted.

Similar papers summarized with our AI tools

Navigate through even more similar papers through a

tree representation

Look for similar papers (in beta version)

By clicking on the button above, our algorithm will scan all papers in our database to find the closest based on the contents of the full papers and not just on metadata. Please note that it only works for papers that we have generated summaries for and you can rerun it from time to time to get a more accurate result while our database grows.

Disclaimer: The AI-based summarization tool and virtual assistant provided on this website may not always provide accurate and complete summaries or responses. We encourage you to carefully review and evaluate the generated content to ensure its quality and relevance to your needs.