extract 0 0 0

RLHFlow/HH-RLHF-Helpful-standard

published by @RLHFlow

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
25.5K
Last 30 days
779
Likes
4
Size
133.3 MB
Created on HF
2024-04-07
Age
2 years ago

Description

We process the helpful subset of Anthropic-HH into the standard format. The filtering script is as follows.

def filter_example(example):

if len(example['chosen']) != len(example['rejected']):

return False

if len(example['chosen']) % 2 != 0:

return False

n_rounds = len(example['chosen'])

for i in range(len(example['chosen'])):

if example['chosen'][i]['role'] != ['user', 'assistant'][i % 2]:

return False

if… See the full description on the dataset page: https://huggingface.co/datasets/RLHFlow/HH-RLHF-Helpful-standard.

Tags

size_categories:100K<n<1Mformat:parquetmodality:textlibrary:datasetslibrary:pandaslibrary:mlcroissantlibrary:polarsregion:us

README current version from Hugging Face


dataset_info:
features:

  • name: rejected_score
    dtype: 'null'
  • name: chosen
    list:
    • name: content
      dtype: string
    • name: role
      dtype: string
  • name: rejected
    list:
    • name: content
      dtype: string
    • name: role
      dtype: string
  • name: chosen_score
    dtype: 'null'
    splits:
  • name: train
    num_bytes: 248008356.9440396
    num_examples: 115396
    download_size: 139765640
    dataset_size: 248008356.9440396
    configs:
  • config_name: default
    data_files:
    • split: train
      path: data/train-*

We process the helpful subset of Anthropic-HH into the standard format. The filtering script is as follows.


def filter_example(example):
    
    if len(example['chosen']) != len(example['rejected']):
        return False
    if len(example['chosen']) % 2 != 0:
        return False
    
    n_rounds = len(example['chosen'])
    for i in range(len(example['chosen'])):
        if example['chosen'][i]['role'] != ['user', 'assistant'][i % 2]:
            return False
        if example['rejected'][i]['role'] != ['user', 'assistant'][i % 2]:
            return False
        if len(example['chosen'][i]['content']) == 0:
                return False
        if len(example['rejected'][i]['content']) == 0:
                return False
        if i < n_rounds - 1:
            if example['chosen'][i]['content'] != example['rejected'][i]['content']:
                return False
        else:
            if example['chosen'][i]['content'] == example['rejected'][i]['content']:
                return False
            
    return True

README history 6 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-04-27Upload dataseta05d1a31.6 KB
    Loading...
  2. 2024-04-27Update README.md2ee6cbc1.6 KB
    Loading...
  3. 2024-04-27Upload dataset1b8dcdd729 B
    Loading...
  4. 2024-04-08Upload README.md with huggingface_hub09dcd6c717 B
    Loading...
  5. 2024-04-08Upload data/train-00000-of-00001-c888ed3cc610927f.parquet with huggingface_hub84f22970 B
    Loading...
  6. 2024-04-08initial commit3518b980 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-09[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("RLHFlow/HH-RLHF-Helpful-standard")
Raw snapshot (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="RLHFlow/HH-RLHF-Helpful-standard", repo_type="dataset")
git clone (requires git-lfs)
git clone https://huggingface.co/datasets/RLHFlow/HH-RLHF-Helpful-standard
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