#81 · Primary category: Deep Learning Frameworks
LoRA
Code for loralib, an implementation of "LoRA: Low-Rank Adaptation of Large Language Models"
Project last updated:12/17/24
GitHub Stars
13.8K
Forks
924
Contributors
13
License
MIT
Why we included this project
LoRA is the original reference implementation of the low-rank adaptation technique that has become a standard way to fine-tune large language models without retraining every parameter. It freezes the original weights and learns pairs of small rank-decomposition matrices, so you train a fraction of the model while keeping the same inference latency, and the repo shows the trade-offs directly with benchmark tables for RoBERTa and DeBERTa on GLUE. Ready-to-run examples cover GPT-2 for generation and the GLUE tasks, with checkpoint downloads included. The loralib package is compact and readable, which makes it a practical starting point if you want to understand the method or adapt it to your own PyTorch models. Teams that prefer a maintained, broadly compatible solution can turn to the Hugging Face PEFT library, which now supports LoRA; this repository remains the clearest look at the original design and experimental results.
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
tensorflow
An Open Source Machine Learning Framework for Everyone
pytorch
Tensors and Dynamic neural networks in Python with strong GPU acceleration
keras
Deep Learning for humans
nanoGPT
The simplest, fastest repository for training/finetuning medium-sized GPTs.
ray
Ray is an AI compute engine. Ray consists of a core distributed runtime and a set of AI Libraries for accelerating ML workloads.