ApiQ: Finetuning of 2-Bit Quantized Large Language Model
| Authors | |
|---|---|
| Publication date | 2024 |
| Host editors |
|
| Book title | The 2024 Conference on Empirical Methods in Natural Language Processing : Proceedings of the Conference |
| Book subtitle | EMNLP 2024 : November 12-16, 2024 |
| ISBN (electronic) |
|
| Event | 2024 Conference on Empirical Methods in Natural Language Processing |
| Pages (from-to) | 20996-21020 |
| Publisher | Kerrville, TX: Association for Computational Linguistics |
| Organisations |
|
| Abstract |
Memory-efficient finetuning of large language models (LLMs) has recently attracted huge attention with the increasing size of LLMs, primarily due to the constraints posed by GPU memory limitations and the effectiveness of these methods compared to full finetuning. Despite the advancements, current strategies for memory-efficient finetuning, such as QLoRA, exhibit inconsistent performance across diverse bit-width quantizations and multifaceted tasks. This inconsistency largely stems from the detrimental impact of the quantization process on preserved knowledge, leading to catastrophic forgetting and undermining the utilization of pretrained models for finetuning purposes. In this work, we introduce a novel quantization framework named ApiQ, designed to restore the lost information from quantization by concurrently initializing the LoRA components and quantizing the weights of LLMs. This approach ensures the maintenance of the original LLM’s activation precision while mitigating the error propagation from shallower into deeper layers. Through comprehensive evaluations conducted on a spectrum of language tasks with various LLMs, ApiQ demonstrably minimizes activation error during quantization. Consequently, it consistently achieves superior finetuning results across various bit-widths. Notably, one can even finetune a 2-bit Llama-2-70b with ApiQ on a single NVIDIA A100-80GB GPU without any memory-saving techniques, and achieve promising results.
|
| Document type | Conference contribution |
| Language | English |
| Published at | https://doi.org/10.18653/v1/2024.emnlp-main.1168 |
| Downloads |
2024.emnlp-main.1168
(Final published version)
|
| Permalink to this page | |