heal 0 0 0

HuggingFaceH4/orca_dpo_pairs

published by @HuggingFaceH4

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
73.3K
Last 30 days
3.4K
Likes
32
Size
29.4 MB
Created on HF
2023-12-28
Age
2 years ago

Description

Dataset Card for Orca DPO Pair

Dataset Description

This is a pre-processed version of the OpenOrca dataset.

The original OpenOrca dataset is a collection of augmented FLAN data that aligns, as best as possible, with the distributions outlined in the Orca paper.

It has been instrumental in generating high-performing preference-tuned model checkpoints and serves as a valuable resource for all NLP researchers and developers!

Dataset Summary

The OrcaDPO… See the full description on the dataset page: https://huggingface.co/datasets/HuggingFaceH4/orca_dpo_pairs.

Tags

task_categories:text-classificationtask_categories:token-classificationtask_categories:table-question-answeringtask_categories:question-answeringtask_categories:zero-shot-classificationtask_categories:summarizationtask_categories:feature-extractiontask_categories:text-generationlanguage:enlicense:mitsize_categories:10K<n<100Kformat:parquetmodality:textlibrary:datasetslibrary:pandaslibrary:mlcroissantlibrary:polarsarxiv:2306.02707region:usdpo

README current version from Hugging Face


dataset_info:
features:

  • name: chosen
    list:
    • name: content
      dtype: string
    • name: role
      dtype: string
  • name: rejected
    list:
    • name: content
      dtype: string
    • name: role
      dtype: string
  • name: prompt
    dtype: string
    splits:
  • name: train_prefs
    num_bytes: 55138729.39723151
    num_examples: 12359
  • name: test_prefs
    num_bytes: 2230711.602768489
    num_examples: 500
    download_size: 30771962
    dataset_size: 57369441
    configs:
  • config_name: default
    data_files:
    • split: train_prefs
      path: data/train_prefs-*
    • split: test_prefs
      path: data/test_prefs-*
      language:
  • en
    license: mit
    task_categories:
  • conversational
  • text-classification
  • token-classification
  • table-question-answering
  • question-answering
  • zero-shot-classification
  • summarization
  • feature-extraction
  • text-generation
  • text2text-generation
    pretty_name: OrcaDPO
    size_categories:
  • 10M<n<100M
    tags:
    • dpo

Dataset Card for Orca DPO Pair

Dataset Description

This is a pre-processed version of the OpenOrca dataset.

The original OpenOrca dataset is a collection of augmented FLAN data that aligns, as best as possible, with the distributions outlined in the Orca paper.
It has been instrumental in generating high-performing preference-tuned model checkpoints and serves as a valuable resource for all NLP researchers and developers!

Dataset Summary

The OrcaDPO Pair dataset is a subset of the OpenOrca dataset suitable for DPO preference tuning. The dataset is stored in parquet format with each entry using the following schema:
:

{
'prompt': 'Read the following paragraph and determine if the hypothesis is true:\n\nWorld leaders expressed concern on Thursday that North Ko...'
'chosen': [
           {'content': 'You are a helpful assistant, who always provide explanation. Think like you are answering to a five year old.',
            'role': 'system'
           },
           {'content': 'Read the following paragraph and determine if the hypothesis is true...',
            'role': 'user'
           },
           {'content': 'Okay little buddy, let\'s look at this...',
            'role': 'assistant'
           }
          ],
'rejected': [
             {'content': 'You are a helpful assistant, who always provide explanation. Think like you are answering to a five year old.',
              'role': 'system'
             },
             {'content': 'Read the following paragraph and determine if the hypothesis is true...',
              'role': 'user'
             },
             {'content': 'Oh my gosh! Let me see if I can help you with that! ...',
              'role': 'assistant'
             }
            ],
}

Data Splits

The dataset consists of two splits, "train_prefs" and "test_prefs":

train_prefs test_prefs
12359 500

Usage

To load the dataset, run:

from datasets import load_dataset

ds = load_dataset("HuggingFaceH4/orca_dpo_pairs")

Languages

The language of the data is primarily English.

Dataset Creation

Curation Rationale

The dataset was created to provide a source of augmented text data for researchers and developers.
The datapoints are intended primarily to provide an enhancement of the core FLAN Collection data which relies upon the detailed step-by-step reasoning capabilities of GPT-3.5 and GPT-4.
This "reasoning trace" augmentation has demonstrated exceptional results, allowing a LLaMA-13B model trained with this data to rival or beat GPT-3.5 on broad sets of hard reasoning tasks which all models below 100B parameters had previously performed dramatically worse on.

Source Data

The data is generated using techniques in alignment with the distributions outlined in the Orca paper, except as noted below:

  1. There is not enough CoT data in the FLAN Collection to generate 150K zero-shot entries, as the paper purports to use.
    We suspect this portion was either undocumented or misrepresented. We have used the ~75K points available.
  2. We used the pre-generated FLAN Collection datasets hosted on HuggingFace under conceptofmind, e.g. conceptofmind/flan2021.
    These are referenced by the official FLAN Collection repo as the preferred data source.
    However, these are a subset of the full FLAN Collection data, and have less than the required entries for the flan2021 and t0 submixes, by ~1.25M and 200k respectively.

Combined, this gave us ~1.5M fewer data points than in the original Orca paper. Completing the set is an ongoing work.

Dataset Use

Use Cases

The dataset can be used for tasks related to language understanding, natural language processing, machine learning model training, and model performance evaluation.

Usage Caveats

Given that this is a work-in-progress dataset, it is recommended to regularly check for updates and improvements.
Further, the data should be used following the guidelines and recommendations outlined in the Orca paper.

Getting Started

This dataset is organized to be naively loaded via the Hugging Face datasets library.
We recommend using streaming due to the large size of the files.
Regular updates and data generation progress can be monitored through the OpenOrca repository on Hugging Face.

Citation

@misc{OpenOrca,
  title = {OpenOrca: An Open Dataset of GPT Augmented FLAN Reasoning Traces},
  author = {Wing Lian and Bleys Goodson and Eugene Pentland and Austin Cook and Chanvichet Vong and "Teknium"},
  year = {2023},
  publisher = {HuggingFace},
  journal = {HuggingFace repository},
  howpublished = {\url{https://https://huggingface.co/Open-Orca/OpenOrca}},
}

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-14Add dpo tag (#4)31c9da66 KB
    Loading...
  2. 2024-01-16Update README.mde0e8aeb6 KB
    Loading...
  3. 2024-01-16initial model card (#1)ec4f1b76.1 KB
    Loading...
  4. 2024-01-11Upload dataset5b21c74645 B
    Loading...
  5. 2023-12-28Upload dataset0a737de611 B
    Loading...
  6. 2023-12-28initial commit4e444450 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 4 threads · 1 open · 5 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-11PRAdd dpo tagmerged2 💬#4
    Loading...
  2. 2024-04-11PRAdd dpo tagclosed1 💬#3
    Loading...
  3. 2024-01-17[bot] Conversion to Parquetopen1 💬#2
    Loading...
  4. 2024-01-16PRinitial model cardmerged1 💬#1
    Loading...

Related datasets same stage · heal

Read further

Metadata

License
mit

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("HuggingFaceH4/orca_dpo_pairs")
Raw snapshot (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="HuggingFaceH4/orca_dpo_pairs", repo_type="dataset")
git clone (requires git-lfs)
git clone https://huggingface.co/datasets/HuggingFaceH4/orca_dpo_pairs
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