QLoRA: Efficient Finetuning of Quantized LLMs

Authors: Tim Dettmers, Artidoro Pagnoni, Ari Holtzman, Luke Zettlemoyer

Submitted to arXiv on 23 May. 2023
License: CC BY 4.0
Abstract

We present QLoRA, an efficient finetuning approach that reduces memory usage enough to finetune a 65B parameter model on a single 48GB GPU while preserving full 16-bit finetuning task performance. QLoRA backpropagates gradients through a frozen, 4-bit quantized pretrained language model into Low Rank Adapters~(LoRA). Our best model family, which we name Guanaco, outperforms all previous openly released models on the Vicuna benchmark, reaching 99.3% of the performance level of ChatGPT while only requiring 24 hours of finetuning on a single GPU. QLoRA introduces a number of innovations to save memory without sacrificing performance: (a) 4-bit NormalFloat (NF4), a new data type that is information theoretically optimal for normally distributed weights (b) double quantization to reduce the average memory footprint by quantizing the quantization constants, and (c) paged optimziers to manage memory spikes. We use QLoRA to finetune more than 1,000 models, providing a detailed analysis of instruction following and chatbot performance across 8 instruction datasets, multiple model types (LLaMA, T5), and model scales that would be infeasible to run with regular finetuning (e.g. 33B and 65B parameter models). Our results show that QLoRA finetuning on a small high-quality dataset leads to state-of-the-art results, even when using smaller models than the previous SoTA. We provide a detailed analysis of chatbot performance based on both human and GPT-4 evaluations showing that GPT-4 evaluations are a cheap and reasonable alternative to human evaluation. Furthermore, we find that current chatbot benchmarks are not trustworthy to accurately evaluate the performance levels of chatbots. A lemon-picked analysis demonstrates where Guanaco fails compared to ChatGPT. We release all of our models and code, including CUDA kernels for 4-bit training.

The papers around it, by date and closeness

Higher is closer to this paper; left is older. Lines join papers close to each other: groups of lines are sub-topics. Select a point to see why it is there. Back to the summary of this paper

How to read this map? Illustrated guide

Closest papers Prior work it builds on Papers that cite it

Papers around this one

Ranked by how close their title and abstract are to this paper’s. Select some to read them together.

