RLHF From Scratch Workshop thumbnail

RLHF From Scratch Workshop

8 lessons5 topics7h 42mself-paced

About this course

The RLHF From Scratch Workshop is an intensive and hands-on course designed for individuals interested in mastering Reinforcement Learning with Human Feedback (RLHF) within the context of large language models (LLMs). This workshop begins by exploring the fundamental theories and implementations of RLHF in the first lecture, emphasizing the alignment of LLM outputs with human preferences through reward model training and policy gradients. Participants will gain insights into the journey of a token through LLMs and build a positive tiny stories supervised language model (SLM). The course progresses to delve into advanced applications of RLHF alongside Proximal Policy Optimization (PPO) and OpenRLHF, as exemplified by creating a Reddit post summarizer. Attendees will learn how to define states, actions, and reward models when handling subjective content summarization. Throughout the workshop, participants have access to comprehensive resources, including lesson notes, code repositories, Google Colab notebooks, and an informative Substack article, equipping them with practical skills and knowledge. This workshop is ideal for developers, data scientists, and researchers keen to incorporate RLHF into their work with LLMs.

Course curriculum

5 topics • 8 lessons

7h 42m
Lecture 1: RLHF Theory and Implementation (Building a Positive Tiny Stories SLM)3 items
  1. Lecture 1: RLHF Theory and Implementation (Building a Positive Tiny Stories SLM)
  2. Lesson 1 Notes
  3. Lesson 1 Code Repo
Lecture 2: RLHF + PPO + OpenRLHF (Build a Reddit Post Summarizer)3 items
  1. Lecture 2: RLHF + PPO + OpenRLHF (Build a Reddit Post Summarizer)
  2. OpenRLHF PPO Training Google Colab Notebook
  3. OpenRLHF Reward Model Google Colab Notebook
GitHub Repo Link to Replicate Codes1 items
  1. GitHub Repo Link [Refer RLHF-Part 1]
RLHF Substack Article1 items
  1. RLHF Substack Article
Course End Test1 items
  1. Course End Testcourse end test