QLoRA: Efficient Finetuning of Quantized LLMs
Auteurs : Tim Dettmers, Artidoro Pagnoni, Ari Holtzman, Luke Zettlemoyer
Résumé scientifique
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.
Les articles autour de lui, par date et par proximité
Plus haut, c’est plus proche de cet article ; à gauche, c’est plus ancien. Les traits relient les articles proches entre eux : les groupes de traits sont des sous-thèmes. Sélectionnez un point pour voir pourquoi il est là. Retour au résumé de cet article
Les articles autour de celui-ci
Classés selon la proximité de leur titre et de leur résumé avec ceux de cet article. Sélectionnez-en pour les lire ensemble.
Les articles les plus proches
-
LoftQ: LoRA-Fine-Tuning-Aware Quantization for Large Language ModelsYixiao Li, Yifan Yu, Chen Liang et al. · 2023 · Computation and Language · cité 267 fois · Pas encore résumé
Résumé scientifique
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…
-
ModuLoRA: Finetuning 2-Bit LLMs on Consumer GPUs by Integrating with Modular QuantizersJ. Yin, Jiahao Dong, Yingheng Wang et al. · 2023 · Trans. Mach. Learn. Res. · cité 10 fois · Pas encore résumé
Résumé scientifique
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 …
-
Profiling LoRA/QLoRA Fine-Tuning Efficiency on Consumer GPUs: An RTX 4060 Case StudyMsr Avinash · 2025 · arXiv.org · preprint, non relu par les pairs · Pas encore résumé
Résumé scientifique
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…
-
QDyLoRA: Quantized Dynamic Low-Rank Adaptation for Efficient Large Language Model TuningHossein Rajabzadeh, Mojtaba Valipour, Tianshu Zhu et al. · 2024 · Machine Learning · cité 36 fois · Résumé IA disponible
Résumé scientifique
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-…
-
ApiQ: Finetuning of 2-Bit Quantized Large Language ModelBaohao Liao, Christian Herold, Shahram Khadivi et al. · 2024 · Conference on Empirical Methods in Natural Language Processing · cité 31 fois · Pas encore résumé
Résumé scientifique
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…
-
LoRA Land: 310 Fine-tuned LLMs that Rival GPT-4, A Technical ReportJustin Zhao, Timothy E. Wang, Wael Abid et al. · 2024 · arXiv.org · preprint, non relu par les pairs · cité 84 fois · Pas encore résumé
Résumé scientifique
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…
-
Optimizing the Phi-2 Small Language Model for Real-time Chatbot Applications Using Parameter-Efficient Fine-Tuning (PEFT) with QLoRA QuantizationP. Nguyen, Ashfaq Ali Shafin, Khandaker Mamun Ahmed · 2026 · Pas encore résumé
Résumé scientifique
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 …
-
Scaling, Quantization, and Rank: A QLoRA Study for Local Python Code Generation with Qwen3Matúš Janok, R. Forgáč, M. Očkay et al. · 2026 · 2026 New Trends in Signal Processing (NTSP) · Pas encore résumé
Résumé scientifique
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…
Les travaux antérieurs sur lesquels il s’appuie
-
LoRA: Low-Rank Adaptation of Large Language ModelsEdward J. Hu, Yelong Shen, Phillip Wallis et al. · 2021 · Computation and Language · cité 25 441 fois · Résumé IA disponible
Résumé scientifique
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…
-
LLaMA: Open and Efficient Foundation Language ModelsHugo Touvron, Thibaut Lavril, Gautier Izacard et al. · 2023 · Computation and Language · preprint, non relu par les pairs · cité 22 528 fois · Résumé IA disponible
Résumé scientifique
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.
-
8-bit Optimizers via Block-wise QuantizationTim Dettmers, Mike Lewis, Sam Shleifer et al. · 2021 · Machine Learning · cité 589 fois · Résumé IA disponible
Résumé scientifique
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…
-
Finetuned Language Models Are Zero-Shot LearnersJason Wei, Maarten Bosma, Vincent Y. Zhao et al. · 2021 · International Conference on Learning Representations · cité 5 597 fois · Résumé IA disponible
Résumé scientifique
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…
-
GPTQ: Accurate Post-Training Quantization for Generative Pre-trained TransformersElias Frantar, Saleh Ashkboos, Torsten Hoefler et al. · 2022 · Machine Learning · preprint, non relu par les pairs · cité 2 891 fois · Résumé IA disponible
Résumé scientifique
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…
Les articles qui le citent
-
SimplexLoRA: Dynamic Rank Updating via Alternating Minimization with Simplex ProjectionIgor Shalygin, Grigorii Davydenko, Andrey Veprikov et al. · 2026 · Machine Learning · Pas encore résumé
Résumé scientifique
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…
-
PACT: NVFP4 Data-Flow LoRA Fine-Tuning on Consumer GPUsLei Gao, H. Entezari Zarch, Chao-Yi Jiang et al. · 2026 · Pas encore résumé
Résumé scientifique
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…
-
Optimizing Fine-Tuning Memory Usage with QLoRA for Automated Pedagogical Feedback Generation in Bahasa IndonesiaMartinus Maslim, Albert William Wibisono, Y. Prabowo · 2026 · Journal of Information Systems Engineering and Business Intelligence · Pas encore résumé
Résumé scientifique
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…
-
Reliable Evaluation of QLoRA Data Selection: A Controlled Protocol for Auditing Subset GainsJinpyo Yim · 2026 · International Conference on Machine Learning and Applications · Pas encore résumé
Résumé scientifique
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…
-
First-Order LoRA Training with Phone NPUsXu Zheng, Wei Cheng, Zhuo-Min Chen et al. · 2026 · cité 1 fois · Pas encore résumé
Résumé scientifique
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…
Aller plus loin
Comment ces articles sont-ils trouvés ?
Nous comparons le titre et le résumé de cet article avec ceux de tous les articles résumés sur ce site, et avec les articles que Semantic Scholar recommande, ceux qu’il cite et ceux qui le citent (pour un article très cité, ses citations les plus récentes et, depuis OpenAlex, les plus citées). Parmi les travaux antérieurs et les suites, les articles qui s’utilisent en profondeur, une méthode qu’il utilise et les suites très citées remontent un peu. Les niveaux (très proche, proche, apparenté) viennent de la similarité des textes, pas d’un jugement de qualité ; * signale un article sans résumé, comparé par son titre. La phrase sous un article est écrite par une IA à partir des deux résumés : vérifiez-la dans les articles. Un article jugé hors sujet par trois lecteurs quitte la liste.
Mis à jour le 6 novembre 2026.