Code
facebookresearch/RLCD (official reproduction code)
Summary
Official code for arXiv 2307.12950: simulate preference data (rlcd / rlaif / context distillation / rlcd_rescore variants), train reward model, PPO, generate evals. Built around LLaMA-7B alignment; data gen supports larger LLaMA. Harmless/helpful prompts from Anthropic hh-rlhf; outline prompts omitted for legal reasons.
- Venue
- GitHub
- Publisher
- GitHub
- Source
- github
- Access
- https://github.com/facebookresearch/RLCD
- License
- check GitHub LICENSE
- License family
- Other
- Language
- en
- Purpose
- Reproduce Meta RLCD preference simulation → reward model → PPO pipeline
- Scale
- Reproduction stack for 7B (+ optional 30B data sim)
- Domain
- LLM alignment code, preference simulation, PPO
- Used for
- Unknown
- Time period
- Paired with ICLR 2024 paper
- Author type
- industry
- Added
- Sep 16, 2026
- Verified
- Sep 16, 2026
- Research status
- done
From the source
- Repository
- facebookresearch/RLCD
- Created
- Aug 7, 2023
- Last push
- Aug 18, 2023
- Stars
- 75
- Forks
- 6
- Main language
- Python
- Archived
- yes
Tags
Topics
LLM alignment code, preference simulation, PPO
Research notes
- Companion to paper catalog 1396.
Similar entries
- Paper RLCD: Reinforcement Learning from Contrastive Distillation for Language Model Alignment
- Paper When Do Larger Batches Help Scale LLM Reinforcement Learning?
- Paper Just Ask Jev: Reinforcement Learning for Calibrated Decisions as a Zero-Shot Detector of AI Alignment Failures
- Code PufferLib
- Paper Reinforcement Learning for LLMs: The Complete Guide
- Paper EasyPPO: Stabilizing the Critic Is Key