Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added RM dataset training split and add support for WebGPT and other for RLHF #1793

Merged
merged 4 commits into from Feb 23, 2023

Conversation

theblackcat102
Copy link
Collaborator

  1. Added the code I use for splitting RM dataset : tools/sample_rm_data.py
python -m tools.sample_rm_data 2023-02-12_oasst_prod.jsonl

This generates 3 splits of rm_test.jsonl, rm_train.jsonl, rm_val.jsonl

  1. Added webgpt and private_tuning for RLHF dataset
    - oa_private:
        data_path: .cache
        split: rl
        val_split: 0.0
        fraction: 1
        file: 2023-02-12_oasst_prod.jsonl
    - webgpt:
        val_split: 0.0
        fraction: 1
    - private_tuning:
        val_split: 0.0
        fraction: 1

make sure oa_v3_fixed_plus_safety.jsonl used in private_tuning is placed under .cache

@github-actions
Copy link

pre-commit failed.
Please run pre-commit run --all-files locally and commit the changes.
Find more information in the repository's CONTRIBUTING.md

@theblackcat102
Copy link
Collaborator Author

Some new todos:

  1. we might have to only sample the english only prompts, cause spanish was around 29% and current pythia model might perform pretty bad in spanish?
en: 57.2%
es: 28.97%
...
  1. Add a reweight process to ensure the initial mean reward score starts at zero mean.

Previous snippet code I written

Copy link
Collaborator

@sanagno sanagno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks!

@andreaskoepf andreaskoepf merged commit 58680f5 into main Feb 23, 2023
@andreaskoepf andreaskoepf deleted the rm-datasets branch February 23, 2023 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants