walkinglabs /hands-on-modern-rl
🚀 An open-source, hands-on curriculum bridging the gap from basic RL concepts to LLM alignment, RLVR, and advanced Agentic systems.
★ 4,975⑂ 369👁 17⑃ 59● 39▤ 7
+4
日增长
4,975
stars
369
forks
17
watchers
59
prs
39
issues
7
releases
README
From Markov decision processes and policy optimization to reasoning models, agents, and multimodal systems
= 18" /
English ·
中文 ·
繁體中文
Train on ModelScope ·
Run the CartPole Notebook ·
ModelScope Script
Discussion Group (WeChat)
Learning Paths ·
Hands-On Examples ·
Book Features ·
About This Book ·
News ·
Contents ·
Book Structure ·
Experiment Code ·
Quick Start ·
Contributing
The lab now includes 14 self-contained chapter Notebooks alongside 12 Studio companions. Browse the lab or inspect the local execution evidence.
Learning Paths
Classical & deep RL (Chapters 1–12). Start with CartPole: choose an action, observe the next state, and collect a reward. Build MDPs and value functions around that interaction, then implement DQN, policy gradients, Actor-Critic, and PPO in games and control tasks. Offline RL, imitation learning, exploration, and world models extend these foundations.
Modern RL & Agentic AI (Chapters 13–26). Apply the policy foundations to existing language models through RLHF, DPO, GRPO, and verifiable rewards. Agentic AI extends a model from answering once to calling tools, browsing, writing code, and completing multi-step tasks; the Agentic RL chapters train these decisions using feedback from entire trajectories. The later chapters cover visual and embodied tasks, training systems, and evaluation.
📣 Announcement
We sincerely thank everyone for your support of this tutorial! A new version is coming soon. Many sections are still being organized and refined, so we appreciate your patience. Suggestions and feedback are always welcome!
News
Note: This course was created with AI assistance and has not yet been fully reviewed. It may contain factual mistakes or code that does not run as expected. Issues and pull requests are very welcome.
- [2026-08-19] 🎮 Online Classic RL Environments and Scripts: Over the past two weeks, we have added and refined a collection of online reinforcement learning environments, training scripts, and companion notebooks. Learners can now run classic reinforcement learning experiments online, inspect training logs and evaluation results, and study the algorithms more conveniently. We also fixed many previously reported bugs in the course content, links, and experiment code.
- [2026-05-15] 📖 Full English Translation & PDF Release: Complete English translation of all chapters is now available. PDF builds for both Chinese and English editions are released automatically via CI.
- [2026-05-13] 🚀 Major Upgrade: LLM and Traditional RL Hands-on Labs: Added reproducible training examples for Agentic RL (Deep Research / rLLM) and Traditional RL (Actor-Critic continuous control). Includes complete code and fine-tuning analysis for building an Agentic training system from scratch, along with new VLM RL (GeoQA geometry reTop issues
#6【提问】为什么 rlhf 到 dpo 是从四个模型砍到两个模型了2 comments · 2026-05-07#59非常全面的RL教程!!推荐我们的 MOLT RL Infra 9k行代码跑1T MoE 极其适合教学使用0 comments · 2026-08-10#47添加 colab 运行版本0 comments · 2026-07-05
Latest release
Hands-On Modern RL Open Textbook v0.2.1 v0.2.1 2026-06-18Hands-On Modern RL: Open Textbook Release v0.2.1 This release publishes the book-form edition of Hands-On Modern RL in both PDF and EPUB formats, in both Chinese and English. The books are generated from the open course repository and typeset as a textbook edition for offline reading, classroom use, and citation-friendly distribution. 本版本发布《Hands-On Modern RL:现代强化学习实战》的开放教材,同时提供 PDF 与 EPUB 两种格式,以及中文与英文两个版本。教材由开源课程仓库构建生成,采用书籍版排版,面向离线阅读、课堂教学与可引用分发。 PDF Downloads / PDF 下载 - Chinese edition / 中文版 PDF - English edition / 英文版 PDF EPUB Downloads / EPUB 下载 - Chinese edition / 中文版 EPUB - Englis