#140 · Primary category: Deep Learning Frameworks
pyreft
Stanford NLP Python library for Representation Finetuning (ReFT)
Project last updated:03/05/26
GitHub Stars
1.6K
Forks
134
Contributors
11
License
Apache-2.0
Why we included this project
pyreft comes from the Stanford NLP group and implements Representation Fine-Tuning (ReFT), a lighter alternative to LoRA and adapter-style methods. Where those approaches add trainable weights across every layer and timestep, ReFT learns small interventions on the model's hidden representations, and only at selected positions. That narrower touch keeps memory and compute costs down, and the library works with any pretrained model you already have on HuggingFace. You get training support, hyperparameter configs, and the option to push results back to the Hub, so it drops into a fairly ordinary fine-tuning workflow. If you have been sizing LoRA ranks and wonder whether intervening on representations can match that accuracy with even less trainable surface, it is worth a quick experiment in a notebook.
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.