allenai/RL4LMs
A modular RL library to fine-tune language models to human preferences observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 1476
- days_rel: n/a
- days_push: 915
- n_releases_24m: 0
Adoption not part of the score
2394 stars · 201 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
RL4LMs is a modular Python library from AllenAI for fine-tuning language models with reinforcement learning to align with human preferences. It provides customizable building blocks including on-policy algorithms (PPO, A2C, TRPO, NLPO), reward functions, NLG metrics, datasets, and actor-critic policies for causal and seq2seq LMs.
Use cases
- fine-tune language models with reinforcement learning
- train LMs to optimize reward functions like ROUGE or sentiment scores
- run RLHF-style training on summarization or translation tasks
- benchmark on-policy RL algorithms on NLP generation tasks
- apply PPO or NLPO to GPT-2 or T5 models
- optimize text generation models on custom datasets
When to choose
- you want to fine-tune causal or seq2seq LMs with RL algorithms like PPO or NLPO
- you need a library of NLG metrics usable as reward functions
- you want a tested, benchmarked framework for RL-based text generation experiments
When to avoid
- you need modern large-scale RLHF infrastructure for instruction-tuned chat models
- you only need supervised fine-tuning without reinforcement learning
- you require active development and support for the latest LLM architectures
Facets
library · maturity maintenance
machine-learning reinforcement-learning llm-training nlp benchmarking reinforcement-learning machine-learning large-language-models python rlhf text-generation ppo nlpо reward-functions fine-tuning human-preferences actor-critic natural-language-processing
1 source
- readme: https://github.com/allenai/RL4LMs · fetched 2026-08-28 · 3eb52c0cc897
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| allenai/RL4LMs | main | 32 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem