heal 0 0 0

argilla/distilabel-intel-orca-kto

published by @argilla

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
1.5K
Last 30 days
35
Likes
9
Size
16.3 MB
Created on HF
2024-03-19
Age
2 years ago

Description

distilabel Orca Pairs for KTO

A KTO signal transformed version of the highly loved distilabel Orca Pairs for DPO.

The dataset is a "distilabeled" version of the widely used dataset: Intel/orca_dpo_pairs. The original dataset has been used by 100s of open-source practitioners and models. We knew from fixing UltraFeedback (and before that, Alpacas and Dollys) that this dataset could be highly improved.

Continuing with our mission to build the best alignment… See the full description on the dataset page: https://huggingface.co/datasets/argilla/distilabel-intel-orca-kto.

Tags

language:enlicense:apache-2.0size_categories:10K<n<100Kformat:parquetmodality:textlibrary:datasetslibrary:pandaslibrary:mlcroissantlibrary:polarslibrary:distilabelarxiv:2402.01306region:usrlaifktorlhfdistilabelsynthetic

README current version from Hugging Face


language:

  • en
    license: apache-2.0
    dataset_info:
    features:
    • name: system
      dtype: string
    • name: prompt
      dtype: string
    • name: completion
      dtype: string
    • name: label
      dtype: bool
    • name: rating
      dtype: float64
    • name: status
      dtype: string
    • name: in_gsm8k_train
      dtype: bool
      splits:
    • name: train
      num_bytes: 41940501
      num_examples: 23147
      download_size: 17134184
      dataset_size: 41940501
      configs:
  • config_name: default
    data_files:
    • split: train
      path: data/train-*
      tags:
  • rlaif
  • kto
  • rlhf
  • distilabel
  • synthetic

Built with Distilabel

distilabel Orca Pairs for KTO

A KTO signal transformed version of the highly loved distilabel Orca Pairs for DPO.

The dataset is a "distilabeled" version of the widely used dataset: Intel/orca_dpo_pairs. The original dataset has been used by 100s of open-source practitioners and models. We knew from fixing UltraFeedback (and before that, Alpacas and Dollys) that this dataset could be highly improved.

Continuing with our mission to build the best alignment datasets for open-source LLMs and the community, we spent a few hours improving it with distilabel.

This was our main intuition: the original dataset just assumes gpt4/3.5-turbo are always the best response. We know from UltraFeedback that's not always the case. Moreover, DPO fine-tuning benefits from the diversity of preference pairs.

Additionally, we have added a new column indicating whether the question in the dataset is part of the train set of gsm8k (there were no examples from the test set). See the reproduction section for more details.

Why KTO?

The KTO paper states:

  • KTO matches or exceeds DPO performance at scales from 1B to 30B parameters.1 That is, taking a preference dataset of n DPO pairs and breaking it up into 2n examples for KTO can yield better generations, despite the model ostensibly learning from a weaker signal.
  • KTO can handle extreme data imbalances, matching DPO performance while using up to 90% fewer desirable examples (i.e., examples of good generations). Its success thus cannot be ascribed to the alignment data being sourced from a preference dataset.
  • When the pretrained model is sufficiently good, one can skip supervised finetuning and go straight to KTO without a loss in generation quality. In contrast, we find that without doing SFT first, DPO-aligned models are significantly worse at all scales.

Reproduce KTO Transformation

Orginal distilabel intel orca dpo pairs

Open In Colab

README history 5 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-03-19Update README.mda82038a3.2 KB
    Loading...
  2. 2024-03-19Upload dataset23a1f1610.5 KB
    Loading...
  3. 2024-03-19Update README.mdbd2c34511 KB
    Loading...
  4. 2024-03-19Upload dataset98dcda1497 B
    Loading...
  5. 2024-03-19initial commit649df110 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-08Data Preparationopen1 💬#1
    Loading...

Related datasets same stage · heal

Read further

Metadata

License
apache-2.0

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