extract 0 0 0

hendrydong/preference_700K

published by @hendrydong

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
23.6K
Last 30 days
301
Likes
17
Size
1.3 GB
Created on HF
2024-04-17
Age
2 years ago

Description

This is the preference dataset used for RLHF Workflow project.

It is a mixed dataset of the following complenent,

HH-RLHF (Bai et al., 2022a) is a pairwise preference dataset where each sample is accompanied

by a conversation history and two alternative responses written by an early Claude model with 52B

parameters. The preferences of the responses are annotated by humans.

SHP (Ethayarajh et al., 2022) is sourced from Reddit and includes examples from 18 subreddits, such

as askacademia… See the full description on the dataset page: https://huggingface.co/datasets/hendrydong/preference_700K.

Tags

size_categories:100K<n<1Mformat:parquetmodality:tabularmodality:textlibrary:datasetslibrary:dasklibrary:mlcroissantlibrary:polarsarxiv:2405.07863region:us

README current version from Hugging Face


dataset_info:
features:

  • name: rejected
    list:
    • name: content
      dtype: string
    • name: role
      dtype: string
  • name: rejected_score
    dtype: float64
  • name: chosen_score
    dtype: float64
  • name: chosen
    list:
    • name: content
      dtype: string
    • name: role
      dtype: string
      splits:
  • name: train
    num_bytes: 2802733004
    num_examples: 700000
    download_size: 1433169364
    dataset_size: 2802733004
    configs:
  • config_name: default
    data_files:
    • split: train
      path: data/train-*

This is the preference dataset used for RLHF Workflow project.

It is a mixed dataset of the following complenent,

  • HH-RLHF (Bai et al., 2022a) is a pairwise preference dataset where each sample is accompanied
    by a conversation history and two alternative responses written by an early Claude model with 52B
    parameters. The preferences of the responses are annotated by humans.
  • SHP (Ethayarajh et al., 2022) is sourced from Reddit and includes examples from 18 subreddits, such
    as askacademia, askbaking, askengineers, and changemyview. Each example is a Reddit post with a
    question/instruction and a pair of top-level comments. One comment is preferred by more Reddit users
    than the other. All preferences and responses are provided by humans. Only samples with a score
    ratio > 2 are used, and at most 5 pairs are taken for each prompt.
  • HelpSteer (Wang et al., 2023). This open-source dataset (Wang et al., 2023) contains prompts,
    responses, and five human-annotated attributes (helpfulness, correctness, coherence, complexity, and
    verbosity) ranging from 0 to 4. The prompts are generated using a mixture of template-generated and
    human-generated methods, while responses are generated by an in-house LLM. The authors generate
    up to 4 responses per prompt, and we can construct pairwise comparisons based on them.
  • PKU-SafeRLHF (Ji et al., 2024). This dataset (Ji et al., 2024) consists of 30k+ expert comparison
    data. Each sample includes two responses to a question and two preference signals for helpfulness and
    safety, respectively. The responses are generated by open-source chatbots, and the preference signals
    are merged through the results of 14 harm category multi-class classficiation.
  • UltraFeedback (Cui et al., 2023) consists of 64k prompts from diverse resources (including UltraChat,
    ShareGPT, Evol-Instruct, TruthfulQA, FalseQA, and FLAN) and the authors generate 4 responses per
    prompt using 4 different LLMs sampled from a diverse set of state-of-the-art open-source LLMs. The
    preference is from GPT-4 based on a fine-grained annotation instruction, which contains 4 different
    aspects, namely instruction-following, truthfulness, honesty and helpfulness. The dataset collection
    strategy of UltraFeedback has also influenced many subsequent works.
  • UltraInteract (Yuan et al., 2024a) is a preference dataset designed for complex reasoning tasks. The
    authors collect a preference tree for each instruction, with the instruction being the root and each
    action a node. A trajectory is a root-to-leaf path consisting of a sequence of actions. Paired correct
    and incorrect nodes or trajectories are used for preference learning.
  • Distilabel-Capybara is a preference dataset of multi-turn dialogues whose prompts are taken from
    Daniele and Suphavadeeprasit (2023), where the responses are generated by open-source LLMs and
    preferences are generated by GPT-4.
  • Distilabel-Orca is collected similarly with Capybara but with the prompts from Lian et al. (2023a).

Reference

If you found it useful, please cite

@misc{dong2024rlhf,
      title={RLHF Workflow: From Reward Modeling to Online RLHF}, 
      author={Hanze Dong and Wei Xiong and Bo Pang and Haoxiang Wang and Han Zhao and Yingbo Zhou and Nan Jiang and Doyen Sahoo and Caiming Xiong and Tong Zhang},
      year={2024},
      eprint={2405.07863},
      archivePrefix={arXiv},
      primaryClass={cs.LG}
}

README history 3 revisions

Every night we snapshot the README of every dataset in the catalog. When the SHA changes we archive the new version and diff it against the last. This is the evolving thought record of the alignment-data field: what the author decided to say about the corpus, and how that framing shifted over time.

  1. 2024-09-28Update README.mddbb8cca3.9 KB
    Loading...
  2. 2024-04-18Upload dataset008cf51548 B
    Loading...
  3. 2024-04-18initial commit59fc19f0 B
    Loading...

Used by abliterated models none yet

No abliterated models in our catalog have declared this dataset in their YAML metadata yet. This can mean the dataset is used but not declared, is used outside abliteration workflows, or is new. The link will populate automatically as models are indexed.

Community discussions 1 thread · 1 open · 1 comments

Threads posted by the community on Hugging Face: bug reports, questions about usage, pull requests on the README, license clarifications. Click any thread to expand and read the full conversation inline. Newest first.

  1. 2024-04-19[bot] Conversion to Parquetopen1 💬#1
    Loading...

Related datasets same stage · extract

Read further

Repository

Download the dataset

0

Copy any of these snippets into your notebook or terminal. All three fetch directly from Hugging Face using your own credentials.

Recommended: datasets library (Python)
from datasets import load_dataset
ds = load_dataset("hendrydong/preference_700K")
Raw snapshot (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="hendrydong/preference_700K", repo_type="dataset")
git clone (requires git-lfs)
git clone https://huggingface.co/datasets/hendrydong/preference_700K
Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every model page has an "Open in Abliteration" button that hands the model directly to the first-party desktop client, at the quantization your rig can actually run. No API keys, no subscription, no prompt leakage.

Open in Abliteration