FudanNLPLAB / MOSS-RLHF

MOSS-RLHF

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MOSS-RLHF

MOSS-RLHF & "Secrets of RLHF in Large Language Models Part I: PPO"
πŸ‘‰ [Technical report]

MOSS

Code License Data License Model License

🌠 Introduction

Due to the challenges of reward design, environment interaction, and agent training, coupled with huge trial and error cost of large language models, there is a significant barrier for AI researchers to motivate the development of technical alignment and safe landing of LLMs. The stable training of RLHF has still been a puzzle. In this technical report, we intend to help researchers to train their models stably with human feedback.

Contributions are summarized as follows:

  1. We release competitive Chinese and English reward models, respectively, which have good cross-model generalization ability, alleviating the cost of relabeling human preference data;
  2. We conduct in-depth analysis on the inner workings of PPO algorithm and propose the PPO-max algorithm to ensure stable model training;
  3. We release the complete PPO-max codes to ensure that the LLMs in the current SFT stage can be better aligned with humans.
MOSS-RLHF
MOSS-RLHF

🧾 Open-source List

  • A 7B Chinese reward model based on openChineseLlama.
  • A 7B English reward model based on Llama-7B.
  • Open source code for RL training in large language models.
  • ...

✨ Start training your own model!

Run code in a few steps.

πŸ”© Requirements & Setup

TODO: To be finalised before 12. July 2023

πŸ‘‰ Start Training

TODO, To be finalised before 15. July 2023

Citation

@article{zheng2023secrets,
  title={Secrets of RLHF in Large Language Models Part I: PPO}, 
  author={Rui Zheng and Shihan Dou and Songyang Gao and Yuan Hua and Wei Shen and Binghai Wang and Yan Liu and Senjie Jin and Qin Liu and Yuhao Zhou and Limao Xiong and Lu Chen and Zhiheng Xi and Nuo Xu and Wenbin Lai and Minghao Zhu and Cheng Chang and Zhangyue Yin and Rongxiang Weng and Wensen Cheng and Haoran Huang and Tianxiang Sun and Hang Yan and Tao Gui and Qi Zhang and Xipeng Qiu and Xuanjing Huang},
  year={2023}
}

About

MOSS-RLHF

License:Apache License 2.0


Languages

Language:Python 98.3%Language:Shell 1.7%