heal 0 0 0

mlabonne/orpo-dpo-mix-40k-flat

published by @mlabonne

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
3.4K
Last 30 days
43
Likes
17
Size
82.1 MB
Created on HF
2024-06-07
Age
2 years ago

Description

ORPO-DPO-mix-40k-flat

This dataset is designed for ORPO or DPO training.

See Uncensor any LLM with Abliteration for more information about how to use it.

This is version with raw text instead of lists of dicts as in the original version here.

It makes easier to parse in Axolotl, especially for DPO.

ORPO-DPO-mix-40k-flat is a combination of the following high-quality DPO datasets:

argilla/Capybara-Preferences: highly scored chosen answers >=5 (7,424 samples)… See the full description on the dataset page: https://huggingface.co/datasets/mlabonne/orpo-dpo-mix-40k-flat.

Tags

task_categories:text-generationlanguage:enlicense:apache-2.0size_categories:10K<n<100Kformat:parquetmodality:textlibrary:datasetslibrary:pandaslibrary:mlcroissantlibrary:polarsregion:usdporlhfpreferenceorpo

README current version from Hugging Face


language:

  • en
    license: apache-2.0
    task_categories:
  • text-generation
    pretty_name: ORPO-DPO-mix-40k-flat
    dataset_info:
    features:
    • name: source
      dtype: string
    • name: chosen
      dtype: string
    • name: rejected
      dtype: string
    • name: prompt
      dtype: string
    • name: system
      dtype: string
    • name: question
      dtype: string
      splits:
    • name: train
      num_bytes: 155571619
      num_examples: 44245
      download_size: 86089921
      dataset_size: 155571619
      configs:
  • config_name: default
    data_files:
    • split: train
      path: data/train-*
      tags:
  • dpo
  • rlhf
  • preference
  • orpo

ORPO-DPO-mix-40k-flat

image/webp

This dataset is designed for ORPO or DPO training.
See Uncensor any LLM with Abliteration for more information about how to use it.
This is version with raw text instead of lists of dicts as in the original version here.
It makes easier to parse in Axolotl, especially for DPO.

ORPO-DPO-mix-40k-flat is a combination of the following high-quality DPO datasets:

Rule-based filtering was applied to remove gptisms in the chosen answers (2,206 samples).

Thanks to argilla, unalignment, M4-ai, and jondurbin for providing the source datasets.

🔎 Usage

Here's an example on how to use it as a DPO dataset in Axolotl with ChatML:

rl: dpo
chat_template: chatml
datasets:
  - path: mlabonne/orpo-dpo-mix-40k
    type: chatml.intel

For ORPO, I recommend using mlabonne/orpo-dpo-mix-40k instead.

Toxicity

Note that ORPO-DPO-mix-40k-flat contains a dataset (toxic-dpo-v0.2) designed to prompt the model to answer illegal questions. You can remove it as follows:

dataset = load_dataset('mlabonne/orpo-mix-40k-flat', split='train')
dataset = dataset.filter(
    lambda r: r["source"] != "toxic-dpo-v0.2"
)

README history 3 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-06-07Update README.mdfbf33b63.3 KB
    Loading...
  2. 2024-06-07Upload dataset9e0f2a7461 B
    Loading...
  3. 2024-06-07initial commit4e604080 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.

Used in recipes 1 of 18 curated recipes reference this dataset

Concrete workflows from the community craft-knowledge survey that call for this corpus. Each links to the full recipe with parameters, tools, expected output, and known failure modes.

Community discussions 2 threads · 2 open · 3 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-07-25Citation format?open2 💬#2
    Loading...
  2. 2024-06-08[bot] Conversion to Parquetopen1 💬#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("mlabonne/orpo-dpo-mix-40k-flat")
Raw snapshot (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="mlabonne/orpo-dpo-mix-40k-flat", repo_type="dataset")
git clone (requires git-lfs)
git clone https://huggingface.co/datasets/mlabonne/orpo-dpo-mix-40k-flat
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