Closest papers

  1. Very close
    LoftQ: LoRA-Fine-Tuning-Aware Quantization for Large Language Models
    Yixiao Li, Yifan Yu, Chen Liang et al. · 2023 · Computation and Language · cited 267 times · Not summarized yet
    Abstract

    Quantization is an indispensable technique for serving Large Language Models (LLMs) and has recently found its way into LoRA fine-tuning. In this work we focus on the scenario where quantization and LoRA fine-tuning are applied together on a pre-trained model. In such cases it is common to observe a consistent gap in the performance on downstream tasks between full fine-tuning and quantization plus LoRA fine-tuning approach. In response, we propose LoftQ (LoRA-Fine-Tuning-aware Quantization), a novel quantization framework that simultaneously quantizes an LLM and finds a proper low-rank initialization for LoRA fine-tuning. Such an initialization alleviates the discrepancy between the quantiz…

  2. Very close
    ModuLoRA: Finetuning 2-Bit LLMs on Consumer GPUs by Integrating with Modular Quantizers
    J. Yin, Jiahao Dong, Yingheng Wang et al. · 2023 · Trans. Mach. Learn. Res. · cited 10 times · Not summarized yet
    Abstract

    We propose a memory-efficient finetuning algorithm for large language models (LLMs) that supports finetuning LLMs with 65B parameters in 2/3/4-bit precision on as little as one 24GB GPU. Our method, modular low-rank adaptation (ModuLoRA), integrates any user-specified weight quantizer with finetuning via low-rank adapters (LoRAs). Our approach relies on a simple quantization-agnostic backward pass that adaptively materializes low-precision LLM weights from a custom black-box quantization module. This approach enables finetuning 2-bit and 3-bit LLMs for the first time—leveraging state-of-the-art 2-bit QuIP# quantization and 3-bit OPTQ quantization—outperforming finetuning that relies on less …

  3. Very close
    Profiling LoRA/QLoRA Fine-Tuning Efficiency on Consumer GPUs: An RTX 4060 Case Study
    Msr Avinash · 2025 · arXiv.org · preprint, not peer reviewed · Not summarized yet
    Abstract

    Fine-tuning large language models (LLMs) with parameter-efficient techniques such as LoRA and QLoRA has enabled adaptation of foundation models on modest hardware. Yet the efficiency of such training on consumer-grade GPUs, especially under strict 8 GB VRAM limits, remains underexplored. We present a controlled profiling study of LoRA/QLoRA fine-tuning using the Qwen2.5-1.5B-Instruct model on a single NVIDIA RTX 4060. Across three representative configurations, we systematically vary batch size, sequence length, optimizer choice (AdamW vs. PagedAdamW), and precision (fp16 vs. bf16). We report throughput (tokens/s), time per 10k tokens, and VRAM footprint, alongside energy estimates derived f…

  4. Very close Another approach to the problem
    QDyLoRA: Quantized Dynamic Low-Rank Adaptation for Efficient Large Language Model Tuning
    Hossein Rajabzadeh, Mojtaba Valipour, Tianshu Zhu et al. · 2024 · Machine Learning · cited 36 times · AI summary available

    QDyLoRA quantizes LLMs while dynamically adapting across predefined LoRA ranks, whereas QLoRA uses frozen 4-bit weights with Low Rank Adapters.

    Abstract

    Finetuning large language models requires huge GPU memory, restricting the choice to acquire Larger models. While the quantized version of the Low-Rank Adaptation technique, named QLoRA, significantly alleviates this issue, finding the efficient LoRA rank is still challenging. Moreover, QLoRA is trained on a pre-defined rank and, therefore, cannot be reconfigured for its lower ranks without requiring further fine-tuning steps. This paper proposes QDyLoRA -Quantized Dynamic Low-Rank Adaptation-, as an efficient quantization approach for dynamic low-rank adaptation. Motivated by Dynamic LoRA, QDyLoRA is able to efficiently finetune LLMs on a set of pre-defined LoRA ranks. QDyLoRA enables fine-…

  5. Very close
    ApiQ: Finetuning of 2-Bit Quantized Large Language Model
    Baohao Liao, Christian Herold, Shahram Khadivi et al. · 2024 · Conference on Empirical Methods in Natural Language Processing · cited 31 times · Not summarized yet
    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 int…

  6. Very close
    LoRA Land: 310 Fine-tuned LLMs that Rival GPT-4, A Technical Report
    Justin Zhao, Timothy E. Wang, Wael Abid et al. · 2024 · arXiv.org · preprint, not peer reviewed · cited 84 times · Not summarized yet
    Abstract

    Low Rank Adaptation (LoRA) has emerged as one of the most widely adopted methods for Parameter Efficient Fine-Tuning (PEFT) of Large Language Models (LLMs). LoRA reduces the number of trainable parameters and memory usage while achieving comparable performance to full fine-tuning. We aim to assess the viability of training and serving LLMs fine-tuned with LoRA in real-world applications. First, we measure the quality of LLMs fine-tuned with quantized low rank adapters across 10 base models and 31 tasks for a total of 310 models. We find that 4-bit LoRA fine-tuned models outperform base models by 34 points and GPT-4 by 10 points on average. Second, we investigate the most effective base model…

  7. Very close Cites this paper
    Optimizing the Phi-2 Small Language Model for Real-time Chatbot Applications Using Parameter-Efficient Fine-Tuning (PEFT) with QLoRA Quantization
    P. Nguyen, Ashfaq Ali Shafin, Khandaker Mamun Ahmed · 2026 · Not summarized yet
    Abstract

    This study explores the optimization of the Phi-2 Small Language Models (SLMs) for real-time chatbot applications through Parameter-Efficient Fine-Tuning (PEFT) and Quantized Low-Rank Adaptation (QLoRA). QLoRA specifically refers to the integration of PEFT with LoRA alongside a 4-bit quantization process, aimed at enhancing computational efficiency. These models, initially designed for high performance with minimal computational overhead, are further refined to address the constraints of mobile and edge computing environments. By integrating PEFT with QLoRA, the research aims to reduce memory usage significantly while maintaining, or potentially improving, the accuracy of model responses in …

  8. Very close Cites this paper Uses this paper in depth
    Scaling, Quantization, and Rank: A QLoRA Study for Local Python Code Generation with Qwen3
    Matúš Janok, R. Forgáč, M. Očkay et al. · 2026 · 2026 New Trends in Signal Processing (NTSP) · Not summarized yet
    Abstract

    Large Language Models (LLMs) have demonstrated exceptional capabilities in translating natural language into executable code. However, deploying these models in privacy-sensitive enterprise environments necessitates offline, locally hosted architectures with strict hardware limitations. While smaller foundation models meet these memory constraints, they frequently suffer from inconsistent reliability and functional incompleteness in domain-specific tasks, such as Python-based data analysis. To address this gap, this study investigates the application of Parameter-Efficient Fine-Tuning (PEFT), specifically Low-Rank Adaptation (LoRA) and Quantized LoRA (QLoRA), to specialize the Qwen3 model fa…

