#468 · Primary category: Education & Research
qlora
QLoRA: Efficient Finetuning of Quantized LLMs
Project last updated:06/10/24
GitHub Stars
11.0K
Forks
875
Contributors
16
License
MIT
Why we included this project
QLoRA is the kind of project you reach for when you want to fine-tune a large open-weights model on your own data but don't have a cluster of GPUs to burn. The method trains a 65B-parameter model on a single 48GB GPU by keeping the backbone frozen and 4-bit quantized, pushing gradients into low-rank adapters instead of the full weights. That cuts memory dramatically while keeping most of the full-precision quality, and the code plugs into Hugging Face's transformers and PEFT with bitsandbytes, so it fits a familiar PyTorch workflow rather than introducing its own stack. The repo ships with runnable scripts for LLaMA 2, several instruction datasets, and the trained Guanaco adapter weights plus hyperparameter recipes you can copy to reproduce results. Be realistic though: this is research code tied to a paper, not a maintained product, so budget time to read the README and adapt the training loop to your data format and hardware.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
prompts.chat
f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.
JavaGuide
Java Interview & Backend General Interview Guide, covering computer fundamentals, databases, distributed systems, high concurrency, system design, and AI application development.
system-prompts-and-models-of-ai-tools
A curated collection of system prompts, internal tools, and AI models from popular AI assistants and coding agents.
30-seconds-of-code
Coding articles to level up your development skills
generative-ai-for-beginners
21 Lessons, Get Started Building with Generative AI