Q-Palette: Fractional-Bit Quantizers Toward Optimal Bit Allocation for Efficient LLM Deployment
We study weight-only post-training quantization (PTQ), which quantizes the weights of a large language model (LLM) without retraining, using little or no calibration data. Weight-only PTQ is crucial for reducing the memory footprint and latency of LLM inference, especially in memory-bound, small-batch inference scenarios, such as personalized inference on edge devices. Despite its importance, irregular weight distributions with heavy-tailed outliers in LLMs complicate quantization, recently motivating rotation-based methods that transform weights into near-Gaussian distributions, which are more regular with fewer outliers, thereby reducing quantization error. In this work, we first derive the information-theoretically optimal bit allocation for Gaussianized weights under given bit budgets, revealing that fine-grained fractional-bit quantizers approaching the Gaussian distortion-rate bound are essential to achieve near-optimal quantization performance. To bridge this theoretical insight and practical implementation, we introduce Q-Palette, a versatile collection of fractional-bit quantizers that range from trellis-coded quantizers offering near-optimal distortion to simpler vector and scalar quantizers optimized for faster inference, all efficiently implemented with optimized CUDA kernels across various bitwidths. Furthermore, leveraging Q-Palette as a foundational component, we propose a novel mixed-scheme quantization framework, jointly optimizing quantizer choices and layer fusion decisions given resource constraints. The code is available at https://github.com/snu-mllab/Q-Palette.
Code (0)
등록된 구현이 없습니다.
Similar Papers 제목 키워드 기반
Joint Subcarrier and Power Allocation in MU OFDM DCSK Systems with Noise Reduction
This paper investigates the joint number of subcarriers and power optimization in Multi user Orthogonal Frequency Division Multiplexing based Differential Chaotic Shift Keying systems with noise reduction. We first find …
FormWUSH: Near-Optimal Adaptive Transforms for LLM Quantization
Quantizing LLM weights and activations is a standard approach for efficient deployment, but a few extreme outliers can stretch the dynamic range and amplify low-bit quantization errors. Prior transform-based mitigations …
Privacy Preserving Mechanisms for Coordinating Airspace Usage in Advanced Air Mobility
Advanced Air Mobility (AAM) operations are expected to transform air transportation while challenging current air traffic management practices. By introducing a novel market-based mechanism, we address the problem of on-…
Privacy PreservingFractional Top Trading Cycle on the Full Preference Domain
Efficiency and fairness are two desiderata in market design. Fairness requires randomization in many environments. Observing the inadequacy of Top Trading Cycle (TTC) to incorporate randomization, Yu and Zhang (2020) pro…
FairnessGradient Based Method for the Fusion of Lattice Quantizers
In practical applications, lattice quantizers leverage discrete lattice points to approximate arbitrary points in the lattice. An effective lattice quantizer significantly enhances both the accuracy and efficiency of the…
Quantization