QLoRA: الضبط الفعال للنماذج المكممة بدقة 4-بت
QLoRA: Efficient Finetuning of Quantized LLMs
طريقة مبتكرة أتاحت تدريب نموذج 65B على بطاقة GPU استهلاكية واحدة بسعة 48GB عبر صيغة NF4 وتكميم مزدوج (Double Quantization).
Technique enabling 65B parameter model fine-tuning on a single 48GB GPU via NormalFloat4 and paged optimizers.
المواصفات المسجّلة
| المؤلفون | Tim Dettmers، Artidoro Pagnoni، Ari Holtzman، Luke Zettlemoyer |
|---|---|
| سنة النشر | 2023 |
| القناة | NeurIPS 2023 |
| عدد الاستشهادات | 1,398 |
| DOI | 10.48550/arXiv.2305.14314 |
| arXiv | 2305.14314 |
| OpenAlex | W7133233472 |
دمقرطت الضبط الدقيق للنماذج الضخمة: صار تدريب 65B ممكناً على بطاقة استهلاكية واحدة، فانفجرت منظومة النماذج المفتوحة المضبوطة.
نوع البيانات NF4 الأمثل نظرياً للأوزان الطبيعية التوزيع، مع تكميم مزدوج لثوابت التكميم ومحسّنات مرحّلة لامتصاص قمم الذاكرة.
نقدم QLoRA الذي يضبط نموذج 65B على بطاقة واحدة 48GB عبر نشر التدرجات خلال نموذج مكمم 4-بت مجمّد إلى محولات LoRA، مع ابتكارات NF4 والتكميم المزدوج والمحسّنات المرحّلة.
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.
الأدلة والمصادر
له مصادر رسميةلا ادعاءات منشورة على هذا المدخل. ما يلي روابط رسمية منشورة ضمن البذرة العامة للاطّلاع المباشر.