Skip to content
P

preference-optimization

Align a fine-tuned model with preference data using DPO, ORPO, KTO, or SimPO

by wshobsonFree

Launch
#1793in AI Skills
0In stores

Description

preference-optimization is an agent skill from the wshobson/agents collection for aligning a fine-tuned language model with preference data,…

Highlights

  • DPO, ORPO, KTO and SimPO methods
  • Guidance on choosing within the DPO family
  • Production training pattern
  • Building preference pairs from feedback
  • Part of the fine-tuning sequence
  • Installs with the skills CLI

Ratings & Reviews

No ratings yet

Be the first to rate preference-optimization.

People also visit

G

grpo-rlvr-training

Train reasoning and verifiable-task behavior

AI Skills
Launch
L

lora-qlora-recipes

Configure LoRA and QLoRA supervised fine-tuning

AI Skills
Launch
D

dataset-curation

Prepare, format, and validate datasets

AI Skills
Launch
E

eval-harness-first

Build the evaluation harness that gates every fine-tuning run

AI Skills
Launch
F

finetuning-method-selection

Decide whether to fine-tune at all, and route to the right method

AI Skills
Launch
Q

quantized-export

Export a promoted fine-tuned model in the right deployment format

AI Skills
Launch

preference-optimization FAQ

What data does it need?

Preference pairs, where one response is judged better than another, or unpaired thumbs-up and thumbs-down feedback.

Which methods are covered?

DPO, ORPO, KTO and SimPO.

How are the pairs built?

The skill covers building the preference pairs, which matters as much as the training configuration.

What if I only have demonstrations?

That case is handled by the lora-qlora-recipes skill, and reward-based training by grpo-rlvr-training.

How do I install it?

Run npx skills add https://github.com/wshobson/agents --skill preference-optimization.

What security audits does it have?

skills.sh lists three audits: Gen Agent Trust Hub Pass, Socket Pass and Snyk Pass.

What are the best preference-optimization alternatives?

Popular alternatives to preference-optimization include grpo-rlvr-training, lora-qlora-recipes and dataset-curation. See all preference-optimization alternatives

Developer Stuff

Badges