{"id":"arxiv:2309.14717","kind":"preprint","title":"QA-LoRA: Quantization-Aware Low-Rank Adaptation of Large Language Models","authors":["Yuhui Xu","Lingxi Xie","Xiaotao Gu","Xin Chen","Heng Chang","Hengheng Zhang","Chen, Zhengsu","Xiaopeng Zhang","Qi Chuan Tian"],"author_count":9,"year":2023,"published":"2023-09-26","venue":null,"cited_by":38,"doi":null,"arxiv_id":"2309.14717","nct_id":null,"source_url":"http://arxiv.org/abs/2309.14717","archive_url":"https://space-kitty.com/papers/arxiv:2309.14717","updated":"2023-10-09","pmid":null,"pmcid":null,"openalex_id":"W4387156572","pdf_url":"https://arxiv.org/pdf/2309.14717","abstract":"Recently years have witnessed a rapid development of large language models (LLMs). Despite the strong ability in many language-understanding tasks, the heavy computational burden largely restricts the application of LLMs especially when one needs to deploy them onto edge devices. In this paper, we propose a quantization-aware low-rank adaptation (QA-LoRA) algorithm. The motivation lies in the imbalanced degrees of freedom of quantization and adaptation, and the solution is to use group-wise operators which increase the degree of freedom of quantization meanwhile decreasing that of adaptation. QA-LoRA is easily implemented with a few lines of code, and it equips the original LoRA with two-fold abilities: (i) during fine-tuning, the LLM's weights are quantized (e.g., into INT4) to reduce time and memory usage; (ii) after fine-tuning, the LLM and auxiliary weights are naturally integrated into a quantized model without loss of accuracy. We apply QA-LoRA to the LLaMA and LLaMA2 model families and validate its effectiveness in different fine-tuning datasets and downstream scenarios. Code will be made available at https://github.com/yuhuixu1993/qa-lora.","abstract_license":"CC0-1.0 (arXiv descriptive metadata)","license":"other-oa","is_open_access":true,"retracted":false,"peer_reviewed":false,"categories":["Advanced Neural Network Applications"],"details":null,"provenance":"openalex+arxiv","attribution":"Abstract: arXiv descriptive metadata (CC0). Thank you to arXiv for use of its open access interoperability. This service was not reviewed or approved by, nor does it necessarily express or reflect the policies or opinions of, arXiv.","topics":[{"slug":"efficient-ai","name":"Efficient Training & Inference","domain_slug":"ai"}],"cited_in_dossiers":[]}