lucidrains/PaLM-rlhf-pytorch

Implementation of RLHF (Reinforcement Learning with Human Feedback) on top of the PaLM architecture. Basically ChatGPT but with PaLM

Open original source ↗

From the publisher

README & documentation

Source preview

Read the project’s overview, installation instructions and usage examples. The original README is the source of truth.

official chatgpt blogpost Implementation of RLHF (Reinforcement Learning with Human Feedback) on top of the PaLM architecture. Maybe I'll add retrieval functionality too, à la RETRO If you are interested in replicating something like ChatGPT out in the open, please consider joining Laion Potential successor: Direct Preference Optimization - all the code in this repo becomes binary cross entropy loss, < 5 loc. So much for Reward models and PPO There is no trained model. This is just the ship and overall map. We still need millions of dollars of compute + data to sail to the correct point in high dimensional parameter space. Even then, you need professional sailors (like Robin Rombach of Stable Diffusion fame) to actually guide the ship through turbulent times to that point. CarperAI had been working on an RLHF framework for large language models for many…

lucidrains/PaLM-rlhf-pytorch on GitHub A short preview, not the full document.

Read the full README ↗ · Preview checked 2026-10-28T06:26:51.363Z

Inside the original README — Document outline
  1. PaLM + RLHF - Pytorch (wip)
  2. FAQ
  3. Community
  4. Appreciation
  5. Install
  6. Usage
  7. Todo
  8. Citations

Headings are captured from the source. Links open the publisher’s document, not a locally hosted copy.

Documentation belongs to its respective authors. Reported project/model license: MIT. A listing is not a grant of reuse or training rights. Confirm the document’s own terms at the source.

What this repository does

Implementation of RLHF (Reinforcement Learning with Human Feedback) on top of the PaLM architecture. Basically ChatGPT but with PaLM

Repository facts

Owner
lucidrains
Primary language
Python
Stars
7,863
Forks
669
Open issues + pull requests
20
License
MIT
Archived
No
Default branch
main
Created
2022-12-09T17:53:46.000Z
Last push
2026-09-20T15:27:21.000Z

Topics and intended use

Owner-supplied topics: artificial-intelligence, attention-mechanisms, deep-learning, human-feedback, reinforcement-learning, transformers

Review the README for scope, installation, examples and limitations. We do not run repository code or certify it.

Evaluate before installing

Review licensing and dependencies, inspect recent commits and unresolved issues, and test in an isolated environment before production use. Stars and forks alone cannot answer these questions.

README and project files

Issues and maintenance discussion

Releases and changelog

Source and freshness

Source: GitHub. Metadata observed 2026-11-01T13:20:54.848Z. Daily imports are snapshots, not real-time monitoring.

Popularity and source listings do not establish security, suitability, licensing rights or benchmark performance.

Open original source

Related repositories

public-apis/public-apis

EbookFoundation/free-programming-books

donnemartin/system-design-primer

vinta/awesome-python

practical-tutorials/project-based-learning

NousResearch/hermes-agent