Prior work it builds on

  1. Close Used in depth by this paper A method it uses
    LoRA: Low-Rank Adaptation of Large Language Models
    Edward J. Hu, Yelong Shen, Phillip Wallis et al. · 2021 · Computation and Language · cited 25,441 times · AI summary available
    Abstract

    An important paradigm of natural language processing consists of large-scale pre-training on general domain data and adaptation to particular tasks or domains. As we pre-train larger models, full fine-tuning, which retrains all model parameters, becomes less feasible. Using GPT-3 175B as an example -- deploying independent instances of fine-tuned models, each with 175B parameters, is prohibitively expensive. We propose Low-Rank Adaptation, or LoRA, which freezes the pre-trained model weights and injects trainable rank decomposition matrices into each layer of the Transformer architecture, greatly reducing the number of trainable parameters for downstream tasks. Compared to GPT-3 175B fine-tu…

  2. Close A method it uses
    LLaMA: Open and Efficient Foundation Language Models
    Hugo Touvron, Thibaut Lavril, Gautier Izacard et al. · 2023 · Computation and Language · preprint, not peer reviewed · cited 22,528 times · AI summary available
    Abstract

    We introduce LLaMA, a collection of foundation language models ranging from 7B to 65B parameters. We train our models on trillions of tokens, and show that it is possible to train state-of-the-art models using publicly available datasets exclusively, without resorting to proprietary and inaccessible datasets. In particular, LLaMA-13B outperforms GPT-3 (175B) on most benchmarks, and LLaMA-65B is competitive with the best models, Chinchilla-70B and PaLM-540B. We release all our models to the research community.

  3. Close A method it uses
    8-bit Optimizers via Block-wise Quantization
    Tim Dettmers, Mike Lewis, Sam Shleifer et al. · 2021 · Machine Learning · cited 589 times · AI summary available
    Abstract

    Stateful optimizers maintain gradient statistics over time, e.g., the exponentially smoothed sum (SGD with momentum) or squared sum (Adam) of past gradient values. This state can be used to accelerate optimization compared to plain stochastic gradient descent but uses memory that might otherwise be allocated to model parameters, thereby limiting the maximum size of models trained in practice. In this paper, we develop the first optimizers that use 8-bit statistics while maintaining the performance levels of using 32-bit optimizer states. To overcome the resulting computational, quantization, and stability challenges, we develop block-wise dynamic quantization. Block-wise quantization divides…

  4. Related Used in depth by this paper A method it uses
    Finetuned Language Models Are Zero-Shot Learners
    Jason Wei, Maarten Bosma, Vincent Y. Zhao et al. · 2021 · International Conference on Learning Representations · cited 5,597 times · AI summary available
    Abstract

    This paper explores a simple method for improving the zero-shot learning abilities of language models. We show that instruction tuning -- finetuning language models on a collection of tasks described via instructions -- substantially improves zero-shot performance on unseen tasks. We take a 137B parameter pretrained language model and instruction-tune it on over 60 NLP tasks verbalized via natural language instruction templates. We evaluate this instruction-tuned model, which we call FLAN, on unseen task types. FLAN substantially improves the performance of its unmodified counterpart and surpasses zero-shot 175B GPT-3 on 20 of 25 tasks that we evaluate. FLAN even outperforms few-shot GPT-3 b…

  5. Close
    GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformers
    Elias Frantar, Saleh Ashkboos, Torsten Hoefler et al. · 2022 · Machine Learning · preprint, not peer reviewed · cited 2,891 times · AI summary available
    Abstract

    Generative Pre-trained Transformer models, known as GPT or OPT, set themselves apart through breakthrough performance across complex language modelling tasks, but also by their extremely high computational and storage costs. Specifically, due to their massive size, even inference for large, highly-accurate GPT models may require multiple performant GPUs, which limits the usability of such models. While there is emerging work on relieving this pressure via model compression, the applicability and performance of existing compression techniques is limited by the scale and complexity of GPT models. In this paper, we address this challenge, and propose GPTQ, a new one-shot weight quantization met…

