Abstract
The deployment of Large Language Models (LLMs) is increasingly constrained by the "memory wall," where the bottleneck shifts from computation to memory bandwidth. While 4-bit quantization provides significant memory reduction, it often compromises model intelligence. Conversely, 8-bit quantization maintains accuracy but limits the ability to fit large models on single GPUs. This paper presents FP6-LLM, a system-algorithm co-design that enables efficient 6-bit (FP6) quantization. At the core of FP6-LLM is TC-FPx, a unified GPU kernel that supports irregular bit-widths with minimal overhead. Our evaluation demonstrates that FP6-LLM achieves up to 2.65× throughput improvement over FP16 baselines, making 6-bit quantization a viable and high-performance solution for LLM serving.
Introduction: The Memory Wall and the 6-Bit Opportunity
Modern LLM inference is primarily memory-bounded during the token generation phase. To mitigate this, quantization techniques compress weights from 16-bit (FP16) to lower precision. However, a gap exists between 4-bit (INT4), which can suffer from significant accuracy loss, and 8-bit (INT8), which may not provide sufficient compression for large models like LLaMA-70B to fit on a single GPU.
6-bit quantization (FP6) represents a "Goldilocks" zone—offering near-lossless quality with substantial memory savings. Despite its potential, standard GPU hardware lacks native support for 6-bit arithmetic, often leading to high de-quantization overheads that negate the benefits of reduced weight size.
Methodology: TC-FPx and Unified Kernel Design
To overcome the limitations of irregular bit-widths, we propose the TC-FPx kernel. Traditional approaches often use a two-kernel design: one for de-quantization and another for matrix multiplication (MatMul). This approach is inefficient as it requires writing intermediate FP16 weights back to global memory, consuming precious bandwidth.
As shown in Figure 2, TC-FPx adopts a Unified Kernel Design. It performs de-quantization on-the-fly directly within the GPU registers. By integrating de-quantization into the MatMul kernel, the system avoids redundant memory access, effectively widening the "pipe" from memory to the Tensor Cores.
Implementation: Bit-level Pre-packing and SIMT-Efficient Runtime
Handling 6-bit data on hardware designed for 32-bit words presents alignment challenges. FP6-LLM addresses this through Ahead-of-time Bit-level Pre-packing. By reordering bits before deployment, we ensure that every 32-bit memory read fetches exactly the bits required for subsequent calculations, maximizing bandwidth utilization.
The runtime leverages the GPU's SIMT (Single Instruction, Multiple Threads) cores to perform high-speed bit-wise logic, converting 6-bit weights into FP16 values. These values are then immediately consumed by the Tensor Cores. A software pipelining strategy overlaps de-quantization with computation, ensuring that Tensor Cores remain saturated.
Evaluation and Key Results
We evaluated FP6-LLM using LLaMA and OPT model families across various benchmarks, including Wikitext and HumanEval-X.
Throughput and Performance
FP6-LLM significantly outperforms existing baselines. It enables a LLaMA-70B model to run on a single NVIDIA A100 (80GB) GPU, a feat typically requiring multiple GPUs in FP16 mode.
As illustrated in Figure 1, TC-FPx achieves a 1.69× to 2.65× speedup over the cuBLAS FP16 baseline. Notably, it also outperforms TensorRT-LLM's native INT8 support by up to 1.45×, proving that the reduction in memory traffic from 6-bit weights outweighs the software de-quantization overhead.
Model Quality
Our results confirm that 6-bit quantization is remarkably robust. In tests on LLaMA-1B, 4-bit quantization caused a catastrophic jump in perplexity (from 24 to 564), whereas 6-bit quantization maintained a near-perfect perplexity of 24.8. This validates FP6 as a superior choice for maintaining model "intelligence" while optimizing for hardware constraints.
Conclusion
FP6-LLM breaks the memory wall by making 6-bit quantization a practical reality for LLM serving. Through the co-design of the TC-FPx kernel and bit-level memory management, it provides a high-performance, near-lossless path for deploying massive models on standard GPU hardware.
Summary updated