# facebookresearch/RLCD (official reproduction code)

- **ID:** 990
- **Kind:** code
- **URL:** https://github.com/facebookresearch/RLCD
- **Authors:** Kevin Yang et al. / Meta FAIR
- **Venue:** GitHub
- **Publisher:** GitHub
- **Published:** 2023
- **Source:** github
- **Language:** en
- **Access:** https://github.com/facebookresearch/RLCD
- **License:** check GitHub LICENSE
- **License family:** Other (auto-classified)
- **Tags:** rlcd, meta, fair, github, reproduction, ppo
- **Topics:** LLM alignment code, preference simulation, PPO
- **Added:** 2026-09-16
- **Verified:** 2026-09-16
- **Research status:** done
- **Needs deep evaluation:** no
- **Page:** https://papers.projxon.ai/entries/990

## 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.

## Attributes

- **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

## From the source (fetched 2026-10-03)

- **Repository:** facebookresearch/RLCD (GitHub)
- **Created:** Aug 7, 2023 (GitHub)
- **Last push:** Aug 18, 2023 (GitHub)
- **Stars:** 75 (GitHub)
- **Forks:** 6 (GitHub)
- **Main language:** Python (GitHub)
- **Archived:** yes (GitHub)

## Research notes

- Companion to paper catalog 1396.

## Similar entries

- [RLCD: Reinforcement Learning from Contrastive Distillation for Language Model Alignment](https://papers.projxon.ai/entries/989) (paper, #989)
- [When Do Larger Batches Help Scale LLM Reinforcement Learning?](https://papers.projxon.ai/entries/1041) (paper, #1041)
- [Just Ask Jev: Reinforcement Learning for Calibrated Decisions as a Zero-Shot Detector of AI Alignment Failures](https://papers.projxon.ai/entries/1079) (paper, #1079)
- [PufferLib](https://papers.projxon.ai/entries/713) (code, #713)
- [Reinforcement Learning for LLMs: The Complete Guide](https://papers.projxon.ai/entries/1039) (paper, #1039)
- [EasyPPO: Stabilizing the Critic Is Key](https://papers.projxon.ai/entries/792) (paper, #792)