Papers that cite it

  1. Close
    SimplexLoRA: Dynamic Rank Updating via Alternating Minimization with Simplex Projection
    Igor Shalygin, Grigorii Davydenko, Andrey Veprikov et al. · 2026 · Machine Learning · Not summarized yet
    Abstract

    The success of large language models in real-world applications relies on parameter-efficient fine-tuning methods such as Low-Rank Adaptation (LoRA), which inserts compact, trainable adapters into selected layers. In this paper, we propose SimplexLoRA, a LoRA variant that adaptively adjusts adapter ranks during fine-tuning based on their learned importance. Unlike standard LoRA, which employs a fixed rank across all layers, SimplexLoRA optimizes per-adapter importance weights on the $n$-scaled simplex during a short warm-up and then freezes them, dynamically allocating capacity where it is most beneficial without increasing the overall parameter budget or inference cost. We evaluate SimplexL…

  2. Close
    PACT: NVFP4 Data-Flow LoRA Fine-Tuning on Consumer GPUs
    Lei Gao, H. Entezari Zarch, Chao-Yi Jiang et al. · 2026 · Not summarized yet
    Abstract

    Fine-tuning language models on consumer GPUs is constrained by computation and memory. Although LoRA reduces trainable parameters and optimizer state, frozen projections remain expensive, and activations retained for backward can dominate memory usage. We present PACT, a LoRA fine-tuning system that accelerates frozen projections with native NVFP4 GEMMs while reducing quantization and dequantization overhead and limiting quantization error. To reduce activation memory, PACT reuses quantized RMSNorm outputs and saves gate/up activations in NVFP4 for backward. To limit numerical error, it preserves BF16 inputs for forward nonlinear operations and calibrates frozen weights offline using GPTQ ad…

  3. Close
    Optimizing Fine-Tuning Memory Usage with QLoRA for Automated Pedagogical Feedback Generation in Bahasa Indonesia
    Martinus Maslim, Albert William Wibisono, Y. Prabowo · 2026 · Journal of Information Systems Engineering and Business Intelligence · Not summarized yet
    Abstract

    Background: While recent advances in open-source large language models (LLMs) have enabled automated feedback generation for educational assessment, most other research is focused on English and requires high-end Graphics Processing Unit (GPU) resources. However, there is limited empirical evidence of the efficiency of LLMs in Bahasa Indonesia feedback tasks in low-resource settings like Indonesia, given the strict hardware limitations and differences in data sources Objective: This study investigates whether 4-bit quantization combined with Low-Rank Adaptation (LoRA)-based task adaptation can enable open-weight LLMs to generate Indonesian pedagogical feedback under strict 8GB Video Random A…

  4. Close
    Reliable Evaluation of QLoRA Data Selection: A Controlled Protocol for Auditing Subset Gains
    Jinpyo Yim · 2026 · International Conference on Machine Learning and Applications · Not summarized yet
    Abstract

    QLoRA makes repeated fine-tuning experiments practical, but small-subset gains can be easily overinterpreted as selector improvements. This paper presents a controlled evaluation protocol for auditing QLoRA data-selection claims through four checks: full-data recipe sanity, strong random and stratified-random baselines, difficulty-proxy diagnostics, and cost-reporting caveats. We instantiate the protocol on AG News, BoolQ, and GSM8K with Qwen2.5 models under QLoRA, yielding a 248-row experiment-accounting matrix. The results show that apparent subset gains change interpretation under these checks: AG News gains are recipe-sensitive, BoolQ favors full-data training, and GSM8K shows a moderate…

  5. Close
    First-Order LoRA Training with Phone NPUs
    Xu Zheng, Wei Cheng, Zhuo-Min Chen et al. · 2026 · cited 1 time · Not summarized yet
    Abstract

    On-device fine-tuning lets a large language model (LLM) learn from its user's private data without uploading it. Low-rank adaptation (LoRA) reduces the trainable parameters, but each first-order training step still multiplies by the frozen base-model weights during the forward pass, activation recomputation, and input-gradient computation. A phone's neural processing unit (NPU) already holds these weights for inference; using it for training also requires computing input gradients, which its inference interface does not support. We present a system that runs all three frozen-weight products on the NPU while keeping the training graph, adapters, and optimizer on the CPU. Its input-gradient ke…

How are these papers found?

We compare the title and abstract of this paper with those of every paper summarized on this site, and with the papers Semantic Scholar recommends, those it cites and those citing it (for a much-cited paper, its most recent citations and, from OpenAlex, the most cited ones). Among the prior work and the follow-ups, the papers that use each other in depth, a method it uses and the much-cited follow-ups come a little higher. The levels (very close, close, related) come from the similarity of the texts, not from a judgment of quality; * marks a paper without an abstract, compared by its title. The sentence under a paper is written by an AI from the two abstracts: check it in the papers. A paper marked not relevant by three readers leaves the list.

Updated on 6 November 2026.

The illustrated guide to the papers around a paper