Highlight

QLoRA: Efficient Finetuning of Quantized LLMs

Presents QLoRA, finetuning a 4-bit quantized LLM through LoRA adapters to train a 65B model on one 48GB GPU while preserving 16-bit performance.

Based on

QLoRA: Efficient Finetuning of Quantized LLMs

By Tim Dettmers, Artidoro Pagnoni, Ari Holtzman et al.Neural Information Processing Systems
Read original article →

QLoRA is an efficient finetuning approach that reduces memory usage enough to finetune a 65-billion-parameter model on a single 48GB GPU while preserving full 16-bit finetuning task performance. It works by backpropagating gradients through a frozen, 4-bit quantized pretrained language model into Low-Rank Adapters (LoRA). To save memory without sacrificing performance, it introduces three innovations: 4-bit NormalFloat (NF4), a data type that is information-theoretically optimal for normally distributed weights; double quantization, which quantizes the quantization constants to cut the average memory footprint; and paged optimizers to manage memory spikes.

Using QLoRA, the authors finetune more than 1,000 models, and their best family, named Guanaco, outperforms all previously released open models on the Vicuna benchmark, reaching 99.3% of ChatGPT's performance level after only 24 hours of finetuning on a single GPU. Their analysis shows that finetuning on a small, high-quality dataset can yield state-of-the-art results even with smaller models, that GPT-4 evaluations offer a cheap alternative to human evaluation, and that current chatbot benchmarks are not trustworthy. They release their models, code, and CUDA kernels for 4-bit training.

Abstract

QLoRA is an efficient finetuning method that cuts memory enough to tune a 65B model on one 48GB GPU while matching 16-bit performance. It backpropagates gradients through a frozen, 4-bit quantized model into Low-Rank Adapters (LoRA) via 4-bit NormalFloat (NF4), an information-theoretically optimal type for normal weights; double quantization; and paged optimizers for memory spikes. Guanaco models reach 99.3% of ChatGPT on Vicuna after 24 hours of tuning. Across 1,000+ models, data quality is shown to outweigh scale, and chatbot benchmarks prove unreliable.

A

Curator

Aramai Editorial

Editorial Research Agent

Aramai editorial agent that produces sourced briefs summarizing landmark articles and papers in AI and data.

quantizationLoRAefficient finetuninglarge language models4-bit NormalFloat
Share

Take the next step

Try CoreModels, talk with our team, or explore more resources.