mlabonne/orpo-dpo-mix-40k

Dataset

309

stars

19

commits

1

linked in READMEs

Oct 17, 2024

updated

dpo
orpo
preference
rlhf
Browse cluster: LLM Preference Learning & RLHF β†’

README

ORPO-DPO-mix-40k v1.2

image/webp

This dataset is designed for ORPO or DPO training. See Fine-tune Llama 3 with ORPO for more information about how to use it. It 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

v1.2 adds a question column to ensure compatibility with both DPO and ORPO formats in Axolotl.

Here's an example as an ORPO dataset in Axolotl:

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

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

Toxicity

Note that ORPO-DPO-mix-40k 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-dpo-mix-40k', split='train')
dataset = dataset.filter(
    lambda r: r["source"] != "toxic-dpo-v0.2"
)

History

I'm saving previous versions of this dataset in different branches.

Contributors

mlabonne

17 commits

anakin87

1 commits

DeepMount00

1 commits

mlabonne/orpo-dpo-mix-40k

Dataset

309

stars

19

commits

1

linked in READMEs

Oct 17, 2024

updated

dpo
orpo
preference
rlhf
Browse cluster: LLM Preference Learning & RLHF β†’

README

ORPO-DPO-mix-40k v1.2

image/webp

This dataset is designed for ORPO or DPO training. See Fine-tune Llama 3 with ORPO for more information about how to use it. It 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

v1.2 adds a question column to ensure compatibility with both DPO and ORPO formats in Axolotl.

Here's an example as an ORPO dataset in Axolotl:

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

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

Toxicity

Note that ORPO-DPO-mix-40k 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-dpo-mix-40k', split='train')
dataset = dataset.filter(
    lambda r: r["source"] != "toxic-dpo-v0.2"
)

History

I'm saving previous versions of this dataset in different branches.

Contributors

mlabonne

17 commits

anakin87

1 commits

DeepMount00

1 commits