#160 · Primary category: Education & Research

PaLM-rlhf-pytorch

artificial-intelligence attention-mechanisms deep-learning human-feedback reinforcement-learning transformers

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

Project last updated:07/27/26

GitHub Stars

7.9K

Forks

673

Contributors

5

License

MIT

Why we included this project

Researchers and ML engineers who want to see how a ChatGPT-style system is actually trained rather than just served can trace the full RLHF pipeline here: supervised fine-tuning, reward modeling, and policy optimization with PPO, all in PyTorch on the PaLM transformer architecture. The author is upfront that this is a work in progress and a map more than a finished artifact, so treat it as study-grade reference code rather than something deployable. Its real value is as a readable illustration of how reward models and policy optimization fit together, and the README links the implementation to the original OpenAI ChatGPT blog post and wider open efforts like CarperAI's TRLX and LAION's Open Assistant. No pretrained weights ship with the repo, so it suits learning and experimentation better than production inference, a practical starting point before moving to more mature RLHF frameworks.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category