TL;DR
FOCUS is a novel post-training quantization framework that optimizes FP4 quantization for large language models, achieving state-of-the-art accuracy without additional inference costs. It introduces Coupled-Relaxation Scaling and Dual-Granularity Scaling to enhance scale optimization and adapt to local weight distributions.
โฆ Why It Matters
Implement FOCUS to enhance the accuracy of your FP4 quantized models without increasing inference time.
Key Takeaways
How It Works
FOCUS employs Coupled-Relaxation Scaling (CRS) to separate the quantization and dequantization scales, allowing for a learnable full-precision coefficient that enhances optimization. This decoupling enables more effective adjustments to the quantization process without violating hardware constraints.
Additionally, Dual-Granularity Scaling (DGS) allows for finer adjustments at a sub-block level, which helps tailor the quantization scale to the specific distribution of weights in the model, leading to improved accuracy.
Related