[Paper Review] Any-Precision LLM: Low-Cost Deployment of Multiple, Different-Sized LLMs
This paper proposes Any-Precision LLM, a low-cost solution for deploying multiple, differently sized LLMs by enabling post-training quantization to arbitrary bit-widths (3–8 bits) within a single n-bit model. It achieves this via a lightweight quantization method and a specialized software engine with bit-interleaved memory layout, reducing memory footprint to near that of a single n-bit model while maintaining state-of-the-art model quality and high inference throughput.
Recently, considerable efforts have been directed towards compressing Large Language Models (LLMs), which showcase groundbreaking capabilities across diverse applications but entail significant deployment costs due to their large sizes. Meanwhile, much less attention has been given to mitigating the costs associated with deploying multiple LLMs of varying sizes despite its practical significance. Thus, this paper introduces \emph{any-precision LLM}, extending the concept of any-precision DNN to LLMs. Addressing challenges in any-precision LLM, we propose a lightweight method for any-precision quantization of LLMs, leveraging a post-training quantization framework, and develop a specialized software engine for its efficient serving. As a result, our solution significantly reduces the high costs of deploying multiple, different-sized LLMs by overlaying LLMs quantized to varying bit-widths, such as 3, 4, ..., $n$ bits, into a memory footprint comparable to a single $n$-bit LLM. All the supported LLMs with varying bit-widths demonstrate state-of-the-art model quality and inference throughput, proving itself to be a compelling option for deployment of multiple, different-sized LLMs. Our code is open-sourced and available online.
Motivation & Objective
- To address the high deployment cost of running multiple LLMs of varying sizes in real-world applications.
- To enable efficient inference of multiple LLMs with different bit-widths (3–n bits) using a single, unified model storage.
- To overcome the limitations of existing quantization methods that require retraining or fail to reduce memory bandwidth for lower bit-widths.
- To develop a software engine that supports any-precision inference with minimal performance degradation.
- To demonstrate that any-precision LLM can match or exceed state-of-the-art quantized models in both model quality and inference throughput.
Proposed method
- A lightweight post-training quantization (PTQ) framework that generates lower-bit models by extracting the most significant bits (MSBs) from a higher-bit model, preserving the any-precision property.
- A bit-interleaved (bitplane) memory layout for weights, allowing efficient access to only the required bit-widths during inference.
- A custom GPU kernel optimized for quantized matrix-vector multiplication that loads only the relevant portion of each weight’s bit-vector, reducing memory bandwidth usage.
- Incremental upscaling of low-bit quantized models to higher bit-widths while maintaining model quality through PTQ.
- Integration of the any-precision quantization pipeline with a specialized serving engine to enable dynamic selection of bit-widths at inference time.
- Adoption of weight-only quantization to reduce memory bottlenecks, consistent with current LLM inference best practices.
Experimental results
Research questions
- RQ1Can a single LLM be efficiently used to serve multiple models of varying bit-widths (3–n bits) with minimal memory overhead?
- RQ2Can post-training quantization be adapted to enable any-precision LLMs without requiring retraining or fine-tuning?
- RQ3Can a custom software engine reduce memory bandwidth usage for lower-bit-width inference by optimizing memory layout and kernel operations?
- RQ4Does the any-precision LLM maintain state-of-the-art model quality across all supported bit-widths?
- RQ5Can the proposed system achieve high inference throughput comparable to or better than non-any-precision state-of-the-art engines?
Key findings
- The proposed method packs LLMs quantized to 3–8 bits into a memory footprint comparable to a single 8-bit model, significantly reducing storage and memory costs.
- The any-precision LLM achieves state-of-the-art model quality at each bit-width, matching or exceeding existing quantization techniques.
- Inference throughput for any-precision LLM matches or exceeds that of non-any-precision state-of-the-art engines, even with bit-interleaved memory layout.
- The solution enables dynamic model selection at inference time, supporting speculative decoding and low-latency workloads.
- The method reduces memory bandwidth usage by loading only the required bit-widths, unlike existing kernels that load full bit-vectors.
- The approach supports deployment of multiple LLMs with different quality-latency trade-offs using only one model storage, reducing operational costs.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.