RLHF From Scratch Workshop thumbnail 1
RLHF From Scratch Workshop thumbnail 2
RLHF From Scratch Workshop

RLHF From Scratch Workshop

Master Reinforcement Learning with Human Feedback (RLHF) through intensive, hands-on implementation of LLM alignment techniques.

View course on Vizuara
InstructorVizuara Team
FormatIntensive Workshop
Sessions6 Modules
AudienceDevelopers, Data Scientists, Researchers
Course Description

The RLHF From Scratch Workshop is an intensive, hands-on course designed for individuals interested in mastering Reinforcement Learning with Human Feedback (RLHF) within the context of large language models (LLMs).

Participants will explore the fundamental theories of alignment, reward model training, and policy gradients, progressing to advanced applications using PPO and OpenRLHF to build real-world summarization tools.

Learning Outcomes

By the end of this workshop, you will be able to:

Prerequisites
Course Sessions
Module
01

Foundations of RLHF

Introduction to the theory of RLHF, the journey of a token, and the mechanics of aligning LLMs with human preferences.

Focuses on the theoretical underpinnings of reward modeling.

Core Topics

  • RLHF Theory
  • Reward Model Training
  • Policy Gradients
  • Token Lifecycle

Resources

Lecture VideoSlidesSubstack Article
Module
02

Building a Tiny Stories SLM

Practical implementation of a supervised language model (SLM) to understand the baseline training process.

Hands-on coding session.

Covered

  • SLM Architecture
  • Supervised Fine-tuning
  • Dataset Preparation

Resources & Assignments

CodeGitHub RepoAssignment
Module
03

OpenRLHF Reward Modeling

Deep dive into reward model architecture and training using the OpenRLHF framework.

Includes interactive notebook environment.

Core Topics

  • Reward Model Components
  • OpenRLHF Setup
  • Dataset Loading

Hands-On Resources

ColabDataset
Module
04

PPO Training Implementation

Implementing Proximal Policy Optimization (PPO) to refine model behavior based on reward signals.

Requires GPU environment setup.

Covered

  • PPO Algorithm
  • Actor-Critic Models
  • Flash Attention
  • Training Loops

Hands-On Resources

ColabCode
Module
05

Project: Reddit Post Summarizer

Applying RLHF and PPO to build a functional summarization tool for subjective content.

Capstone project implementation.

Core Topics

  • Summarization Tasks
  • Defining Actions/States
  • Reward Model Integration

Resources & Assignments

ProjectDataset
Module
06

Evaluation and Optimization

Analyzing the performance of RL-tuned models versus supervised models using reward distributions.

Final review of training results.

Covered

  • Reward Distribution Analysis
  • Model Comparison
  • Performance Metrics

Resources

Lecture VideoAssignment
Assessments

Tiny Stories SLM

Build and validate a supervised language model from scratch.

Reddit Summarizer Project

Develop an end-to-end RLHF pipeline to summarize subjective Reddit content.

Reward Analysis Report

Evaluate and compare the performance of your RL-tuned model against the baseline.