Skip to content
P

preference-optimization

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

by wshobsonFree

#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

F

finetuning-method-selection

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

AI Skills
Get
S

skill-optimizer

Optimizes AI skills for activation, clarity, and cross-model reliability

AI Skills
Get
G

grpo-rlvr-training

Train reasoning and verifiable-task behavior

AI Skills
Get
A

arize-prompt-optimization

Optimizes, improves, and debugs LLM prompts

AI Skills
Get
F

fine-tuning-expert

Fine-tuning LLMs, training custom models

AI Skills
Get
P

prompt-engineering

Expert guide on prompt engineering patterns, best practices

AI Skills
Get

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 finetuning-method-selection, skill-optimizer and grpo-rlvr-training. See all preference-optimization alternatives

Developer Stuff

Badges