stanfordnlp/pyreft
Stanford NLP Python library for Representation Finetuning (ReFT) observed · 2026-08-28
Health v2 · maintenance only
54/100
- Activity 70
- Release rhythm 28
- Longevity 66
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 41
- age_days: 929
- days_rel: 575
- days_push: 181
- n_releases_24m: 4
Adoption not part of the score
1577 stars · 134 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
pyreft is Stanford NLP's Python library for Representation Finetuning (ReFT), which adapts frozen language models by learning task-specific interventions on hidden representations. It works with any pretrained HuggingFace model and serves as a drop-in, more parameter-efficient alternative to LoRA and other PEFT methods.
Use cases
- finetune an LLM with fewer trainable parameters than LoRA
- train representation interventions on a frozen HuggingFace model
- adapt a language model for commonsense or arithmetic reasoning tasks
- instruction-tune a model with parameter-efficient interventions
- share trained ReFT adapters to the HuggingFace Hub
- study how hidden representations encode task-relevant semantics
When to choose
- you want maximum parameter efficiency (15x-65x fewer than LoRA) when adapting LLMs
- you already use HuggingFace transformers and pyvene
- you're researching representation-based interventions or interpretability-driven finetuning
When to avoid
- you need a battle-tested, widely-supported PEFT method with broad ecosystem tooling
- you're finetuning non-transformer or non-HuggingFace models
- you want simple full finetuning without learning a new intervention paradigm
Facets
library · maturity active
machine-learning llm-training nlp large-language-models machine-learning python representation-finetuning reft peft interpretability parameter-efficient-finetuning huggingface interventions natural-language-processing research
7 sources
- readme: https://github.com/stanfordnlp/pyreft · fetched 2026-08-28 · 5a773dcc22f6
- homepage: https://arxiv.org/abs/2404.03592 · fetched 2026-08-29 · 13d8f01fe755
- site_page: https://info.arxiv.org/about/donate.html · fetched 2026-08-29 · cca9c3a11c56
- site_page: https://info.arxiv.org/about/ourmembers.html · fetched 2026-08-29 · 47cbc55ff1de
- site_page: https://info.arxiv.org/about · fetched 2026-08-29 · a1f16f915a9a
- registry_pypi: https://pypi.org/pypi/pyreft/json · fetched 2026-08-29 · bbb331609349
- site_page: https://info.arxiv.org/labs/index.html · fetched 2026-08-29 · b14a8d05a0ec
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| stanfordnlp/pyreft | main | 54 |
For agents
markdown · JSON · MCP: product_card(name="stanfordnlp/pyreft")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem