lucidrains/self-rewarding-lm-pytorch
Implementation of the training framework proposed in Self-Rewarding Language Model, from MetaAI observed · 2026-08-28
Health v2 · maintenance only
16/100
- Activity 0
- Release rhythm 8
- Longevity 68
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: n/a
- age_days: 957
- days_rel: n/a
- days_push: 875
- n_releases_24m: 0
Adoption not part of the score
1411 stars · 70 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A PyTorch library implementing the Self-Rewarding Language Model training framework from MetaAI, along with the SPIN training method. It provides trainers that combine supervised fine-tuning, self-rewarding, and direct preference optimization (DPO) for language models.
Use cases
- train a self-rewarding language model in pytorch
- implement DPO fine-tuning for an LLM
- run SPIN training on a transformer
- fine-tune a language model with self-generated rewards
- reproduce the MetaAI self-rewarding LM paper
- build a preference optimization training pipeline
When to choose
- you want a lightweight, hackable PyTorch implementation of self-rewarding LM or SPIN training
- you are doing research on preference optimization methods like DPO and SPIN
- you already have a transformer model and want to add self-rewarding fine-tuning stages
When to avoid
- you need a production-grade, fully supported LLM training framework with broad model support
- you want turnkey training of mainstream LLMs like Llama with optimized kernels
- you need extensive documentation and enterprise support
Facets
library · maturity active
llm-training machine-learning deep-learning large-language-models deep-learning machine-learning artificial-intelligence python self-rewarding dpo spin transformers research-implementation pytorch fine-tuning lucidrains
2 sources
- readme: https://github.com/lucidrains/self-rewarding-lm-pytorch · fetched 2026-08-28 · e26601a359f9
- registry_pypi: https://pypi.org/pypi/self-rewarding-lm-pytorch/json · fetched 2026-08-29 · 3cee8d9160ff
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| lucidrains/self-rewarding-lm-pytorch | main | 16 |
For agents
markdown · JSON · MCP: product_card(name="lucidrains/self-rewarding-lm-pytorch")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem