Heal just added

HuggingFaceH4/ultrafeedback_binarized

published by @HuggingFaceH4

DPO and ORPO preference mixes to recover capability after ablation.

task_categories:text-generationlanguage:enlicense:mitsize_categories:100K<n<1Mformat:parquetmodality:tabularmodality:textlibrary:datasets +5 more
Lifetime downloads
791.4K
Last 30 days
35.2K
Likes
363
Size
650.0 MB

Description

Dataset Card for UltraFeedback Binarized

Dataset Description

This is a pre-processed version of the UltraFeedback dataset and was used to train Zephyr-7Β-β, a state of the art chat model at the 7B parameter scale.

The original UltraFeedback dataset consists of 64k prompts, where each prompt is accompanied with four model completions from a wide variety of open and proprietary models. GPT-4 is then used to assign a score to each completion, along criteria like… See the full description on the dataset page: https://huggingface.co/datasets/HuggingFaceH4/ultrafeedback_binarized.

Structure 1 config · from the README front matter

default default 187,405 rows
SplitRowsSize
train_prefs 61,135 405.7 MB
train_sft 61,135 405.7 MB
test_prefs 2,000 13.2 MB
test_sft 1,000 6.7 MB
train_gen 61,135 325.0 MB
test_gen 1,000 5.3 MB
Features
promptstring prompt_idstring chosenlist<struct> rejectedlist<struct> messageslist<struct> score_chosenfloat64 score_rejectedfloat64
Data files
train_prefs data/train_prefs-*
train_sft data/train_sft-*
test_prefs data/test_prefs-*
test_sft data/test_sft-*
train_gen data/train_gen-*
test_gen data/test_gen-*

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.

Metadata

License
mit
Language
en
Created on HF
2023-10-24 · 3 years ago
Size category
100K<n<1M
Modalities
tabulartext
Formats
parquet
Libraries
datasetspandaspolarsmlcroissant

Related datasets same stage · Heal

Read further

Total size
650.0 MB
Files
9
Formats
parquet, py
Head
3949bf5
Last updated on HF
2024-10-16

Download the dataset

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

Files by folder from our last crawl

top level 3 files 13.1 KB
.gitattributes 2.3 KB file download
create_dataset.py 4.3 KB py download
README.md 6.5 KB md download
data/ 6 files 650.0 MB
test_gen-00000-of-00001.parquet 3.0 MB parquet download
test_prefs-00000-of-00001.parquet 7.3 MB parquet download
test_sft-00000-of-00001.parquet 3.7 MB parquet download
train_gen-00000-of-00001.parquet 184.2 MB parquet download
train_prefs-00000-of-00001.parquet 225.9 MB parquet download
train_sft-00000-of-00001.parquet 225.9 MB parquet download

README current version from Hugging Face

Dataset Card for UltraFeedback Binarized

Dataset Description

This is a pre-processed version of the UltraFeedback dataset and was used to train Zephyr-7Β-β, a state of the art chat model at the 7B parameter scale.

The original UltraFeedback dataset consists of 64k prompts, where each prompt is accompanied with four model completions from a wide variety of open and proprietary models. GPT-4 is then used to assign a score to each completion, along criteria like helpfulness and honesty. To create UltraFeedback Binarized, we picked the highest overall_score as the "chosen" completion, and one of the remaining 3 at random as the "rejected" one. This defines the preference modelling splits for techniques like reward modelling or DPO. We also created splits for supervised fine-tuning (SFT) that use the "chosen" column as the dialogues to model, along with splits that involve generation like rejection sampling or PPO. For details on the dataset processing, see the accompanying script.

Dataset Structure

Usage

To load the dataset, run:

from datasets import load_dataset

ds = load_dataset("HuggingFaceH4/ultrafeedback_binarized")

Note: after the release of Zephyr-7b-β, the team at Argilla noted that there were a few hundred completions with the incorrect label. Similarly, members of the community pointed out that a several prompts were sourced from the TruthfulQA benchmark which can lead to contamination with public leaderboards. Both of these issues have been resolved in the latest version of the dataset, but if you wish to use the older version, you can run:

from datasets import load_dataset

ds = load_dataset("HuggingFaceH4/ultrafeedback_binarized", revision="292c16329d921287c4166934cac1a6ad1e13a6c5")

Data Splits

The dataset has six splits, suitable for:

  • Supervised fine-tuning (sft).
  • Preference modelling (prefs) to train reward models or apply techniques like DPO.
  • Generation ranking (gen) via techniques like rejection sampling or PPO.

The number of examples per split is shown as follows:

train_sft test_sft train_prefs test_prefs train_gen test_gen
61135 1000 61135 2000 61135 1000

The dataset is stored in parquet format with each entry using the following schema:

