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

stanfordnlp/pyreft

Stanford NLP Python library for Representation Finetuning (ReFT) observed · 2026-08-28

github.com/stanfordnlp/pyreft · homepage · Python · Apache-2.0 (permissive) 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

Full methodology

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

Member repositories

RepositoryRoleHealth v2
stanfordnlp/pyreftmain54

For agents

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

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem