stanfordnlp/pyreft
A Python library implementing state-of-the-art Representation Fine-Tuning (ReFT) methods for pretrained language models.

Velocity · 7d
+1.9
★ / day
Trend
→steady
star history
Pyreft is a Stanford NLP library implementing state-of-the-art Representation Fine-Tuning methods for pretrained language models. It enables training ReFT with any pretrained LMs on HuggingFace, supports configurable hyperparameters, and facilitates sharing results to HuggingFace. The library provides interventions on model representations as an alternative to LoRA and other PEFT approaches.