{
    "prompt": "Which books are still banned in Canada?",
    "chosen": [
    {
        "content": "Which books are still banned in Canada?", 
        "role": "user"
    },
    {
        "content": "As a responsible and ethical AI assistant, I must inform you that I cannot provide a list of banned books in Canada, as there are no books that are currently banned in the country. Canada has a strong commitment to freedom of expression and the right to access information, and there are no laws in place that restrict the publication or distribution of books.\n",
        "role": "assistant"
        }
    ],
 "messages": [
     {
         "content": "Which books are still banned in Canada?",
         "role": "user"
    },
    {
        "content": "As a responsible and ethical AI assistant, I must inform you that I cannot provide a list of banned books in Canada, as there are no books that are currently banned in the country. Canada has a strong commitment to freedom of expression and the right to access information, and there are no laws in place that restrict the publication or distribution of books.\n",
        "role": "assistant"
    }],
 
 "prompt_id": "aeccf551d9ba42fdf5f2044de43b8ce6e360fb523ace428317b81d804594e090",
 "rejected": [
     {
         "content": "Which books are still banned in Canada?",
         "role": "user"},
     {
         "content": "According to the Canadian Government’s Ban Affront website, there are still several books that are banned in Canada. These include The Begum’s Millionaire, The Education of Little Tree, The Harry Potter series, Lolita, 1984, and Lady Chatterley’s Lover. Some of these books are considered inaccessible due to their age, while others are still legally banned in certain parts of the country.",
         "role": "assistant"
         }
     ],
 "score_chosen": 8.0,
 "score_rejected": 5.0
}

You should use the chosen and rejected columns for techniques like DPO, while the messages column is suitable for SFT or PPO.

Citation

If you find this dataset is useful in your work, please cite the original UltraFeedback dataset:

@misc{cui2023ultrafeedback,
      title={UltraFeedback: Boosting Language Models with High-quality Feedback}, 
      author={Ganqu Cui and Lifan Yuan and Ning Ding and Guanming Yao and Wei Zhu and Yuan Ni and Guotong Xie and Zhiyuan Liu and Maosong Sun},
      year={2023},
      eprint={2310.01377},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}

README history latest 20 of 29 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-10-16 Add Ultrafeedback reference 3949bf5 6.4 KB
    Loading...
  2. 2024-09-05 Update README.md bafebc6 6.6 KB
    Loading...
  3. 2024-01-08 Merge branch 'main' of https://huggingface.co/datasets/HuggingFaceH4/ultrafee... daee4cf 6.6 KB
    Loading...
  4. 2024-01-08 Update README to account for updates 8c9daa9 6.6 KB
    Loading...
  5. 2024-01-08 Upload dataset 2a3fb93 5.8 KB
    Loading...
  6. 2024-01-08 Upstream fixes from source dataset and filter out TruthfulQA samples (#3) 6221885 5.8 KB
    Loading...
  7. 2023-10-27 Update README.md 292c163 5.8 KB
    Loading...
  8. 2023-10-26 Update README.md 801e30c 5.1 KB
    Loading...
  9. 2023-10-26 Create create_dataset.py 04348d9 4.8 KB
    Loading...
  10. 2023-10-26 Update README.md d468f17 4.8 KB
    Loading...
  11. 2023-10-26 Upload README.md with huggingface_hub c111527 6 KB
    Loading...
  12. 2023-10-26 Upload data/test_prefs-00000-of-00001-b403a43ee1c9b23c.parquet with huggingfa... ca52ee3 4.7 KB
    Loading...
  13. 2023-10-26 Upload data/train_prefs-00000-of-00001-17309c769bfe5733.parquet with huggingf... e7c2b74 4.7 KB
    Loading...
  14. 2023-10-26 Upload data/test_gen-00000-of-00001-bc700fffaa890aad.parquet with huggingface... 4957d4b 4.7 KB
    Loading...
  15. 2023-10-26 Upload data/train_gen-00000-of-00001-4f6b46acdf69184b.parquet with huggingfac... 7158934 4.7 KB
    Loading...
  16. 2023-10-26 Upload data/test_sft-00000-of-00001-0813b122475731c9.parquet with huggingface... 78d8687 4.7 KB
    Loading...
  17. 2023-10-26 Upload data/train_sft-00000-of-00001-49a5a3acc4f5d493.parquet with huggingfac... fb6d2d2 4.7 KB
    Loading...
  18. 2023-10-26 Clean 4a9a712 4.7 KB
    Loading...
  19. 2023-10-26 Update README.md 49fb45a 5.4 KB
    Loading...
  20. 2023-10-26 Update README.md 931865b 5.3 KB
    Loading...

Community discussions 10 threads · 8 open · 14 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. 2026-07-02 PR Delete README.md open 1 💬 #10
    Loading...
  2. 2026-07-02 PR Delete create_dataset.py open 1 💬 #9
    Loading...
  3. 2026-07-02 PR Update README.md open 1 💬 #8
    Loading...
  4. 2026-05-22 Operational Warning: Preference Optimization is not Foundational Alignment open 1 💬 #7
    Loading...
  5. 2025-11-24 PR Add LICENSE file open 1 💬 #6
    Loading...
  6. 2024-07-25 Question about rows with equal scores open 2 💬 #5
    Loading...
  7. 2024-07-01 PR Librarian Bot: Add dpo tag open 1 💬 #4
    Loading...
  8. 2024-01-08 PR Upstream fixes from source dataset and filter out TruthfulQA samples merged 2 💬 #3
    Loading...
  9. 2023-11-30 PR dfsd closed 1 💬 #2
    Loading...
  10. 2023-10-27 Notifications from parquet-converter open 3 💬 #1
    Loading...
Download from HuggingFace

HuggingFaceH4/ultrafeedback_binarized

Catalog is the map. Apps are the tools.

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

Every GGUF 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