mirror of
https://github.com/wassname/alignment-handbook.git
synced 2026-06-27 17:29:09 +08:00
Rename repo
This commit is contained in:
@@ -10,9 +10,8 @@ jobs:
|
||||
uses: huggingface/doc-builder/.github/workflows/build_main_documentation.yml@main
|
||||
with:
|
||||
commit_sha: ${{ github.sha }}
|
||||
package: rlhf-handbook
|
||||
# package_name: rlhf-handbook # commented from audio-course
|
||||
path_to_docs: rlhf-handbook/chapters/
|
||||
package: alignment-handbook
|
||||
path_to_docs: alignment-handbook/chapters/
|
||||
additional_args: --not_python_module
|
||||
languages: en
|
||||
secrets:
|
||||
|
||||
@@ -13,7 +13,7 @@ jobs:
|
||||
with:
|
||||
commit_sha: ${{ github.event.pull_request.head.sha }}
|
||||
pr_number: ${{ github.event.number }}
|
||||
package: rlhf-handbook
|
||||
path_to_docs: rlhf-handbook/chapters/
|
||||
package: alignment-handbook
|
||||
path_to_docs: alignment-handbook/chapters/
|
||||
additional_args: --not_python_module
|
||||
languages: en
|
||||
@@ -10,7 +10,7 @@ jobs:
|
||||
build:
|
||||
uses: huggingface/doc-builder/.github/workflows/upload_pr_documentation.yml@main
|
||||
with:
|
||||
package_name: rlhf-handbook
|
||||
package_name: alignment-handbook
|
||||
secrets:
|
||||
hf_token: ${{ secrets.HF_DOC_BUILD_PUSH }}
|
||||
comment_bot_token: ${{ secrets.COMMENT_BOT_TOKEN }}
|
||||
@@ -1,14 +1,14 @@
|
||||
# The RLHF Handbook
|
||||
# The Alignment Handbook
|
||||
|
||||
Robust recipes for Reinforcement Learning from Human Feedback (RLHF) and related techniques to steer language models.
|
||||
Robust recipes to align language models with human and AI preferences.
|
||||
|
||||
## What is this?
|
||||
|
||||
Just one year ago, chatbots were out of fashion and most people hadn't heard about techniques like RLHF to align language models with human preferences. Then, OpenAI broke the internet with ChatGPT and Meta followed suit by releasing the Llama series of language models which enabled the ML community to build their very own capable chatbots. This has led to a rich ecosystem of datasets and models that have mostly focused on teaching language models to follow instructions through supervised fine-tuning (SFT).
|
||||
Just one year ago, chatbots were out of fashion and most people hadn't heard about techniques like Reinforcement Learning from Human Feedback (RLHF) to align language models with human preferences. Then, OpenAI broke the internet with ChatGPT and Meta followed suit by releasing the Llama series of language models which enabled the ML community to build their very own capable chatbots. This has led to a rich ecosystem of datasets and models that have mostly focused on teaching language models to follow instructions through supervised fine-tuning (SFT).
|
||||
|
||||
However, we know from the [InstructGPT](https://huggingface.co/papers/2203.02155) and [Llama2](https://huggingface.co/papers/2307.09288) papers that significant gains in helpfulness and safety can be had by augmenting SFT with human (or AI) preferences. At the same time, combining reinforcement learning with NLP is a fairly novel idea and there are few pubic resources available on how to train these models, what data to collect, and what metrics to measure for best downstream performance.
|
||||
However, we know from the [InstructGPT](https://huggingface.co/papers/2203.02155) and [Llama2](https://huggingface.co/papers/2307.09288) papers that significant gains in helpfulness and safety can be had by augmenting SFT with human (or AI) preferences. At the same time, aligning language models to a set of preferences is a fairly novel idea and there are few pubic resources available on how to train these models, what data to collect, and what metrics to measure for best downstream performance.
|
||||
|
||||
The RLHF Handbook aims to fill that gap by providing the community with a series of robust training recipes that span the whole RLHF pipeline.
|
||||
The Alignment Handbook aims to fill that gap by providing the community with a series of robust training recipes that span the whole pipeline.
|
||||
|
||||
## Contents
|
||||
|
||||
@@ -17,7 +17,6 @@ The initial release of the handbook will focus on the following techniques:
|
||||
* **Supervised fine-tuning:** teach languge language models to follow instructions and tips on how to collect and curate your own training dataset.
|
||||
* **Reward modeling:** teach language models to distinguish model responses according to human or AI preferences.
|
||||
* **Rejection sampling:** a simple, but powerful technique to boost the performance of your SFT model.
|
||||
* **Proximal policy optimization (PPO):** the workhorse of RLHF, but notoriously sensitive to hyperparameters (like all good RL algorithms).
|
||||
* **Direct preference optimisation (DPO):** a powerful and promising alternative to PPO.
|
||||
|
||||
## Citation
|
||||
@@ -25,12 +24,12 @@ The initial release of the handbook will focus on the following techniques:
|
||||
If you find the content of this repo useful in your work, please cite it as follows:
|
||||
|
||||
```bibtex
|
||||
@misc{rlhf_handbook2023,
|
||||
author = {Lewis Tunstall and Edward Beeching and Nathan Lambert and Nazneen Rajani and Thomas Wolf},
|
||||
title = {The RLHF Handbook},
|
||||
@misc{alignment_handbook2023,
|
||||
author = {Lewis Tunstall and Edward Beeching and Nathan Lambert and Nazneen Rajani and Sasha Rush and Thomas Wolf},
|
||||
title = {The Alignment Handbook},
|
||||
year = {2023},
|
||||
publisher = {GitHub},
|
||||
journal = {GitHub repository},
|
||||
howpublished = {\url{https://github.com/huggingface/rlhf-handbook}}
|
||||
howpublished = {\url{https://github.com/huggingface/alignment-handbook}}
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user