In short.
Preference Optimization is an assistant skill for model developers learning from preferred answers or thumbs-up/down feedback, but its runtime compatibility and training outcomes are untested. It connects feedback format, memory constraints and experiment budget to four training methods, with companion TRL configurations. Its practical value is the connection between method choice and configuration; its main limitations are unpinned dependencies, incomplete pipeline code and research claims that the captured files do not independently substantiate.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes the complete selected folder at revision 9c61ab243def98f72da12abd41cfcf5bcd91af9d: SKILL.md and references/method-configs.md, together with the captured repository-root LICENSE. Other plugins, related skills, the model catalog, external research and dependency documentation are excluded. No code was executed. Installation, API compatibility, training outcomes, distributed behavior, memory use and monetary cost remain unassessed.
The overview
Identity
This resource is the preference-optimization skill in the wshobson/agents repository. Its captured folder contains SKILL.md and references/method-configs.md: assistant instructions and Python training examples, rather than a pretrained model or hosted training service.
The skill expects preference data and a decision to use preference optimization. Its intended output is a method choice and configuration for a separate training-engineer agent. The captured source revision is 9c61ab243def98f72da12abd41cfcf5bcd91af9d: [https://github.com/wshobson/agents/tree/9c61ab243def98f72da12abd41cfcf5bcd91af9d/plugins/llm-finetuning/skills/preference-optimization].
Assessment
Useful as a planning and configuration aid within an existing fine-tuning workflow. It makes a practical distinction between paired preferences and independent positive or negative feedback, then connects those inputs to trainer settings and troubleshooting steps.
It is not a complete training project. Checkpoints, tokenizers, datasets and execution environments remain the user's responsibility. The files provide no measured evidence that these configurations improve a particular model or task.
Who it is for
Best suited to developers who already have a model-training workflow and either matched preferred/rejected answers or individually rated responses. The configurations offer concrete starting points for practitioners familiar with Python, checkpoints and training evaluation.
Beginners can use the method-selection examples to understand which feedback format each method accepts. They will still need help with environment setup, model loading, data preparation and evaluation, which these files do not teach end to end.
Capabilities
The skill recommends DPO for ordinary preference pairs, ORPO when reference-model memory or a separate supervised fine-tuning stage is a constraint, KTO for unpaired binary feedback, and SimPO when investigating length bias with a tuning budget.
It also describes repeated DPO rounds using newly generated responses, reward-based pair construction, an optional Unsloth wrapper using four-bit loading and LoRA adapters, and troubleshooting for lost general capability. These are documented recipes; their effectiveness is unmeasured in the supplied evidence.
Using it
Requirements
The examples require Python, compatible TRL libraries, a model checkpoint, a tokenizer and prepared training data. DPO, KTO and SimPO examples start from an SFT_CHECKPOINT placeholder, meaning a checkpoint previously trained on demonstrations. ORPO uses a BASE_MODEL placeholder.
DPO, ORPO and SimPO datasets use prompt, chosen and rejected fields. KTO uses prompt, completion and a Boolean label, with both desirable and undesirable examples represented. Every configuration enables bfloat16. Compatible hardware, GPU memory requirements and exact dependency versions are unspecified. Unsloth is an additional dependency for the optional wrapper.
How it works
The skill guides training that changes model weights using feedback about response quality. DPO uses preferred and rejected responses with a frozen reference model. ORPO combines supervised learning and preference optimization without a separate reference model. KTO accepts individual positive or negative labels. SimPO uses a reference-free, length-normalized objective, configured through CPOTrainer with loss_type="simpo" and cpo_alpha=0.0.
Its iterative DPO pattern generates responses from the current checkpoint, scores them, trains on the resulting preferences and uses the updated checkpoint for the next round. The files describe this cycle but do not supply a complete generation, judging and training loop.
Setup
Read SKILL.md together with references/method-configs.md. Match the feedback format to a method, replace the model and dataset placeholders, supply the tokenizer and adapt the output directory and training settings. No assistant-specific installation procedure or dependency installation instructions are included.
Check the examples against the installed TRL version before training. They use processing_class rather than tokenizer as the trainer argument, and import ORPO and CPO from experimental namespaces. The optional Unsloth path calls PatchDPOTrainer before constructing the trainer; its compatibility with the other examples is untested.
Example use
For a developer with an existing supervised checkpoint and clean preferred/rejected responses to the same prompts, the skill recommends starting with DPO. Its example sets beta to 0.1, learning_rate to 7e-7, num_train_epochs to 2, per_device_train_batch_size to 4 and gradient_accumulation_steps to 4, with bfloat16 enabled.
These are source-provided example values, not results from a completed experiment. If feedback instead consists of independently rated responses, the skill directs the developer to KTO and its Boolean-label schema rather than manufacturing preference pairs.
Assessment & evidence
Limitations
Runtime behavior, import compatibility, training quality and resource use are untested. The examples name no actual base model and pin no dependency versions. Related model-selection and data-conversion instructions are referenced but are outside the captured folder.
Pair-construction guidance calls for same-task passing and failing trajectories, but its pseudocode only ranks rewards and selects the highest score and the score closest to the mean minus two standard deviations. It does not show validation of task identity, pass/fail status or distinct chosen and rejected candidates.
The SimPO example labels batch size 4 with 32 accumulation steps as an effective batch of 128 without specifying device count. Distributed behavior and the exact installed-library interpretation of its margin parameter need checking.
Interpreting the guidance
The most directly useful guidance connects observable constraints to a method: paired versus unpaired feedback, availability of a supervised checkpoint, reference-model memory and capacity to run a sweep. Those distinctions are more actionable than treating one configuration as universally suitable.
The stronger conclusions need caution. The skill attributes quantitative claims about method choice and model scale to arXiv 2603.19335, but the paper and its results are not supplied. Its categorical statements about PPO-based RLHF, SimPO resolving length bias and learning rate almost always explaining capability loss remain author guidance rather than independently established findings.
Alternatives
The four included methods provide alternatives within preference training: DPO for pairs, ORPO for its combined training objective, KTO for binary labels and SimPO for a length-normalized objective requiring tuning.
For different data, the skill points to lora-qlora-recipes for demonstrations and grpo-rlvr-training for verifiable rewards. It also references trace-to-training-data for converting graded trajectories into training examples. Those related skills were not supplied, so their implementation and suitability are unknown.
Evidence
The functional evidence consists of the complete captured SKILL.md and references/method-configs.md. They establish the documented routing rules, configuration examples and troubleshooting advice. They do not establish successful execution or comparative performance.
Original skill text: [https://raw.githubusercontent.com/wshobson/agents/9c61ab243def98f72da12abd41cfcf5bcd91af9d/plugins/llm-finetuning/skills/preference-optimization/SKILL.md]. Companion configurations: [https://raw.githubusercontent.com/wshobson/agents/9c61ab243def98f72da12abd41cfcf5bcd91af9d/plugins/llm-finetuning/skills/preference-optimization/references/method-configs.md]. The captured root LICENSE establishes the stated reuse terms. No external research paper, dependency documentation or execution results accompany these files.
Access & freshness
Costs
Actual training cost is unknown. The files provide no measured GPU hours, memory usage, throughput, hosting prices or total experiment costs.
Repeated DPO rounds require additional response generation, scoring and training. SimPO explicitly calls for a hyperparameter sweep. ORPO's reference-free design and the optional quantized Unsloth path are relevant to memory planning, but no quantified savings are established.
Rights and reuse
The captured repository license is MIT, with copyright attributed to Seth Hobson, 2024. It permits use, copying, modification, publication, distribution, sublicensing and sale, provided the copyright and permission notice accompany copies or substantial portions. It includes a warranty and liability disclaimer.
This supports redistribution of the captured skill documentation with the notice. It does not establish rights to separately obtained model weights, training datasets or dependencies. License source: [https://raw.githubusercontent.com/wshobson/agents/9c61ab243def98f72da12abd41cfcf5bcd91af9d/LICENSE].
Freshness
The files were captured on 2026-11-17 at 07:47:20.180 UTC from revision 9c61ab243def98f72da12abd41cfcf5bcd91af9d. The companion configuration file states Last verified: 2026-07-13; that is an author-provided date, not evidence of a reproduced training run.
Although the documentation describes its TRL conventions as current, it supplies no exact package versions. Compatibility with later releases and changes on the repository's moving main branch are unknown.
Before using it
Confirm the feedback schema, checkpoint rights and hardware support, then resolve the placeholders and check the relevant trainer API against a specific installed version. Verify reference-model handling and actual batch size for the intended device setup.
Establish held-out checks for both the desired preference behavior and general capabilities before training. Treat the supplied settings as starting points, validate reward-based pair construction, and budget explicitly for repeated DPO rounds or a SimPO sweep. Model quality, memory consumption and cost remain unknown until measured in the intended environment.
