Ross ROSS = Recommend OSS · open-source software intelligence for agents

stanfordnlp/pyreft

Some data may be outdated — see provenance labels.

Stanford NLP Python library for Representation Finetuning (ReFT) observed · 2026-09-29

github.com/stanfordnlp/pyreft · homepage · Python · Apache-2.0 (permissive) observed · 2026-09-29

Health v2 · maintenance only

52/100

  • Activity 62
  • Release rhythm 28
  • Longevity 69
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.

  • gap_med: 45.0
  • age_days: 977
  • days_rel: 623
  • days_push: 229
  • n_releases_24m: 3

Full methodology

Adoption not part of the score

1587 stars · 134 forks observed · 2026-09-29

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

Member repositories

RepositoryRoleHealth v2
stanfordnlp/pyreftmain52

For agents

markdown · JSON · MCP: product_card(name="stanfordnlp/pyreft")

Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem