abliteration.org
Get the app

Two ways to read this site

Technical mode is the default: exact terms and codes, for engineers, researchers, journalists and companies. Simple mode gives the same facts in plain words, for anyone who wants a model that runs on their own computer. You can switch at any time at the top of the page.

technical
MLX weights for Apple silicon (M1 or later), usually quantized to 4 or 8 bits.
simple
Made for Macs with Apple silicon (M1 or newer), usually compressed to 4 or 8 bits.

llm-blender/Unified-Feedback

published by @llm-blender

DPO and ORPO preference mixes to recover capability after ablation.Answer pairs that recover quality after the edit.

license:mitsize_categories:1M<n<10Mformat:parquetmodality:tabularmodality:textlibrary:datasetslibrary:dasklibrary:mlcroissant +2 more
Lifetime downloads
61K
Last 30 days
1.6K
Likes
17
Size
2.0 GB

Description

Collections of pairwise feedback datasets.

openai/summarize_from_feedback

openai/webgpt_comparisons

Dahoas/instruct-synthetic-prompt-responses

Anthropic/hh-rlhf

lmsys/chatbot_arena_conversations

openbmb/UltraFeedback

argilla/ultrafeedback-binarized-preferences-cleaned

berkeley-nest/Nectar

Codes to reproduce the dataset: jdf-prog/UnifiedFeedback

Dataset formats

{

"id": "...",

"conv_A": [

{

"role": "user",

"content": "...",

},

{

"role":… See the full description on the dataset page: https://huggingface.co/datasets/llm-blender/Unified-Feedback.

Structure 10 configs · from the README front matter10 subsets, from the author's description

Nectar 365,908 rows
SplitPartRowsSize
train 364,908 1.1 GB
val 1,000 3.1 MB
FeaturesFields
idstring conv_Alist<struct> conv_Blist<struct> conv_A_ratingfloat32 conv_B_ratingfloat32 num_turnsint32 sourcestring
Data files
train Nectar/train-*
val Nectar/val-*
UltraFeedback 127,932 rows
SplitPartRowsSize
train 126,932 483.0 MB
val 1,000 3.8 MB
FeaturesFields
idstring conv_Alist<struct> conv_Blist<struct> conv_A_ratingfloat32 conv_B_ratingfloat32 num_turnsint32 sourcestring
Data files
train UltraFeedback/train-*
val UltraFeedback/val-*
all 892,515 rows
SplitPartRowsSize
train 884,515 2.5 GB
val 8,000 21.1 MB
FeaturesFields
idstring conv_Alist<struct> conv_Blist<struct> conv_A_ratingfloat32 conv_B_ratingfloat32 num_turnsint32 sourcestring
Data files
train all/train-*
val all/val-*
chatbot_arena_conversations 33,000 rows
SplitPartRowsSize
train 32,000 74.9 MB
val 1,000 2.3 MB
FeaturesFields
idstring conv_Alist<struct> conv_Blist<struct> conv_A_ratingfloat32 conv_B_ratingfloat32 num_turnsint32 sourcestring
Data files
train chatbot_arena_conversations/train-*
val chatbot_arena_conversations/val-*
hh-rlhf 159,179 rows
SplitPartRowsSize
train 158,179 317.6 MB
val 1,000 2.0 MB
FeaturesFields
idstring conv_Alist<struct> conv_Blist<struct> conv_A_ratingfloat32 conv_B_ratingfloat32 num_turnsint32 sourcestring
Data files
train hh-rlhf/train-*
val hh-rlhf/val-*
summarize_from_feedback 92,858 rows
SplitPartRowsSize
train 91,858 274.9 MB
val 1,000 3.0 MB
FeaturesFields
idstring conv_Alist<struct> conv_Blist<struct> conv_A_ratingfloat32 conv_B_ratingfloat32 num_turnsint32 sourcestring
Data files
train summarize_from_feedback/train-*
val summarize_from_feedback/val-*
synthetic-instruct-gptj-pairwise 33,143 rows
SplitPartRowsSize
train 32,143 37.0 MB
val 1,000 1.1 MB
FeaturesFields
idstring conv_Alist<struct> conv_Blist<struct> conv_A_ratingfloat32 conv_B_ratingfloat32 num_turnsint32 sourcestring
Data files
train synthetic-instruct-gptj-pairwise/train-*
val synthetic-instruct-gptj-pairwise/val-*
ultrafeedback-binarized-preferences-cleaned 60,917 rows
SplitPartRowsSize
train 59,917 242.6 MB
val 1,000 4.0 MB
FeaturesFields
idstring conv_Alist<struct> conv_Blist<struct> conv_A_ratingfloat32 conv_B_ratingfloat32 num_turnsint32 sourcestring
Data files
train ultrafeedback-binarized-preferences-cleaned/train-*
val ultrafeedback-binarized-preferences-cleaned/val-*

2 more configs in the README on the Community tab.2 more subsets in the author's description.

Used by uncensored 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.No model in our catalog lists this dataset yet. It may be used without being listed, used for other work, or simply be new. The list fills in by itself as models are added.

MetadataDetails

License
mit
Created on HFCreated
2024-01-08 · 2 years ago
Size category
1M<n<10M
ModalitiesData types
tabulartext
Formats
parquet
LibrariesTools
datasetsdaskmlcroissantpolars

Related datasets same stage · Healsame step · Recovering quality

Read further

Total size
2.0 GB
Files
27
Formats
parquet
Head
1a74174
Last updated on HFLast updated
2024-03-31

Download the dataset

Copy any of these snippets into your notebook or terminal. All three fetch directly from Hugging Face using your own credentials.Each of these lines of code downloads the dataset straight from Hugging Face, with your own Hugging Face login.

Recommended: datasets library (Python)
from datasets import load_dataset
ds = load_dataset("llm-blender/Unified-Feedback")
Raw snapshot (Python)All files (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="llm-blender/Unified-Feedback", repo_type="dataset")
git clone (requires git-lfs)With git (needs git-lfs)
git clone https://huggingface.co/datasets/llm-blender/Unified-Feedback

Files by folder from our last crawlfrom our last check

top level 2 files 16.7 KB
.gitattributes 2.8 KB file download
README.md 13.9 KB md download
all/ 7 files 983.0 MB
train-00000-of-00006.parquet 160.5 MB parquet download
train-00001-of-00006.parquet 169.3 MB parquet download
train-00002-of-00006.parquet 150.9 MB parquet download
train-00003-of-00006.parquet 136.5 MB parquet download
train-00004-of-00006.parquet 99.2 MB parquet download
train-00005-of-00006.parquet 255.3 MB parquet download
val-00000-of-00001.parquet 11.4 MB parquet download
chatbot_arena_conversations/ 2 files 37.3 MB
train-00000-of-00001.parquet 36.1 MB parquet download
val-00000-of-00001.parquet 1.2 MB parquet download
hh-rlhf/ 2 files 173.7 MB
train-00000-of-00001.parquet 172.6 MB parquet download
val-00000-of-00001.parquet 1.1 MB parquet download
Nectar/ 4 files 397.5 MB
train-00000-of-00003.parquet 139.1 MB parquet download
train-00001-of-00003.parquet 124.2 MB parquet download
train-00002-of-00003.parquet 132.6 MB parquet download
val-00000-of-00001.parquet 1.6 MB parquet download
summarize_from_feedback/ 2 files 32.8 MB
train-00000-of-00001.parquet 31.1 MB parquet download
val-00000-of-00001.parquet 1.6 MB parquet download
synthetic-instruct-gptj-pairwise/ 2 files 19.8 MB
train-00000-of-00001.parquet 19.2 MB parquet download
val-00000-of-00001.parquet 595.6 KB parquet download
UltraFeedback/ 2 files 177.9 MB
train-00000-of-00001.parquet 175.9 MB parquet download
val-00000-of-00001.parquet 2.0 MB parquet download
ultrafeedback-binarized-preferences-cleaned/ 2 files 122.1 MB
train-00000-of-00001.parquet 120.0 MB parquet download
val-00000-of-00001.parquet 2.1 MB parquet download
webgpt_comparisons/ 2 files 22.7 MB
train-00000-of-00001.parquet 21.5 MB parquet download
val-00000-of-00001.parquet 1.2 MB parquet download

READMEAuthor's description current version from Hugging Faceas it is now on Hugging Face

Collections of pairwise feedback datasets.

Codes to reproduce the dataset: jdf-prog/UnifiedFeedback

Dataset formats

{
  "id": "...",
  "conv_A": [
    {
      "role": "user",
      "content": "...",
    },
    {
      "role": "assistant",
      "content": "...",
    },
    ...
  ]
  "conv_B": [
    {
      "role": "user",
      "content": "...",
    },
    {
      "role": "assistant",
      "content": "...",
    },
    ...
  ]
  "conv_A_rating": 1, # not necessarily always 1 and 0. The general principle is that higher is better
  "conv_B_rating": 0,  # not necessarily always 1 and 0. The general principle is that higher is better
  "num_turns": 1, # the number of conversation turns. one user and one assistant counts for 1 turn.
  "source": "...", # hugging face dataset source
}

To convert to pairwise prompt and response to train reward models like PairRM.

Into the mixinstruct format:

Refer to script to_mixinstruct_format.py to convert the unified feedback into the format that can use llm-blender repo to train the ranker

The following are the functions used in the above script

  • For conversations with 1 turn

Simply take the user content and assistant content for 1 turn as the input and output.

def get_pair_from_conv_for_single_turn(convAs: List[str], convBs: List[str]):
    """Compare two conversations by takeing USER turns as inputs and ASSISTANT turns as candidates
        Multi-turn conversations comparison is also supportted.
        a conversation format is:
        ```python
        [
            {
                "content": "hello",
                "role": "USER"
            },
            {
                "content": "hi",
                "role": "ASSISTANT"
            },
            ...
        ]
        ```
    Args:
        convAs (List[List[dict]]): List of conversations
        convAs (List[List[dict]]): List of conversations
    """
    for c in convAs + convBs:
        assert len(c) % 2 == 0, "Each conversation must have even number of turns"
        assert all([c[i]['role'].upper() == 'USER' for i in range(0, len(c), 2)]), "Each even turn must be USER"
        assert all([c[i]['role'].upper() == 'ASSISTANT' for i in range(1, len(c), 2)]), "Each odd turn must be ASSISTANT"
    # check conversations correctness
    assert len(convAs) == len(convBs), "Number of conversations must be the same"
    for c_a, c_b in zip(convAs, convBs):
        assert len(c_a) == len(c_b), "Number of turns in each conversation must be the same"
        assert all([c_a[i]['content'] == c_b[i]['content'] for i in range(0, len(c_a), 2)]), "USER turns must be the same"
    
    inputs = [
        convAs[i][0]['content'] for i in range(len(convAs))
    ]
    cand1_texts = [
        convAs[i][1]['content'] for i in range(len(convAs))
    ]
    cand2_texts = [
        convBs[i][1]['content'] for i in range(len(convBs))
    ]
    return inputs, cand1_texts, cand2_texts
  • For conversations with more than 1 turns

convert it into input output pairs using the following function:

def get_pair_from_conv(convAs: List[str], convBs: List[str]):
    """Compare two conversations by takeing USER turns as inputs and ASSISTANT turns as candidates
        Multi-turn conversations comparison is also supportted.
        a conversation format is:
        ```python
        [
            {
                "content": "hello",
                "role": "USER"
            },
            {
                "content": "hi",
                "role": "ASSISTANT"
            },
            ...
        ]
        ```
    Args:
        convAs (List[List[dict]]): List of conversations
        convAs (List[List[dict]]): List of conversations
    """
    for c in convAs + convBs:
        assert len(c) % 2 == 0, "Each conversation must have even number of turns"
        assert all([c[i]['role'].upper() == 'USER' for i in range(0, len(c), 2)]), "Each even turn must be USER"
        assert all([c[i]['role'].upper() == 'ASSISTANT' for i in range(1, len(c), 2)]), "Each odd turn must be ASSISTANT"
    # check conversations correctness
    assert len(convAs) == len(convBs), "Number of conversations must be the same"
    for c_a, c_b in zip(convAs, convBs):
        assert len(c_a) == len(c_b), "Number of turns in each conversation must be the same"
        assert all([c_a[i]['content'] == c_b[i]['content'] for i in range(0, len(c_a), 2)]), "USER turns must be the same"
    
    instructions = ["Finish the following coversation in each i-th turn by filling in <Response i> with your response."] * len(convAs)
    inputs = [
        "\n".join([
            "USER: " + x[i]['content'] +
            f"\nAssistant: <Response {i//2+1}>" for i in range(0, len(x), 2)
        ]) for x in convAs
    ]
    cand1_texts = [
        "\n".join([
            f"<Response {i//2+1}>: " + x[i]['content'] for i in range(1, len(x), 2)
        ]) for x in convAs
    ]
    cand2_texts = [
        "\n".join([
            f"<Response {i//2+1}>: " + x[i]['content'] for i in range(1, len(x), 2)
        ]) for x in convBs
    ]
    inputs = [inst + inp for inst, inp in zip(instructions, inputs)]
    return inputs, cand1_texts, cand2_texts

README historyEdit history latest 20 of 100 revisionslatest 20 of 100 edits

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.Every night we save the author's description of every dataset in the catalog. When it changes, we keep the new text and compare it with the one before. This shows what each author chose to say about their dataset, and how that changed over time.

  1. 2024-03-31 Add all val dataset 1a74174 13.6 KB
    Loading...
  2. 2024-03-31 Add all train dataset 115e954 13.6 KB
    Loading...
  3. 2024-03-31 Add webgpt_comparisons val dataset e7c19e3 13.6 KB
    Loading...
  4. 2024-03-31 Add webgpt_comparisons train dataset 53a7eda 13.6 KB
    Loading...
  5. 2024-03-31 Add ultrafeedback-binarized-preferences-cleaned val dataset ba0c7b4 13.6 KB
    Loading...
  6. 2024-03-31 Add ultrafeedback-binarized-preferences-cleaned train dataset 53aed68 13.6 KB
    Loading...
  7. 2024-03-31 Add UltraFeedback val dataset 4be3d3f 13.6 KB
    Loading...
  8. 2024-03-31 Add UltraFeedback train dataset 58fc84b 13.6 KB
    Loading...
  9. 2024-03-31 Add synthetic-instruct-gptj-pairwise val dataset dc51f56 13.6 KB
    Loading...
  10. 2024-03-31 Add synthetic-instruct-gptj-pairwise train dataset dc508a0 13.6 KB
    Loading...
  11. 2024-03-31 Add summarize_from_feedback val dataset 79b7b98 13.6 KB
    Loading...
  12. 2024-03-31 Add summarize_from_feedback train dataset 45ba180 13.6 KB
    Loading...
  13. 2024-03-31 Add Nectar val dataset bc25cc1 13.6 KB
    Loading...
  14. 2024-03-31 Add Nectar train dataset 682e2e8 13.6 KB
    Loading...
  15. 2024-03-31 Add hh-rlhf val dataset 3b4bbc4 13.6 KB
    Loading...
  16. 2024-03-31 Add hh-rlhf train dataset 545609c 13.6 KB
    Loading...
  17. 2024-03-31 Add chatbot_arena_conversations val dataset 7bbed66 13.6 KB
    Loading...
  18. 2024-03-31 Add chatbot_arena_conversations train dataset 01a35a5 13.6 KB
    Loading...
  19. 2024-03-31 Add hh-rlhf val dataset 46e3e69 13.6 KB
    Loading...
  20. 2024-03-31 Add hh-rlhf train dataset 5708617 13.6 KB
    Loading...

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, licence clarifications. Click any thread to expand and read the full conversation inline. Newest first.Conversations people started on Hugging Face: bug reports, questions about using the data, suggested changes to the author's description, questions about the licence. Open a thread to read it here. Newest first.

  1. 2024-01-10 [bot] Conversion to Parquet open 1 💬 #1
    Loading...
Download from Hugging Face

llm-blender/Unified-Feedback

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 lets you pick a file, then opens it in the desktop app. No API keys, no subscription, no prompt leakage.Each model page in the format the app uses has an "Open in Abliteration" button to open a file in the desktop app. No API keys, no subscription, your requests stay on your computer.

Open in Abliteration